/* Booking protocol: three confirmation checks and full-agreement modal. */
body.booking-protocol-lock {
  overflow: hidden;
}

.booking-form .booking-protocol-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
}

.booking-form .booking-protocol-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(0, 160, 233, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #c9d1d9;
  cursor: pointer;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 500;
}

.booking-form .booking-protocol-row:hover {
  border-color: rgba(0, 160, 233, 0.55);
  background: rgba(0, 160, 233, 0.06);
}

.booking-form input.booking-protocol-check {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.booking-protocol-box {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid #43536d;
  border-radius: 4px;
  background: #0b1018;
}

.booking-form input.booking-protocol-check:checked + .booking-protocol-box {
  border-color: var(--blue);
  background: var(--blue);
}

.booking-form input.booking-protocol-check:checked + .booking-protocol-box::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.booking-form input.booking-protocol-check:disabled + .booking-protocol-box {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-form input.booking-protocol-check:focus-visible + .booking-protocol-box {
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.28);
}

.booking-protocol-text {
  min-width: 0;
}

.booking-protocol-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.booking-protocol-tip {
  margin: 2px 0 0;
  color: #8b949e;
  font-size: 12px;
}

.booking-form [data-booking-submit] {
  width: 100%;
}

.booking-protocol-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 16px;
}

.booking-protocol-modal[aria-hidden="true"] {
  display: none;
}

.booking-protocol-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.booking-protocol-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: calc(100vh - 32px);
  max-height: none;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.booking-protocol-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.booking-protocol-modal-title {
  color: #1f4e79;
  font-size: 15px;
  font-weight: 800;
}

.booking-protocol-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #999;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.booking-protocol-modal-close:hover {
  color: #333;
  background: #f1f5f9;
}

.booking-protocol-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 0 0;
}

.booking-protocol-agreement-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-protocol-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  text-align: center;
}

.booking-protocol-modal-confirm {
  width: 100%;
  max-width: 420px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #ccc;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: not-allowed;
}

.booking-protocol-modal-confirm.is-ready {
  background: linear-gradient(135deg, #1f6feb, #58a6ff);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(31, 111, 235, 0.4);
}

.booking-protocol-countdown {
  margin-left: 8px;
  font-size: 13px;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .booking-protocol-modal {
    padding: 8px;
  }

  .booking-protocol-modal-card {
    width: 100%;
    height: calc(100vh - 16px);
    max-height: none;
    border-radius: 10px;
  }

  .booking-protocol-modal-head {
    padding: 12px 14px;
  }

  .booking-protocol-modal-title {
    font-size: 13px;
  }

  .booking-protocol-modal-foot {
    padding: 12px 14px;
  }
}
