.stripe-booking-lock {
  overflow: hidden;
}

.stripe-booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.stripe-booking-backdrop[hidden] {
  display: none;
}

.stripe-booking-modal {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.stripe-booking-head,
.stripe-booking-body {
  padding: 24px;
}

.stripe-booking-head {
  position: relative;
  border-bottom: 1px solid #e8ebf0;
}

.stripe-booking-head h2 {
  margin: 0 44px 6px 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.stripe-booking-head p,
.stripe-booking-note {
  margin: 0;
  color: #657086;
  font-size: 0.9rem;
}

.stripe-booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f7;
  color: #172033;
  font-size: 24px;
  cursor: pointer;
}

.stripe-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stripe-booking-field {
  display: grid;
  gap: 7px;
}

.stripe-booking-field--wide {
  grid-column: 1 / -1;
}

.stripe-booking-field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.stripe-booking-field input,
.stripe-booking-field select {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #cfd5df;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.stripe-booking-field input:focus,
.stripe-booking-field select:focus {
  outline: 3px solid rgba(31, 111, 91, 0.16);
  border-color: #1f6f5b;
}

.stripe-booking-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f3f7f5;
}

.stripe-booking-summary strong {
  font-size: 1.1rem;
}

.stripe-booking-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  background: #1f6f5b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.stripe-booking-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.stripe-booking-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 0.87rem;
}

.stripe-booking-toast {
  position: fixed;
  z-index: 10001;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #172033;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

@media (max-width: 580px) {
  .stripe-booking-grid {
    grid-template-columns: 1fr;
  }

  .stripe-booking-field--wide {
    grid-column: auto;
  }
}

/* ---------------- colour configurator ---------------- */
.stripe-booking-modal {
  width: min(100%, 600px);
}

/* consistent spacing between the form blocks */
.stripe-booking-body > * + * {
  margin-top: 16px;
}

.sb-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f4;
  border: 1px solid #e3e7ec;
}

#booking-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease;
}

#booking-photo.is-swapping {
  opacity: 0.2;
}

.sb-pick {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.sb-pick-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.sb-pick-label small {
  font-weight: 500;
  color: #8a93a3;
}

.sb-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1.5px solid #d3d9e0;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.sb-swatch:hover {
  border-color: #9aa6b5;
}

.sb-swatch.is-active {
  border-color: #1f6f5b;
  background: #f0f7f4;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
}

.sb-swatch.is-sold {
  opacity: 0.55;
}

.sb-swatch.is-sold .sb-swatch-name {
  text-decoration: line-through;
}

.sb-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.sb-carline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.sb-carline strong {
  font-size: 1.02rem;
}

.sb-carline span {
  font-weight: 800;
  color: #1f6f5b;
}

.sb-avail {
  margin: 0;
  min-height: 20px;
  font-size: 0.88rem;
  color: #657086;
}

.sb-avail.is-ok {
  color: #16794c;
  font-weight: 600;
}

.sb-avail.is-bad {
  color: #b42318;
  font-weight: 600;
}
