/* MNI GO - Carrello locale */
.cart-launcher {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #fff;
  background: var(--wine, #872a3e);
  box-shadow: 0 8px 22px #45182340;
  font-weight: 750;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border-radius: 50%;
  color: var(--wine, #872a3e);
  background: #fff;
}
.cart-add {
  width: 100%;
  background: var(--wine, #872a3e);
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 13px;
  margin-top: 17px;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  background: #1b12169e;
}
.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -10px 0 35px #0002;
}
.cart-header, .cart-summary { padding: 20px; }
.cart-header {
  border-bottom: 1px solid #ece4e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 { margin: 0; font-size: 22px; }
.cart-close {
  border: 0;
  background: #f7eeee;
  color: var(--wine, #872a3e);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 25px;
}
.cart-items { flex: 1; overflow-y: auto; padding: 0 20px; }
.cart-item { padding: 18px 0; border-bottom: 1px solid #ece4e3; }
.cart-item-heading, .cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.cart-item-heading strong:first-child { max-width: 70%; }
.cart-item p { margin: 5px 0; color: #77686a; font-size: 13px; }
.cart-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.cart-actions button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #ebd8da;
  border-radius: 9px;
  background: #fff8f8;
  color: var(--wine, #872a3e);
  font-weight: 700;
}
.cart-actions .cart-remove { margin-left: auto; padding: 5px 10px; font-size: 12px; }
.cart-empty { padding: 32px 0; text-align: center; color: #77686a; }
.cart-summary { border-top: 1px solid #ece4e3; }
.cart-total-row { font-size: 19px; }
.cart-summary p { margin: 12px 0 0; color: #77686a; font-size: 12px; }
body.cart-open { overflow: hidden; }
@media (max-width: 680px) {
  .cart-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .cart-header, .cart-summary { padding: 16px; }
  .cart-items { padding: 0 16px; }
}

/* MNI GO — STEP 2: riepilogo ordine (nessun invio al server) */
.cart-review-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--wine, #872a3e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.cart-review-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.checkout-overlay { z-index: 90; }
.checkout-header { gap: 12px; }
.checkout-header h2 { font-size: 19px; flex: 1; text-align: center; }
.checkout-back {
  border: 0;
  background: none;
  color: var(--wine, #872a3e);
  font-weight: 700;
  white-space: nowrap;
  padding: 8px 0;
}
.checkout-content {
  padding: 22px 20px;
  overflow-y: auto;
  flex: 1;
}
.checkout-content h3 { margin: 0 0 10px; font-size: 16px; }
.checkout-lines { margin-bottom: 22px; border-bottom: 1px solid #ece4e3; }
.checkout-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #f1e9e9;
  font-size: 14px;
}
.checkout-line div { min-width: 0; }
.checkout-line strong:last-child { flex-shrink: 0; }
.checkout-line small { display: block; color: #77686a; margin-top: 5px; line-height: 1.5; }
.checkout-label { display: block; font-size: 13px; font-weight: 700; margin: 16px 0 7px; }
.checkout-content input, .checkout-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9ced0;
  border-radius: 10px;
  background: #fff;
  color: #2f2429;
  font: inherit;
  box-sizing: border-box;
}
.checkout-content textarea { resize: vertical; }
.checkout-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-top: 20px;
  border-radius: 12px;
  background: #f9f4f4;
  font-size: 13px;
}
.checkout-payment strong { color: var(--wine, #872a3e); }
.checkout-summary .checkout-draft {
  color: #8a364a;
  line-height: 1.55;
  font-size: 12px;
}
@media (max-width: 680px) {
  .checkout-content { padding: 18px 16px; }
  .checkout-header h2 { font-size: 17px; }
}

.order-confirmation {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #ece4e3;
  border-radius: 20px;
  background: #fff;
  color: inherit;
  box-shadow: 0 16px 50px #1b121640;
}
.order-confirmation[open] {
  display: flex;
  flex-direction: column;
}
.order-confirmation::backdrop { background: #1b12169e; }
.confirmation-header {
  display: block;
  background: #f9f4f4;
  color: var(--wine, #872a3e);
}
.confirmation-header p { margin: 6px 0 0; font-weight: 700; }
.confirmation-items { margin: 0; padding: 0; list-style: none; }
.confirmation-items strong, .confirmation-items small { overflow-wrap: anywhere; }
.confirmation-summary #confirmationPayment {
  color: var(--wine-dark, #5b1c2d);
  font-size: 14px;
  font-weight: 700;
}
.confirmation-summary .cart-review-button:focus-visible {
  outline: 3px solid var(--wine-dark, #5b1c2d);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .order-confirmation { width: calc(100% - 20px); }
}
