/**
 * The base file that should be imported by every file.
 * There should be no CSS generation in this or from imported scss files at all!
 */
/**
 * Library
 */
/**
 * Variables and functions
 */
/**
 * Reservation popup.
 *
 * Rendered hidden on page load, so opening it is instant. Deliberately written without mixins:
 * the compiled output is a straight flattening of these rules.
 */
body.reserve-popup-open {
  overflow: hidden; }

.reserve-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none; }

.reserve-popup.is-open {
  display: block; }

.reserve-popup .reserve-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); }

.reserve-popup .reserve-popup-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  max-width: 860px;
  max-height: 90vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden; }

.reserve-popup .close-btn {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid var(--medium-grey);
  border-radius: 0 0 0 20px;
  background-color: var(--white);
  width: 40px;
  height: 40px;
  line-height: 35px;
  text-align: center;
  z-index: 2;
  padding: 0 0 5px 5px;
  cursor: pointer; }

.reserve-popup .reserve-popup-state {
  display: none;
  flex-direction: column;
  min-height: 0; }

/**
 * The state has to claim the container's height, otherwise it grows to its content, the body
 * never gets a height to scroll against and the footer drops below the fold.
 */
.reserve-popup .reserve-popup-state.is-active {
  display: flex;
  flex: 1 1 auto;
  min-height: 0; }

.reserve-popup .reserve-popup-head {
  padding: 30px 60px 20px 30px;
  flex: 0 0 auto; }

.reserve-popup .reserve-popup-head h3 {
  margin: 0; }

.reserve-popup .reserve-popup-body {
  padding: 0 30px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch; }

.reserve-popup .reserve-rows-related-title {
  margin: 25px 0 10px; }

/**
 * A single product line. The main product sits on a darker background so the hierarchy in the
 * popup is readable at a glance; rows at quantity 0 fade back.
 */
.reserve-popup .reserve-row {
  display: flex;
  gap: 20px;
  padding: 20px 15px;
  border-bottom: 1px solid var(--medium-grey); }

.reserve-popup .reserve-row.is-main {
  background-color: var(--light-gray);
  border-bottom: 0; }

.reserve-popup .reserve-row.mode-same .datepicker {
  display: none; }

.reserve-popup .reserve-row-media {
  flex: 0 0 80px;
  width: 80px; }

.reserve-popup .reserve-row-media img {
  width: 100%;
  height: auto;
  display: block; }

.reserve-popup .reserve-row-body {
  flex: 1 1 auto;
  min-width: 0; }

.reserve-popup .reserve-row-title {
  font-weight: 700; }

.reserve-popup .reserve-row-code {
  display: block;
  color: var(--dark-gray); }

.reserve-popup .reserve-row-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin-top: 3px; }

.reserve-popup .reserve-row-mode {
  margin-top: 12px; }

.reserve-popup .reserve-row-mode label {
  display: flex;
  flex-direction: column;
  gap: 8px; }

.reserve-popup .reserve-row-mode select {
  border: 1px solid var(--medium-grey);
  border-radius: 30px;
  height: 44px;
  padding: 0 20px;
  background-color: var(--white);
  font-family: inherit;
  cursor: pointer;
  max-width: 320px; }

/* The popup supplies its own spacing; the standalone form margin is too large here. */
.reserve-popup .reserve-row .add-to-cart {
  margin-top: 12px; }

.reserve-popup .reserve-row .datepicker {
  margin-bottom: 12px; }

/**
 * The standalone form reserves 150px per date field so the two sit side by side on a product
 * page. Inside a popup row that floor forces the whole dialog wider than a phone screen, so the
 * fields are allowed to shrink here.
 */
.reserve-popup .reserve-row .datepicker label {
  min-width: 0; }

.reserve-popup .reserve-popup-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-top: 1px solid var(--medium-grey);
  background-color: var(--white); }

.reserve-popup .btn-reserve {
  display: flex;
  align-items: center;
  gap: 0 12px; }

.reserve-popup .btn-reserve span.icon-cart {
  font-size: 25px; }

.reserve-popup .btn-reserve[disabled],
.reserve-popup .btn-reserve:disabled {
  opacity: 0.3;
  cursor: not-allowed; }

.reserve-popup .reserve-popup-confirm .btn-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 30px;
  padding: 0 30px 30px; }

.reserve-popup .reserve-popup-confirm .go-to-cart-btn .btn {
  display: flex;
  align-items: center;
  gap: 10px; }

.reserve-popup .reserve-popup-confirm .go-to-cart-btn .btn span {
  font-size: 25px; }

@media screen and (max-width: 767px) {
  .reserve-popup .reserve-popup-container {
    width: 100%;
    height: 100%;
    max-height: none;
    top: 0;
    left: 0;
    transform: none; }
  .reserve-popup .reserve-popup-head {
    padding: 25px 60px 15px 20px; }
  .reserve-popup .reserve-popup-body {
    padding: 0 20px; }
  .reserve-popup .reserve-row {
    padding: 15px 10px;
    gap: 12px; }
  .reserve-popup .reserve-row-media {
    flex: 0 0 60px;
    width: 60px; }
  /* Two date fields never fit side by side on a phone. */
  .reserve-popup .reserve-row .datepicker {
    flex-direction: column;
    gap: 10px; }
  .reserve-popup .reserve-row .datepicker label {
    width: 100%; }
  .reserve-popup .reserve-row-mode select {
    max-width: none;
    width: 100%; }
  .reserve-popup .reserve-popup-footer {
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* The CTA is the one thing that always keeps its place on screen. */
  .reserve-popup .btn-reserve {
    width: 100%;
    justify-content: center; } }

/*# sourceMappingURL=reserve-popup.css.map */
