/*
 * KOrder styles · public/css/02c-tablet-cart-modals.css
 * Guest tablet: order dock, cart review, table-request confirm, menu-detail modal and options.
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */

.consumer-cart {
  position: static;
  height: 100%;
  max-height: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: -12px 0 28px rgba(31, 27, 22, 0.08);
}

.consumer-cart .cart-list {
  min-height: 0;
}

.order-dock.consumer-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 22;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
  max-width: min(860px, calc(100vw - 44px));
  height: auto;
  max-height: none;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-dock .dock-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  width: auto;
  min-width: 154px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  line-height: 1.12;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(31, 27, 22, 0.22);
}

.order-dock .dock-button > span:last-child {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.dock-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dock-icon svg {
  width: 26px;
  height: 26px;
}

.dock-icon svg:not(.dock-illustration-svg) path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-dock .button.service-action .dock-icon,
.order-dock .button.bill-action .dock-icon {
  width: 54px;
  height: 54px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.08);
}

.dock-icon .dock-illustration-svg {
  width: 48px;
  height: 48px;
  display: block;
}

.order-dock .button.service-action {
  color: #fff;
  border-color: #b94434;
  background: var(--coral);
}

.order-dock .button.bill-action {
  color: #fff;
  border-color: #1e5b74;
  background: #246f8f;
}

.order-dock .button.current-orders-action {
  color: #1f1b16;
  border-color: rgba(31, 27, 22, 0.14);
  background: #fff;
}

.order-dock .button.cart-action {
  color: #fff;
  border-color: #076c64;
  background: var(--teal);
}

.order-dock .button.current-orders-action .dock-icon {
  color: #0f766e;
  background: #edf8f5;
}

.order-dock .button.service-action:hover {
  background: #b94434;
}

.order-dock .button.bill-action:hover {
  background: #1e5b74;
}

.order-dock .button.cart-action:hover {
  background: #076c64;
}

.cart-review-modal {
  width: min(640px, calc(100vw - 48px));
}

.cart-modal-list {
  min-height: 180px;
  max-height: min(420px, 42vh);
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-modal-foot {
  padding: 0;
  border-top: 0;
}

.cart-modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.special-request-box {
  display: grid;
  gap: 7px;
  text-align: left;
}

.special-request-box span,
.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.special-request-box .textarea {
  min-height: 84px;
  resize: vertical;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.56);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.menu-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1fr);
  width: min(920px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100dvh - 48px));
  max-height: min(760px, calc(100vh - 48px));
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 26px;
  line-height: 1;
}

.table-request-confirm-modal {
  display: grid;
  width: min(560px, calc(100vw - 40px));
  gap: 22px;
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.table-request-confirm-icon {
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff4ec;
}

.table-request-confirm-icon.bill {
  background: #edf7fb;
}

.table-request-confirm-icon .dock-illustration-svg {
  width: 86px;
  height: 86px;
}

.table-request-confirm-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.22;
}

/* Service Request card name above the question (Water Refill, Tissue ...). */
.table-request-confirm-item {
  margin: 0 0 -12px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.table-request-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.table-request-confirm-actions .button {
  min-height: 70px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 950;
}

.table-request-cancel {
  border: 2px solid #d6533f;
  color: #b73f30;
  background: #fff5f2;
}

.table-request-ok {
  border: 2px solid #087f75;
  color: #fff;
  background: #087f75;
}

.modal-photo {
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f2ecdf;
}

.modal-photo .menu-photo {
  display: grid;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  place-items: center;
  border-radius: 0;
  background: #f2ecdf;
  padding: 24px;
}

.modal-photo .menu-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-body {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.modal-scroll {
  display: flex;
  height: auto;
  max-height: none;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.modal-scroll .menu-sticker {
  align-self: flex-start;
}

.modal-body h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-price {
  font-size: 30px;
  font-weight: 900;
}

.menu-option-groups {
  display: grid;
  gap: 10px;
}

.menu-option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f2;
}

.menu-option-group legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.menu-option-group legend em {
  color: var(--coral);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-option-group.is-missing {
  border-color: rgba(223, 83, 63, 0.72);
  box-shadow: 0 0 0 3px rgba(223, 83, 63, 0.12);
}

.option-error {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.option-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  font-weight: 800;
}

.option-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.option-choice.option-soldout {
  color: #9a9388;
}

.option-choice input:disabled {
  accent-color: #b9b1a5;
}

.option-choice input:disabled + span {
  text-decoration: line-through;
}

.option-choice strong,
.option-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-memo {
  display: grid;
  gap: 8px;
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px 32px 18px;
  border-top: 1px solid rgba(223, 218, 208, 0.72);
  background: #fff;
  box-shadow: 0 -10px 24px rgba(31, 27, 22, 0.08);
}

.modal-bottom .button {
  min-height: 52px;
}

.detail-qty {
  grid-template-columns: 38px 44px 38px;
  height: 46px;
}

.detail-qty button {
  height: 46px;
}
