/* Stripe Checkout System – Card Input Styling */

.scs-field-card {
  margin-top: 0rem !important;
}

.scs-field-card .scs-card-element {
padding: 0.55rem 0.7rem;
}

.scs-checkout select {
        margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* Center dropdown above the pay button */
.scs-checkout .scs_package_select {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Ensure the button stays centered under the dropdown */
.scs-checkout .scs_stripe_pay_button {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}



.scs-card-section-label,
.scs-field-title,
.scs-billing-address-label {
    font-size: 0.9rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   MOBILE ONLY – radio left, main title right, small text below
--------------------------------------------------------- */
@media (max-width: 480px) {

  /* Top header: keep as a row, allow wrapping for children */
  .scs-method-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
  }

  /* Radio: small fixed chunk on the left */
  .scs-method-radio {
    flex: 0 0 auto;
    margin-top: 0.15rem;
  }

  /* Title + (long) subtitle live together to the right of the radio */
  .scs-method-labels {
    flex: 1 1 auto;
    min-width: 0;
  }

  .scs-method-title {
    display: block;
    /* allow wrapping on super-narrow screens if needed */
    white-space: normal;
  }

  .scs-method-subtitle {
    display: block;
    white-space: normal;
  }

  /* The small right-hand descriptions now drop BELOW everything */
  .scs-method-icons {
    flex: 0 0 100%;
    margin-top: 0.25rem;
    white-space: normal;                 /* let them wrap */
    /* indent so they visually sit under the title area, not under the radio */
    margin-left: calc(16px + 0.5rem);    /* 16px ~ radio width */
  }
}








/* Stripe Elements (cardNumber/Expiry/CVC) */
.StripeElement,
.scs-card-element .StripeElement,
.scs-field-card .StripeElement,
.scs-card-number .StripeElement,
.scs-card-expiry .StripeElement,
.scs-card-cvc .StripeElement {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  box-sizing: border-box;
}

.scs-billing-address-element {
background: #f1f3fd !important;
}

/* Focus border */
.StripeElement--focus, 
.scs-card-number .StripeElement--focus, 
.scs-card-expiry .StripeElement--focus, 
.scs-card-cvc .StripeElement--focus {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border-color: var(--scs-accent, #3297d3);
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.5);
  background: #ffffff;
  border: 1px solid var(--scs-accent, #3297d3) !important;
}



/* Email & other text inputs */
.scs-card-field-group input,
.scs-card-field-group select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  background: #ffffff;
  box-sizing: border-box;
}

.scs-card-field-group input:focus,
.scs-card-field-group select:focus {
  outline: none;
  border-color: var(--scs-accent, #3297d3);
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.5);
  background: #ffffff;
}


/* Invalid/error border */
.scs-card-number .StripeElement--invalid,
.scs-card-expiry .StripeElement--invalid,
.scs-card-cvc .StripeElement--invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.2);
}


.scs-field-card .StripeElement--invalid {
    border-color: #b91c1c;            /* red */
  box-shadow: 0 0 0 1px #b91c1c33;
}

/* Stripe-generated states */
.scs-card-field-group input, .scs-card-field-group select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    background: #ffffff !important;
    box-sizing: border-box;
}



/* Stripe Checkout System – Popup for payment method */

/* Backdrop */
.scs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 9998;
}

/* Container */
.scs-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 9999;
  overflow-y: auto; /* allow modal to scroll if content gets tall */
}



/* Open state */
.scs-modal-backdrop.scs-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.scs-modal.scs-modal-open {
  opacity: 1;
  pointer-events: auto;
}

/* Animate the panel in when modal opens */
.scs-modal.scs-modal-open .scs-modal-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}




/* Full-width header image */
.scs-modal-hero {
  margin: -1.6rem -1.4rem 1rem; /* pull to modal edges (matches modal padding) */
}

.scs-modal-hero-img {
  width: 100%;
  height: auto;         /* preserve aspect ratio */
  display: block;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Move close button to outside corner */
.scs-modal-close {
  border-radius: 999px;
  background: var(--scs-popup-bg, #ffffff);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}


/* Modal close (X) — center the glyph inside the circle/shadow */
.scs-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 1;      /* prevents vertical drift */
  padding: 0;          /* ensure no inherited padding weirdness */
}


/* Close button */
.scs-modal-close {
  position: absolute;
    top: 0.20rem;
    right: 0.20rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #ef4444; 
  font-weight: 600;
}


.scs-modal-close:hover {
  background: #0070ba;
  color: white; 
  font-weight: 600;
}

/* Title + price */
.scs-modal-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.scs-modal-price {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0;
}

/* Payment method area */
/* Premium section label */
.scs-modal-label {
  margin: 2rem 0 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;

  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Add a subtle divider line to the right */
.scs-modal-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(17, 24, 39, 0.10);
}


.scs-modal-method-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}



/* Plugin-owned "button" base (used on DIVs, not <button>) */
.scs-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
}

/* Main trigger buttons (dropdown + single) */
.scs_stripe_pay_button,
.scs-single-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1rem;
  border-radius: 999px;

  background: var(--scs-primary, #111827);
  color: #fff;

  font-weight: 700;
  line-height: 1;
}

/* Hover/focus styling */
.scs_stripe_pay_button:hover,
.scs-single-button:hover {
  background: var(--scs-hover, #0070ba);
}

.scs-ui-button:focus-visible {
  outline: 2px solid rgba(0, 112, 186, 0.55);
  outline-offset: 3px;
}

/* Ensure modal confirm still fills width on DIV */
.scs-modal-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
}




/* Method buttons */
.scs-method-option {
  width: 100%;
  box-sizing: border-box;
}

.scs-method-option:hover {
  border-color: var(--scs-accent, #6366f1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
  background: rgb(56 88 233 / 7%);
}

/* Icons */
.scs-method-icons {
  font-size: 0.85rem;
  white-space: nowrap;
}

.scs-method-icons-stripe {
  letter-spacing: 0.03em;
}

.scs-modal-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 16px;
    background: var(--scs-popup-bg, #ffffff);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
  box-sizing: border-box;
  max-height: calc(100vh - 8vh);
  overflow-y: auto; /* inner scroll when content is long (billing, etc.) */
  overflow-x: hidden;
  
   opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease-out;
}


@media (max-width: 480px) {
  .scs-modal-hero {
    margin: -1.25rem -1.25rem 1rem;
  }
}


/* The overlay only shows when .is-loading is on the modal-inner */
.scs-modal-inner .scs-loading-overlay {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 3rem;              /* "below the line" area / under header area */
  bottom: 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #4b5563;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.scs-modal-inner.is-loading .scs-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Little spinner */
.scs-loading-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  border-top-color: #6366f1;
  animation: scsSpin 0.7s linear infinite;
}

@keyframes scsSpin {
  to {
    transform: rotate(360deg);
  }
}




/* Mobile tweaks */
@media (max-width: 480px) {
  .scs-modal-inner {
    max-width: 100%;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 14px;
  }

  .scs-modal-title {
    font-size: 1rem;
  }

  .scs-modal-price {
    font-size: 0.95rem;
  }
}



/* Tiny banner shown when Stripe is in test mode */
.scs-test-mode-banner {
  max-width: 560px;
  margin: 0 auto 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  background: #fef3c7; /* pale amber */
  color: #92400e;      /* warm brown text */
  border: 1px solid rgba(248, 180, 0, 0.35);
}

/* Method options as selectable rows with radios */

.scs-modal-method-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scs-method-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
    border: 1px solid #8e96a7;
    background: rgb(241 241 242);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.scs-method-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.scs-method-radio {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  margin-top: 0.25rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.scs-method-option.is-selected {
    background: rgb(56 88 233 / 7%); /* you can keep this subtle blue or change later */
    border-color: var(--scs-accent, #3297d3);
}

.scs-method-option.is-selected .scs-method-radio {
  border-color: var(--scs-accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
  position: relative;
}

.scs-method-option.is-selected .scs-method-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
   background: var(--scs-accent, #6366f1);
}

.scs-method-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.scs-method-subtitle,
.scs-method-help {
  font-size: 0.8rem;
  color: #6b7280;
}



/* Price pill — keep it consistent with Selected pill */
.scs-modal-price {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;

  padding: 10px 12px;
  border-radius: 999px;

  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.06);

  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}




/* Slide-down panels (hidden by default; JS will slideUp/slideDown) */

.scs-method-panel {
  display: none;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--scs-accent, #3297d3);
  border-radius: 0 0 0.75rem 0.75rem;
  position: relative; /* so the loader is confined to this area */
}

/* Loader overlay only over the card/email/billing area in the Card option */
.scs-panel-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.scs-method-panel.scs-panel-is-loading .scs-panel-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.scs-panel-loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  border-top-color: #6366f1;
  animation: scsPanelSpin 0.7s linear infinite;
}

@keyframes scsPanelSpin {
  to {
    transform: rotate(360deg);
  }
}



/* Full-viewport loader (ONLY for redirect to Stripe/PayPal) */
.scs-viewport-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #4b5563;
  z-index: 999999; /* above modal/backdrop */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.scs-viewport-is-loading .scs-viewport-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}




.scs-modal-inner.is-loading .scs-loading-overlay {
  position: fixed;   /* instead of absolute */
  inset: 0;
  border-radius: 0;  /* full screen */
  z-index: 999999;
}



/* Card field group inside the modal */

.scs-card-field-group {
  margin-bottom: 0.85rem;
}

.scs-card-field-group label {
  display: block;
font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #111827;
}


/* Confirm button inside modal */

.scs-modal-confirm {
  margin-top: 1rem;
  width: auto;
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
   background: var(--scs-primary, #111827);
  color: #ffffff;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.scs-modal-confirm:hover {
  background: var(--scs-hover, #0070ba) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.scs-modal-close:hover {
  background: var(--scs-hover, #0070ba) !important;
}



/* Split card Elements layout */

.scs-card-row {
  display: flex;
  gap: 0.5rem;
}

.scs-card-row-number .StripeElement {
  width: 100%;
}

.scs-card-row-bottom {
  display: flex;
  gap: 0.5rem;
}

/* The two columns should expand to share the row */
.scs-card-row-bottom .scs-card-expiry,
.scs-card-row-bottom .scs-card-cvc {
  flex: 1;
  min-width: 0;
}

/* Hosts just fill their column */
.scs-card-expiry-host,
.scs-card-cvc-host {
  width: 100%;
}



/* Stack expiry and CVC on narrow screens */
@media (max-width: 480px) {
  .scs-card-row-bottom {
    flex-direction: column;
  }
}


.scs-error-message {
  margin-top: 6px;
  font-size: 17px;
  color: #b91c1c; /* red */
}

.scs-modal-message {
  margin-top: 0.75rem;
  font-size: 15px;
  color: #b91c1c; /* red */
  text-align: center;
}

/* Slightly smaller for form errors if you want: */
.scs-form-message {
  font-size: 17px;
}

/* Card message can be a bit more prominent */
.scs-card-message {
  font-size: 17px;
}

/* Status color variants */
.scs-card-message--processing {
  color: #2563eb; /* blue for "Processing payment" */
}

.scs-card-message--success {
  color: #16a34a; /* green for "Payment successful" */
}

.scs-card-message--error {
  color: #b91c1c; /* red for errors */
}

.scs-card-field-with-hint {
  position: relative;
}

.scs-card-field-with-hint .StripeElement {
  padding-right: 2.4rem;  /* make room for the hint text */
}

.scs-card-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Double hints inside inputs - remove one */
.scs-card-hint-expiry,
.scs-card-hint-cvc {
  display: none;
}


.scs_stripe_pay_button,
.scs-single-button {
  margin-top: 2px;
  margin-bottom: 7px;
  cursor: pointer;
}





/* Row layout: title left, price right */
/* Row layout: title left, price right */
.scs-modal-producthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 14px;
  flex-wrap: wrap; /* allows price to drop below */
}

/* Keep title from shrinking */
.scs-modal-producttext {
  min-width: 0;
  flex: 1 1 auto;
}

.scs-modal-title.scs-modal-title-text {
  flex: 0 0 auto;   /* don't shrink */
}

/* Price drops below on smaller screens */
.scs-modal-pricewrap {
  flex: 0 0 auto;
  margin-left: auto; /* keep it right-aligned when on same row */
}

/* Title as a pill */
.scs-modal-title.scs-modal-title-text {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Price pill: match title pill */
.scs-modal-price.scs-modal-price-text {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 520px) {
  .scs-modal-pricewrap {
    width: 100%;          /* force next line */
    margin-left: 0;
    display: flex;
    justify-content: flex-start; /* or flex-end if you want it right */
    margin-top: 10px;
  }
}



/* Entry animation upon popup opening */
.scs-modal-opening .scs-modal-producthead {
  animation: scsFadeUp 320ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes scsFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


@media (prefers-reduced-motion: reduce) {
  .scs-modal-inner,
  .scs-modal {
    transition: none !important;
    animation: none !important;
  }
}





/* ==========================
   Premium / Modern Success UI
   (CSS-only — keeps logic intact)
   ========================== */

.scs-success-summary {
  padding: 56px 16px;
  display: flex;
  justify-content: center;
}

.scs-success-inner {
  width: 100%;
  max-width: 560px;

  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;

  padding: 22px 18px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);

  position: relative;
  overflow: hidden;
}

/* subtle top highlight */
.scs-success-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 300px at 10% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
              radial-gradient(700px 260px at 90% 0%, rgba(16, 185, 129, 0.10), transparent 55%);
  pointer-events: none;
}

/* premium check badge */
.scs-success-inner::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 18px;

  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

/* Title = product name (modern, premium) */
#scs-success-title {
  margin: 6px 52px 10px 0; /* leave room for check badge */
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Price pill */
#scs-success-price {
  display: inline-flex;
  align-items: center;

  margin: 0 0 12px 0;
  padding: 10px 12px;

  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);

  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  color: #0f172a;

  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

/* Message styling */
.scs-success-message {
  margin: 0;
  padding-top: 10px;

  color: #334155;
  font-size: 1rem;
  line-height: 1.55;

  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Make it feel intentional on mobile */
@media (max-width: 480px) {
  .scs-success-summary {
    padding: 40px 14px;
  }

  .scs-success-inner {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  #scs-success-title {
    font-size: 1.18rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scs-success-inner {
    transition: none !important;
  }
}









/* ==========================
   Premium / Modern Cancel UI
   (Matches success styling)
   ========================== */

.scs-cancel-summary {
  padding: 56px 16px;
  display: flex;
  justify-content: center;
}

.scs-cancel-inner {
  width: 100%;
  max-width: 560px;

  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;

  padding: 22px 18px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);

  position: relative;
  overflow: hidden;
}

/* subtle top highlight (same vibe as success) */
.scs-cancel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 300px at 10% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
              radial-gradient(700px 260px at 90% 0%, rgba(239, 68, 68, 0.10), transparent 55%);
  pointer-events: none;
}

/* red X badge (instead of green check) */
.scs-cancel-inner::after {
  content: "✕";
  position: absolute;
  top: 14px;
  right: 14px;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 18px;

  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

/* Title */
#scs-cancel-title {
  margin: 6px 52px 10px 0; /* leave room for badge */
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Message styling */
.scs-cancel-message {
  margin: 0;
  padding-top: 10px;

  color: #334155;
  font-size: 1rem;
  line-height: 1.55;

  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Make the Go Back link look intentional */
.scs-cancel-message a {
  font-weight: 800;
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .scs-cancel-summary {
    padding: 40px 14px;
  }

  .scs-cancel-inner {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  #scs-cancel-title {
    font-size: 1.18rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scs-cancel-inner {
    transition: none !important;
  }
}
