.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.popup-overlay.show {
  opacity: 1;
}
.popup-content {
  background-color: #262626;
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  color: white;
  box-sizing: border-box;
  margin: auto;
}
.popup-content::-webkit-scrollbar {
  display: none;
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-family: sans-serif;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  outline: none;
  transition: color 0.2s ease;
}
.popup-close:hover {
  color: #cccccc;
}
.popup-title {
  text-align: center;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: normal;
  margin-top: 10px;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  word-wrap: break-word;
}
.popup-image-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  background-color: white;
}
.popup-image {
  width: 100%;
  max-width: 500px;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.booking-popup-subtitle {
  text-align: center;
  color: #cccccc;
  font-size: 15px;
  margin-top: -18px;
  margin-bottom: 25px;
  padding-left: 20px;
  padding-right: 20px;
}
.popup-content--wide {
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
#booking-stage-calendar {
  flex: 1;
  display: flex;
  min-height: 0;
}
#cal-inline-embed {
  width: 100%;
  flex: 1;
  min-height: 400px;
}
#stripe-payment-element {
  margin: 10px 0 20px;
}
#booking-payment-amount {
  color: #b7fe02;
  font-weight: 600;
}
@media screen and (max-width: 700px) {
  .popup-overlay:has(.popup-content--wide) {
    padding: 0;
  }
  .popup-content--wide {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 16px;
  }
}
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 550px;
  margin: 0 auto;
}
.popup-form .form-group {
  display: flex;
  flex-direction: column;
}
.popup-form .form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #e0e0e0;
}
.popup-form .form-group input {
  padding: 12px;
  border-radius: 4px;
  border: none;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  color: #000000;
}
.popup-form .form-group input:focus {
  outline: 2px solid #df2c35;
}
.popup-submit {
  background-color: #df2c35;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}
.popup-submit:hover {
  background-color: #b71c1c;
}
@media screen and (max-width: 500px) {
  .popup-content {
    padding: 18px 16px;
    max-height: 94vh;
  }
  .popup-title {
    font-size: 19px;
    margin-top: 8px;
    margin-bottom: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .popup-image-container {
    margin-bottom: 12px;
  }
  .popup-image {
    max-height: 90px;
  }
  .popup-form {
    gap: 8px;
  }
  .popup-form .form-group label {
    margin-bottom: 4px;
  }
  .popup-form .form-group input {
    padding: 9px 10px;
  }
  .popup-submit {
    width: 100%;
    align-self: stretch;
    text-align: center;
    margin-top: 4px;
    padding: 10px 20px;
  }
}

@media screen and (max-height: 600px) {
  .popup-image-container {
    display: none;
  }
}

.rcr-date-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.rcr-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: background-color 0.15s ease;
}
.rcr-date-row:hover:not(:disabled) {
  background-color: #444444;
}
.rcr-date-row__spots {
  color: #b7fe02;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 12px;
}
.rcr-date-row--full {
  opacity: 0.5;
  cursor: not-allowed;
}
.rcr-date-row--full .rcr-date-row__spots {
  color: #ff6b6b;
}
.rcr-inline-back {
  background: none;
  border: none;
  color: #b7fe02;
  cursor: pointer;
  margin-top: 16px;
  font-size: 14px;
  text-decoration: underline;
}
/* .popup-title normally inherits white from the popup's .popup-content
   wrapper. The inline widget lives directly in the page body (dark
   section background, no .popup-content ancestor), so it needs an
   explicit color or the heading is invisible (dark-on-dark). */
#rcr-inline-booking .popup-title {
  color: #ffffff;
}
