.prestacheck {
  --pc-ink: #18314b;
  --pc-muted: #5f7287;
  --pc-blue: #2463eb;
  --pc-border: #dce5ef;
  --pc-surface: #f5f8fc;
  max-width: 880px;
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  color: var(--pc-ink);
  background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
  border: 1px solid var(--pc-border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgb(20 49 77 / 9%);
}

.prestacheck__intro { margin-bottom: 1.75rem; }
.prestacheck__eyebrow { margin: 0 0 .35rem; color: #961818; font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.prestacheck__title { margin: .4rem 0 .55rem; color: var(--pc-ink); font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.15; }
.prestacheck__lead, .prestacheck__hint, .prestacheck__privacy { color: var(--pc-muted); }
.prestacheck__lead { margin-bottom: 0; }
.prestacheck__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.prestacheck__benefits li { display: flex; align-items: flex-start; gap: .85rem; min-height: 100%; padding: 1rem; background: linear-gradient(145deg, #fff, #f5f8fc); border: 1px solid var(--pc-border); border-radius: 15px; box-shadow: 0 5px 16px rgb(20 49 77 / 5%); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.prestacheck__benefits li:hover { transform: translateY(-2px); border-color: #b8cae2; box-shadow: 0 9px 22px rgb(20 49 77 / 9%); }
.prestacheck__benefit-number { display: grid; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; place-items: center; color: #fff; background: #961818; border-radius: 11px; font-size: .75rem; font-weight: 800; }
.prestacheck__benefits h3 { margin: .05rem 0 .35rem; color: var(--pc-ink); font-size: .98rem; line-height: 1.35; }
.prestacheck__benefits p { margin: 0; color: var(--pc-muted); font-size: .86rem; line-height: 1.55; }
.prestacheck__form { padding: 1.25rem; background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: 16px; }
.prestacheck__label { display: block; margin-bottom: .45rem; color: var(--pc-ink); font-size: .9rem; font-weight: 650; }
.prestacheck__form-row { display: flex; gap: .7rem; }
.prestacheck__input { width: 100%; min-width: 0; min-height: 48px; padding: .72rem .9rem; color: var(--pc-ink); background: #fff; border: 1px solid #bdcbd9; border-radius: 10px; font: inherit; }
.prestacheck__input:focus { border-color: var(--pc-blue); outline: 3px solid rgb(36 99 235 / 15%); }
.prestacheck__button { flex: 0 0 auto; min-height: 48px; padding: .7rem 1.2rem; color: #fff; background: var(--pc-blue); border: 0; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.prestacheck__button--scan { background: #961818; }
.prestacheck__button:hover { background: #174fc9; transform: translateY(-1px); }
.prestacheck .prestacheck__button--scan:hover { background-color: #7d1515 !important; }
.prestacheck__button--details { background: #961818; }
.prestacheck .prestacheck__button--details:hover { background-color: #7d1515 !important; }
.prestacheck__button:disabled { opacity: .58; cursor: wait; transform: none; }
.prestacheck__button--secondary { align-self: end; }
.prestacheck__hint { margin: .65rem 0 0; font-size: .82rem; }
.prestacheck__progress, .prestacheck__email, .prestacheck__success { margin-top: 1.5rem; padding: 1.25rem; background: #fff; border: 1px solid var(--pc-border); border-radius: 16px; }
.prestacheck__progress-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; font-size: .9rem; font-weight: 650; }
.prestacheck__progress-top span:last-child { color: var(--pc-muted); }
.prestacheck__track { position: relative; height: 9px; overflow: hidden; background: #f2e1e1; border-radius: 20px; }
.prestacheck__track span { position: relative; z-index: 1; display: block; width: 0; height: 100%; background: linear-gradient(90deg, #a73535, #7d1515); border-radius: inherit; transition: width .35s ease; }
.prestacheck__progress.is-running .prestacheck__track::after { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 28%; content: ''; background: linear-gradient(90deg, transparent, #a73535 45%, #7d1515 85%, transparent); border-radius: inherit; box-shadow: 0 0 8px rgb(125 21 21 / 55%); transform: translateX(-110%); animation: pc-progress-sweep 1.25s linear infinite; pointer-events: none; }
.prestacheck__checks, .prestacheck__result-list { margin: .85rem 0 0; padding: 0; list-style: none; }
.prestacheck__check { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; padding: .65rem .1rem; border-bottom: 1px solid #edf1f6; animation: pc-enter .28s ease both; }
.prestacheck__check:last-child, .prestacheck__result-list li:last-child { border-bottom: 0; }
.prestacheck__check-icon { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; color: #5f7287; background: #eef2f6; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.prestacheck__check-icon--loading { grid-auto-flow: column; gap: 2px; }
.prestacheck__loading-dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: pc-dot-bounce .7s ease-in-out infinite; }
.prestacheck__loading-dot:nth-child(2) { animation-delay: .11s; }
.prestacheck__loading-dot:nth-child(3) { animation-delay: .22s; }
.prestacheck__check-name { font-weight: 600; }
.prestacheck__check-value { color: #087d65; font-size: .9rem; white-space: nowrap; }
.prestacheck__check--ok .prestacheck__check-icon { color: #087d65; background: #dff7ee; }
.prestacheck__check--fail .prestacheck__check-icon { color: #b42335; background: #fde7e9; }
.prestacheck__check--fail .prestacheck__check-value { color: #b42335; }
.prestacheck__status { margin: .8rem 0 0; color: var(--pc-muted); font-size: .9rem; }
.prestacheck > [data-scan-status]:empty { display: none; }
.prestacheck__seo-copy { margin-top: 1.5rem; color: var(--pc-muted); font-size: .9rem; line-height: 1.65; }
.prestacheck__seo-copy p { margin: 0 0 .9rem; }
.prestacheck__seo-copy p:last-child { margin-bottom: 0; }
.prestacheck .is-error { color: #aa2737; }
.prestacheck .prestacheck__status--not-prestashop, .prestacheck .prestacheck__status--unavailable, .prestacheck .prestacheck__status--invalid-domain { color: #7d1515; text-align: center; font-weight: 700; }
.prestacheck .prestacheck__status--cloudflare { color: #7d1515; text-align: center; font-weight: 700; }
.prestacheck__email h3, .prestacheck__success h3 { margin: 0 0 .35rem; color: var(--pc-ink); font-size: 1.15rem; }
.prestacheck__email p { margin: 0 0 .9rem; color: var(--pc-muted); font-size: .9rem; }
.prestacheck__email.is-attention { animation: pc-attention 1.35s ease-in-out 1; }
.prestacheck__success { border-color: #b7e6d7; background: #f2fcf8; }
.prestacheck__success p { margin: 0; color: var(--pc-muted); font-size: .9rem; }
.prestacheck__email .prestacheck__status { margin-bottom: 0; }
.prestacheck__progress.is-aborted .prestacheck__progress-top, .prestacheck__progress.is-aborted .prestacheck__track, .prestacheck__progress.is-aborted .prestacheck__checks { display: none; }
.prestacheck__popup { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgb(15 29 45 / 55%); }
.prestacheck__popup[hidden] { display: none !important; }
.prestacheck__popup-card { width: min(100%, 34rem); padding: 1.5rem; color: var(--pc-ink); background: #fff; border: 1px solid var(--pc-border); border-radius: 18px; box-shadow: 0 20px 70px rgb(12 32 53 / 25%); }
.prestacheck__popup-card h3 { margin: 0 0 .7rem; font-size: 1.2rem; }
.prestacheck__popup-card p { margin: 0 0 1rem; color: var(--pc-muted); white-space: pre-wrap; }
.prestacheck__result-checks { margin-top: 1.2rem; }
.prestacheck__contact { margin: .2rem 0 1.5rem; padding: 1.15rem 1.25rem; background: linear-gradient(145deg, #fff8f8, #fff); border: 1px solid #edd5d5; border-radius: 15px; text-align: center; }
.prestacheck__contact p { margin: 0 0 .75rem; color: var(--pc-ink); line-height: 1.6; }
.prestacheck__contact ul { display: block; margin: 0; padding: 0; list-style: none; }
.prestacheck__contact li + li { margin-top: .45rem; }
.prestacheck__contact a { color: #7d1515; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.prestacheck--result .prestacheck__result-title { text-align: center; }
.prestacheck__result-domain { display: block; margin-top: .25rem; }
.prestacheck--result .prestacheck__check-name { grid-column: 2; }
.prestacheck--result .prestacheck__metric-value { grid-column: 3; justify-self: end; }
.prestacheck--result .prestacheck__check-value { grid-column: 4; justify-self: end; }
.prestacheck__metric-value { color: var(--pc-ink); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prestacheck__metric-list { grid-column: 2 / -1; margin: .1rem 0 .25rem; padding: .65rem .8rem; list-style: none; background: var(--pc-surface); border-radius: 10px; }
.prestacheck__metric-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--pc-muted); font-size: .86rem; }
.prestacheck__metric-list li + li { border-top: 1px solid var(--pc-border); }
.prestacheck__metric-list strong { color: var(--pc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prestacheck__result-info { grid-column: 1 / -1; margin: .15rem 0 .2rem; padding: .8rem 1rem; color: var(--pc-muted); background: var(--pc-surface); border-left: 3px solid #961818; border-radius: 0 9px 9px 0; font-size: .88rem; line-height: 1.6; white-space: pre-line; }
.prestacheck--result { margin-top: 2rem; }
.prestacheck__result-date { margin: 1.5rem 0 0; color: var(--pc-muted); font-size: .82rem; text-align: right; }
.prestacheck [hidden] { display: none !important; }
.prestacheck__privacy { margin: 1rem 0 0; font-size: .76rem; }

@keyframes pc-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pc-dot-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0) scale(.9); } 30% { opacity: 1; transform: translateY(-4px) scale(1.1); } }
@keyframes pc-progress-sweep { to { transform: translateX(390%); } }
@keyframes pc-attention { 0%, 100% { transform: translateY(0) scale(1); } 22% { transform: translateY(-4px) scale(1.01); } 45% { transform: translateY(1px) scale(1); } 68% { transform: translateY(-2px) scale(1.005); } 84% { transform: translateY(0) scale(1); } }

@media (max-width: 640px) {
  .prestacheck { margin: 1rem; padding: 1.2rem; border-radius: 17px; }
  .prestacheck__form-row { flex-direction: column; }
  .prestacheck__benefits { grid-template-columns: 1fr; }
  .prestacheck__button { width: 100%; }
  .prestacheck__check { grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
  .prestacheck__check-value { grid-column: 2 / 4; white-space: normal; }
  .prestacheck--result .prestacheck__check-name { grid-column: 2; grid-row: 1; }
  .prestacheck--result .prestacheck__metric-value { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
  .prestacheck--result .prestacheck__check-value { grid-column: 3; grid-row: 1; justify-self: end; }
  .prestacheck--result .prestacheck__metric-list, .prestacheck__result-info { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .prestacheck *, .prestacheck *::before, .prestacheck *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
