/* Booking summary card under the form */

.sbc-ms-card {
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
}

.sbc-ms-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sbc-ms-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.sbc-ms-card__step {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sbc-ms-card__body {
  font-size: 0.9rem;
  line-height: 1.5;
}

.sbc-ms-card__helper {
  margin: 0 0 0.75rem;
  color: #6b7280;
}

.sbc-ms-card__rows {
  margin: 0 0 0.5rem;
}

.sbc-ms-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.sbc-ms-card__row--total {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.sbc-ms-card__label {
  color: #4b5563;
}

.sbc-ms-card__value {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.sbc-ms-card__row--total .sbc-ms-card__label {
  font-weight: 600;
  color: #111827;
}

.sbc-ms-card__row--total .sbc-ms-card__value {
  font-weight: 700;
  font-size: 1.05rem;
}

.sbc-ms-card__note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Empty state – numbers dimmed */
.sbc-ms-card__body--empty .sbc-ms-card__rows {
  opacity: 0.45;
}

/* Thank-you / cancel card on success & cancel pages */

.sbc-ms-thankyou {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 14px 40px rgba(5, 150, 105, 0.1);
  text-align: center;
}

.sbc-ms-thankyou__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.sbc-ms-thankyou__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.sbc-ms-thankyou__lead {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: #374151;
}

.sbc-ms-thankyou__info {
  font-size: 0.9rem;
  color: #4b5563;
}

.sbc-ms-thankyou__info p {
  margin: 0.25rem 0;
}

/* Cancel variant (red tone) */

.sbc-ms-thankyou--cancel {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.12);
}

.sbc-ms-thankyou--cancel .sbc-ms-thankyou__icon {
  background: #fef2f2;
  color: #b91c1c;
}

/* Booking summary list on success / cancel cards */

.sbc-ms-thankyou__summary {
  margin: 0.75rem 0 0.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.sbc-ms-thankyou__summary li {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

/* Re-usable pill button */

.sbc-ms-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Primary blue button for “Complete payment now” */

.sbc-ms-btn--primary {
  background: #0074d4 !important;
  color: #ffffff !important;
}

.sbc-ms-btn--primary:hover,
.sbc-ms-btn--primary:focus {
  background: #005bb0 !important;
  color: #ffffff !important;
}

/* Small tweak for narrow screens */
@media (max-width: 480px) {
  .sbc-ms-card {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem;
  }

  .sbc-ms-thankyou {
    margin-top: 1.5rem;
    padding: 1.4rem 1.25rem;
  }
}

.sbc-ms-account--exists .sbc-ms-account-status {
  colour: #059669;
  font-weight: 600;
  margin-left: 0.25rem;
}

.sbc-ms-account--exists .sbc-ms-account-label-text {
  colour: #059669;
  font-weight: 600;
}


/* === Moorings account pill (normal state) === */

.sbc-moorings-booking-form .sbc-account-optin {
  margin-top: 0.35rem;
}

.sbc-moorings-booking-form .sbc-account-optin__label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.85rem;
  line-height: 1.3;
}

.sbc-moorings-booking-form .sbc-account-optin__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
}

.sbc-moorings-booking-form .sbc-account-optin__label-text {
  display: inline-block;
}

.sbc-moorings-booking-form .sbc-account-optin__note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* === Existing-account state: green pill, no checkbox === */

.sbc-moorings-booking-form .sbc-account-optin--existing .sbc-account-optin__label-wrap,
.sbc-moorings-booking-form .sbc-account-optin--existing .sbc-account-optin__note {
  display: none; /* Hide checkbox + old helper text */
}

/* Replace them with a single green pill message */
.sbc-moorings-booking-form .sbc-account-optin--existing::after {
  content: "Active moorings account found for this email";
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #dcfce7;   /* soft green */
  color: #166534;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
}