/* Branded booking checkout modal — offlead design tokens */

.booking-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.booking-checkout-modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  visibility: visible;
}

@media (min-width: 640px) {
  .booking-checkout-modal {
    align-items: center;
  }
}

.booking-checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.booking-checkout-sheet {
  position: relative;
  background: var(--white, #fff);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

@media (min-width: 640px) {
  .booking-checkout-sheet {
    border-radius: 20px;
    max-height: 90vh;
    transform: scale(0.96);
  }
}

.booking-checkout-modal[aria-hidden="false"] .booking-checkout-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .booking-checkout-modal[aria-hidden="false"] .booking-checkout-sheet {
    transform: scale(1);
  }
}

.booking-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--grey-100, #f3f4f6);
  flex-shrink: 0;
}

.booking-checkout-title {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grey-900, #111827);
  margin: 0;
}

.booking-checkout-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--grey-100, #f3f4f6);
  border-radius: 50%;
  cursor: pointer;
  color: var(--grey-700, #374151);
  font-size: 1.25rem;
  line-height: 1;
}

.booking-checkout-steps {
  display: flex;
  gap: 6px;
  padding: 0 20px 16px;
  flex-shrink: 0;
}

.booking-checkout-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--grey-200, #e5e7eb);
}

.booking-checkout-step.is-active,
.booking-checkout-step.is-done {
  background: var(--color-primary, #2d5a3d);
}

.booking-checkout-body {
  padding: 0 20px 20px;
  overflow-y: auto;
  flex: 1;
}

.booking-checkout-field-name {
  font-size: 0.875rem;
  color: var(--grey-600, #4b5563);
  margin: 0 0 16px;
}

.booking-checkout-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-500, #6b7280);
  margin: 0 0 10px;
}

.booking-checkout-date-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
}

.booking-checkout-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

@media (min-width: 400px) {
  .booking-checkout-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.booking-checkout-slot {
  padding: 10px 8px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  background: var(--white, #fff);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.booking-checkout-slot:hover:not(:disabled) {
  border-color: var(--color-primary, #2d5a3d);
}

.booking-checkout-slot.is-selected {
  border-color: var(--color-primary, #2d5a3d);
  background: rgba(45, 90, 61, 0.08);
  color: var(--color-primary, #2d5a3d);
}

.booking-checkout-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-checkout-skeleton {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: booking-shimmer 1.2s infinite;
}

@keyframes booking-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.booking-checkout-summary {
  background: var(--grey-50, #f9fafb);
  border: 1px solid var(--grey-100, #f3f4f6);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.booking-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--grey-700, #374151);
}

.booking-checkout-summary-row--total {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--grey-900, #111827);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-200, #e5e7eb);
  margin-bottom: 0;
}

.booking-checkout-email {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: inherit;
}

#bookingPaymentElement {
  margin: 12px 0 8px;
  min-height: 120px;
}

.booking-checkout-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.booking-checkout-success {
  text-align: center;
  padding: 24px 8px;
}

.booking-checkout-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(45, 90, 61, 0.12);
  color: var(--color-primary, #2d5a3d);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.booking-checkout-success h3 {
  font-family: var(--font-display, "Fraunces", serif);
  margin: 0 0 8px;
}

.booking-checkout-success p {
  color: var(--grey-600, #4b5563);
  margin: 0 0 20px;
  font-size: 0.9375rem;
}

.booking-checkout-footer {
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--grey-100, #f3f4f6);
  flex-shrink: 0;
  background: var(--white, #fff);
}

.booking-checkout-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-checkout-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: var(--color-primary, #2d5a3d);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.booking-checkout-cta:hover:not(:disabled) {
  background: var(--color-primary-dark, #1e3d2a);
}

.booking-checkout-cta:disabled {
  background: var(--color-primary, #2d5a3d);
  color: #fff;
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-checkout-back {
  display: block;
  width: 100%;
  padding: 8px;
  margin: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grey-600, #4b5563);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.booking-checkout-back:hover {
  color: var(--grey-900, #111827);
}

.booking-checkout-pay-btn {
  font-weight: 700;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.booking-checkout-pay-btn.is-loading:disabled {
  background: var(--color-primary, #2d5a3d);
  color: #fff;
  opacity: 0.45;
  cursor: wait;
}

.booking-checkout-pay-btn.is-ready {
  background: var(--color-primary, #2d5a3d);
  color: #fff;
  opacity: 1;
  cursor: pointer;
}

.booking-checkout-pay-btn.is-ready:hover {
  background: var(--color-primary-dark, #1e3d2a);
}

.booking-checkout-pay-btn.is-processing:disabled {
  background: var(--color-primary-dark, #1e3d2a);
  color: #fff;
  opacity: 1;
  cursor: wait;
}

.booking-checkout-empty {
  text-align: center;
  color: var(--grey-500, #6b7280);
  padding: 24px 0;
  font-size: 0.9375rem;
}

.booking-checkout-muted {
  font-size: 0.8125rem;
  color: var(--grey-500, #6b7280);
  margin-top: 8px;
}

.booking-checkout-included {
  font-size: 0.875rem;
  color: var(--grey-700, #374151);
  margin: 12px 0 4px;
}

.booking-checkout-more-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #2d5a3d);
  cursor: pointer;
}

.booking-checkout-more-panel {
  padding: 12px 0 4px;
}

.booking-checkout-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--grey-700, #374151);
}

.booking-checkout-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-checkout-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--grey-200, #e5e7eb);
  background: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.booking-checkout-pill.is-selected {
  border-color: var(--color-primary, #2d5a3d);
  background: rgba(45, 90, 61, 0.1);
  color: var(--color-primary, #2d5a3d);
  font-weight: 600;
}

.booking-checkout-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-checkout-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--grey-200, #e5e7eb);
  background: #fff;
  font-size: 1.125rem;
  cursor: pointer;
}

.booking-checkout-terms {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--grey-600, #4b5563);
  margin: 16px 0 8px;
  cursor: pointer;
}

.booking-checkout-terms input {
  margin-top: 2px;
  flex-shrink: 0;
}

.booking-checkout-terms-text {
  line-height: 1.45;
}

.booking-checkout-terms a {
  color: var(--color-primary, #2d5a3d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-checkout-units {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.booking-checkout-unit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.booking-checkout-unit.is-selected {
  border-color: var(--color-primary, #2d5a3d);
  box-shadow: 0 0 0 1px var(--color-primary, #2d5a3d);
}

.booking-checkout-unit-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.booking-checkout-unit-img--placeholder {
  background: var(--grey-100, #f3f4f6);
}

.booking-checkout-unit-name {
  font-weight: 600;
  color: var(--grey-900, #111827);
  flex: 1;
}

.booking-checkout-unit-price {
  font-size: 0.8125rem;
  color: var(--grey-600, #4b5563);
}
