/* Cardstop V11 — live-price safety gate */

html.cardstop-prices-pending .price-section .product-tabs,
html.cardstop-prices-pending .price-section .finder-panel,
html.cardstop-prices-pending .price-section .result-meta,
html.cardstop-prices-pending .price-section .product-grid,
html.cardstop-prices-pending .cart-bar,
html.cardstop-prices-pending .modal-backdrop,
html.cardstop-prices-error .price-section .product-tabs,
html.cardstop-prices-error .price-section .finder-panel,
html.cardstop-prices-error .price-section .result-meta,
html.cardstop-prices-error .price-section .product-grid,
html.cardstop-prices-error .cart-bar,
html.cardstop-prices-error .modal-backdrop {
  display: none !important;
}

.cardstop-price-gate {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 14px 0 22px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid #e7e3dc;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(227, 7, 20, .08), transparent 14rem),
    #fff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .045);
}

html.cardstop-prices-ready .cardstop-price-gate {
  display: none;
}

.cardstop-price-gate-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #111;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.cardstop-price-gate-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cardstopPriceSpin .8s linear infinite;
}

.cardstop-price-gate-copy {
  min-width: 0;
}

.cardstop-price-gate-copy > span {
  display: block;
  margin-bottom: 6px;
  color: #e30714;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .16em;
}

.cardstop-price-gate-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #151515;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.cardstop-price-gate-copy p {
  max-width: 690px;
  margin: 0;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
}

html.cardstop-prices-error .cardstop-price-gate,
.cardstop-price-gate.is-error {
  border-color: #f0c8cb;
  background: #fff7f7;
}

html.cardstop-prices-error .cardstop-price-gate-icon,
.cardstop-price-gate.is-error .cardstop-price-gate-icon {
  background: #e30714;
}

html.cardstop-prices-error .cardstop-price-gate-icon::before,
.cardstop-price-gate.is-error .cardstop-price-gate-icon::before {
  content: "!";
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 22px;
  font-weight: 950;
  animation: none;
}

.price-safety-form-notice {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 11px 13px;
  border: 1px solid #dededb;
  border-radius: 11px;
  color: #555;
  background: #f7f7f5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}

.price-safety-form-notice.warning {
  border-color: #efd58b;
  color: #6f5100;
  background: #fff8e6;
}

.price-safety-form-notice.error {
  border-color: #efc7ca;
  color: #8f1720;
  background: #fff2f3;
}

@keyframes cardstopPriceSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .cardstop-price-gate {
    min-height: 126px;
    gap: 13px;
    margin: 10px 0 18px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cardstop-price-gate-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }

  .cardstop-price-gate-icon::before {
    width: 18px;
    height: 18px;
  }

  .cardstop-price-gate-copy strong {
    font-size: 16px;
  }

  .cardstop-price-gate-copy p {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cardstop-price-gate-icon::before {
    animation-duration: 1.8s;
  }
}
