.guest-dock {
  grid-template-columns: repeat(5, 1fr);
}

#order-backdrop {
  z-index: 89;
}

.cart-bar {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
  transform: translateX(-50%);
  width: min(calc(100% - 34px), 590px);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 22px;
  background: #151515;
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  font: inherit;
  text-align: left;
}

.cart-bar[hidden] { display: none !important; }
.cart-bar-copy { display: grid; gap: 1px; }
.cart-bar-copy strong { font-size: 15px; }
.cart-bar-copy small { color: #f59b4f; font-size: 11px; font-weight: 900; }
#cart-bar-total { font-size: 16px; }

.order-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 92svh;
  overflow: auto;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: #fff;
  box-shadow: 0 -24px 70px rgba(18, 18, 18, 0.18);
}

.order-sheet[hidden] { display: none !important; }

.order-sheet h2 {
  margin: 4px 0 6px;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 0.98;
}

.order-sheet-copy {
  margin: 0 0 20px;
  color: #77736d;
  font-weight: 700;
  line-height: 1.45;
}

.order-cart-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.order-cart-lines {
  display: grid;
  gap: 10px;
}

.order-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #f7f7f5;
}

.order-cart-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-cart-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.order-cart-copy small {
  color: #77736d;
  font-weight: 750;
}

.order-qty-control {
  display: inline-grid;
  grid-template-columns: 36px minmax(24px, auto) 36px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
}

.order-qty-control button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ececea;
  color: #171717;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.order-qty-control strong {
  text-align: center;
  font-size: 15px;
}

.order-line-total {
  grid-column: 1 / -1;
  color: #171717;
  font-size: 15px;
}

.order-empty {
  margin: 0;
  padding: 20px 16px;
  border-radius: 22px;
  background: #f7f7f5;
  color: #77736d;
  text-align: center;
  font-weight: 800;
}

.order-empty[hidden] { display: none !important; }

.order-browse-products {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  padding: 14px 18px;
  background: #fff1de;
  color: #9b581d;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
}

.order-form-grid {
  display: grid;
  gap: 14px;
}

.order-field {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #65615c;
}

.order-field input,
.order-field select,
.order-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 22px;
  padding: 17px 18px;
  background: #f1f1ef;
  color: #171717;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.order-field textarea {
  min-height: 86px;
  resize: vertical;
}

.order-location-card {
  display: grid;
  gap: 12px;
  padding: 17px 18px;
  border-radius: 24px;
  background: #eef6f1;
  border: 1px solid #dcebe2;
}

.order-location-copy {
  display: grid;
  gap: 5px;
}

.order-location-copy strong {
  color: #183d2c;
  font-size: 16px;
}

.order-location-copy small {
  color: #66756c;
  font-weight: 700;
  line-height: 1.45;
}

.order-location-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.order-location-button,
.order-location-clear {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
}

.order-location-button {
  background: #171717;
  color: #fff;
}

.order-location-button:disabled { opacity: .5; }
.order-location-clear { background: #fff; color: #555; }
.order-location-status { margin: 0; color: #66756c; font-size: 13px; font-weight: 800; }
.order-location-status[data-tone="success"] { color: #14844b; }
.order-location-status[data-tone="error"] { color: #b34437; }

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: #fff2df;
}

.order-total span {
  color: #77736d;
  font-weight: 800;
}

.order-total strong {
  font-size: 22px;
}

.order-submit,
.order-continue-shopping {
  width: 100%;
  border: 0;
  border-radius: 24px;
  padding: 18px 20px;
  font: inherit;
  font-weight: 900;
  font-size: 19px;
}

.order-submit {
  background: #151515;
  color: #fff;
}

.order-submit:disabled { opacity: 0.5; }

.order-continue-shopping {
  margin-top: 10px;
  background: #f1f1ef;
  color: #171717;
}

.order-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 900;
}

.order-message[data-tone="success"] { color: #168a4f; }
.order-message[data-tone="error"] { color: #b34437; }

.order-reference {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #eaf8ef;
  color: #176f45;
  font-weight: 900;
}

.order-reference[hidden] { display: none !important; }
.order-success-title { display: block; margin-bottom: 10px; font-size: 17px; }
.order-success-items { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.order-success-items li { display: flex; justify-content: space-between; gap: 12px; color: #356e53; }
.order-success-items li span { min-width: 0; }
.order-success-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #cfe8d8; }

.order-sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f1ef;
  font-size: 28px;
  line-height: 1;
}

.order-from-product {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 20px;
  padding: 15px 18px;
  background: #151515;
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.guest-dock .dock-action[data-action="order"] {
  color: var(--accent, #f26a21);
}

@media (min-width: 720px) {
  .order-sheet {
    left: 50%;
    right: auto;
    width: min(620px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: 34px 34px 0 0;
  }
}
