/* ke-menu-extra.css – "Avvisami quando è pronto" e offerte nel menù cliente */

.ke-push-box { padding: 12px 14px; border-radius: 16px; background: #f6ede2; border: 1px solid #ead9c3; text-align: center; }
.ke-push-box[hidden] { display: none; }
.ke-push-btn { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: #1f1a15; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.ke-push-btn:disabled { opacity: .6; }
.ke-push-note { margin: 8px 0 0; font-size: 13px; color: #6b6157; }
.ke-push-box p:first-child { margin-top: 0; }
.ke-push-ok { margin: 0; font-weight: 800; color: #15803d; font-size: 15px; }
.ke-offerte { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dcc7ad; }
.ke-offerte-btn { width: 100%; min-height: 48px; border: 2px solid #1f1a15; border-radius: 14px; background: #fff; color: #1f1a15; font-weight: 800; font-size: 15px; cursor: pointer; }
.ke-offerte-btn:disabled, .ke-offerte-off:disabled { opacity: .6; }
.ke-offerte-ok { margin: 0; font-weight: 700; color: #1f1a15; font-size: 14px; }
.ke-offerte-off { margin-top: 6px; border: 0; background: none; color: #6b6157; text-decoration: underline; font-size: 13px; cursor: pointer; padding: 6px; }

/* Pagamento online nel checkout */
.ke-pay-online { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px solid #e6dccf; background: #fff; cursor: pointer; }
.ke-pay-online.is-on { border-color: #6d28d9; background: #f5f3ff; }
.ke-pay-online-txt { display: flex; flex-direction: column; gap: 2px; }
.ke-pay-online-txt b { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #1f1a15; }
.ke-pay-online-txt b .material-symbols-outlined { font-size: 20px; color: #6d28d9; }
.ke-pay-online-txt small { font-size: 12px; color: #6b6157; }
.ke-pay-online-oppure { margin: 2px 0; text-align: center; font-size: 12px; color: #8a7f74; }
.ke-pay-esito { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2147483001; max-width: min(92vw, 520px); padding: 14px 18px; border-radius: 16px; background: #1f1a15; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.ke-pay-esito--ok { background: #15803d; }
.ke-pay-esito--ko { background: #b42318; }

/* Niente timer né tasti "Correggi"/"Conferma" nella finestra dell'ordine: resta solo "Annulla" finché si può */
#ultimo-ordine-timer-box, #ultimo-ordine-timer-scaduto, #btn-modifica-ordine-cliente, #btn-conferma-chiudi-ordine { display: none !important; }
#ke-push-box { display: none !important; }
#btn-annulla-ordine-cliente { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid #fecaca; background: #fff1f2; text-decoration: none !important; }

/* Domanda sulle notifiche dopo registrazione / primo accesso */
.ke-notif-ov { position: fixed; inset: 0; z-index: 2147483000; background: rgba(31, 26, 21, .45); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 640px) { .ke-notif-ov { align-items: center; } }
.ke-notif-sheet { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.ke-notif-sheet h3 { margin: 0 0 8px; font-size: 19px; font-weight: 850; color: #1f1a15; }
.ke-notif-sheet p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #4a4037; }
.ke-notif-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 8px; border: 1.5px solid #eadfd2; border-radius: 14px; cursor: pointer; }
.ke-notif-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: #9a6534; flex: none; }
.ke-notif-opt b { display: block; font-size: 15px; color: #1f1a15; }
.ke-notif-opt small { display: block; font-size: 12.5px; color: #6b6157; }
.ke-notif-ok { width: 100%; min-height: 50px; margin-top: 6px; border: 0; border-radius: 14px; background: #1f1a15; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.ke-notif-ok:disabled { opacity: .6; }
.ke-notif-no { width: 100%; min-height: 44px; margin-top: 6px; border: 0; background: none; color: #6b6157; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Finestre del menù (ordine, accesso, fidelity, ultimo ordine): da telefono non più attaccate al bordo
   in basso ma staccate e arrotondate su tutti e quattro gli angoli; altezza sulla parte visibile dello schermo */
@media (max-width: 639px) {
  #checkout-modal, #fidelity-drawer-modal, #modal-ultimo-ordine {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  #checkout-sheet, #fidelity-drawer-sheet, #modal-ultimo-ordine-sheet {
    border-radius: 24px !important;
    max-height: calc(100vh - 20px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom)) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28) !important;
  }
  #customer-auth-modal { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important; }
}
#customer-auth-modal > div {
  max-height: min(92vh, calc(100dvh - 24px)) !important;
}
