/* Booking feedback uses the same palette as the booking page.
   The dialog is appended to body, outside .booking-premium. */
body:has(.booking-premium) #bookingModalOverlay {
  background: rgba(7, 11, 14, .82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  overscroll-behavior: contain;
}

body:has(.booking-premium) #bookingModalOverlay > #bookingModal {
  width: min(580px, 100%) !important;
  max-width: 100% !important;
  min-width: 0;
  padding: 32px !important;
  border: 1px solid #e8ebe4 !important;
  border-radius: 20px !important;
  background: #e8ebe4 !important;
  color: #17271f !important;
  box-shadow: 0 24px 90px #0008 !important;
  text-align: left;
  overflow-wrap: anywhere;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-header {
  margin-bottom: 24px !important;
  flex: 0 0 auto;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-header > div {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100%;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-icon {
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #d1fb72 !important;
  color: #17271f !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-icon::before {
  content: '\2713';
  font-size: 25px;
  font-weight: 600;
}

body:has(.booking-premium) #bookingModalOverlay[data-kind='error'] .booking-modal-icon {
  background: #f6d3bd !important;
  color: #7c361f !important;
}

body:has(.booking-premium) #bookingModalOverlay[data-kind='error'] .booking-modal-icon::before {
  content: '!';
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-title {
  margin: 0;
  color: #17271f !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -.05em;
  line-height: 1.15 !important;
  text-align: left;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-subtitle {
  margin-top: 10px !important;
  color: #536953 !important;
  font-size: 13px !important;
  line-height: 1.65;
}

body:has(.booking-premium) #bookingModalOverlay #bookingModalBody {
  color: #17271f !important;
  font-size: 14px !important;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: #536953 #e8ebe4;
}

body:has(.booking-premium) #bookingModalOverlay #bookingModalBody > div {
  color: inherit !important;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-row {
  display: grid;
  grid-template-columns: minmax(70px, .65fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #17271f1c;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-label {
  color: #536953;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.65;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-value {
  width: auto;
  color: #17271f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  text-align: right;
  overflow-wrap: anywhere;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-total {
  order: 1;
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 10px;
  background: #17271f;
  color: #d1fb72;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.25;
  text-align: right;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-actions {
  margin-top: 24px !important;
  padding-top: 0 !important;
  border: 0 !important;
}

body:has(.booking-premium) #bookingModalOverlay .booking-modal-actions > button {
  width: 100%;
  min-height: 50px;
  padding: 14px 20px !important;
  border: 1px solid #17271f !important;
  border-radius: 9px !important;
  background: #17271f !important;
  color: #d1fb72 !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: 0;
  text-transform: none;
}

body:has(.booking-premium) #bookingModalOverlay #bookingModal > button {
  display: grid;
  place-items: center;
  border: 1px solid #17271f29 !important;
  border-radius: 10px !important;
  background: #17271f08 !important;
  color: #17271f !important;
  box-shadow: none !important;
}

body:has(.booking-premium) #bookingModalOverlay button:focus-visible {
  outline: 3px solid #26756a;
  outline-offset: 3px;
}

/* A lobby occupies one complete row in the booking column. */
.booking-premium .lobby-section {
  width: 100%;
  min-width: 0;
}

.booking-premium .lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 22px;
}

.booking-premium .lobby-card {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9fff528;
  border-radius: 13px;
  background: #101a1d;
  box-shadow: none;
}

.booking-premium .lobby-card-wide .lobby-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.booking-premium .lobby-card-wide .lobby-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.booking-premium .lobby-thumb {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 1px solid #d9fff52b;
  border-radius: 9px;
  background: #070b0e;
  box-shadow: none;
}

.booking-premium .lobby-info { min-width: 0; }

.booking-premium .lobby-game {
  margin: 0;
  color: #e8ebe4;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-premium .lobby-meta {
  margin: 6px 0 0;
  color: #a8b8b2;
  font-size: 11px;
  line-height: 1.65;
}

.booking-premium .lobby-card-wide .lobby-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.booking-premium .lobby-card-wide .lobby-players {
  min-width: 0;
  color: #69f6df;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  text-align: left;
}

.booking-premium .lobby-card-wide .lobby-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #d1fb72;
  color: #17271f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .025em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: none;
}

.booking-premium .lobby-btn:disabled { cursor: not-allowed; }
.booking-premium .lobby-btn:focus-visible { outline: 2px solid #69f6df; outline-offset: 4px; }

@media (max-width: 1100px) {
  .booking-premium .lobby-card-wide .lobby-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .booking-premium .lobby-card-wide .lobby-actions { justify-content: space-between; width: 100%; padding-top: 14px; border-top: 1px solid #d9fff51c; }
  .booking-premium .lobby-card-wide .lobby-btn { flex: 0 0 auto; min-width: 120px; }
}

@media (max-width: 480px) {
  body:has(.booking-premium) #bookingModalOverlay > #bookingModal { padding: 24px 20px !important; border-radius: 16px !important; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-title { font-size: 27px !important; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-header { margin-bottom: 18px !important; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-row { grid-template-columns: minmax(65px, .65fr) minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-label { font-size: 10px; letter-spacing: .025em; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-value { font-size: 12px; }
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-total { padding: 16px; font-size: 23px; }
  .booking-premium .lobby-card { padding: 14px; }
  .booking-premium .lobby-card-wide .lobby-left { gap: 12px; }
  .booking-premium .lobby-thumb { width: 64px; height: 64px; flex-basis: 64px; }
  .booking-premium .lobby-game { font-size: 15px; }
}

@media (hover: hover) {
  body:has(.booking-premium) #bookingModalOverlay .booking-modal-actions > button:hover { background: #294332 !important; }
  .booking-premium .lobby-btn:not(:disabled):hover { background: #e1ff99; }
}
