/* Baytna Menu – WhatsApp ordering. Selectors are doubled so the theme's global button styles don't leak in. */

/* per-dish controls */
.bm-order-ctl{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;margin-left:2px}
.bm-order-ctl.bm-order-ctl button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1.5px solid #7F2021;border-radius:50%;color:#7F2021;font:700 20px/1 Tajawal,system-ui,sans-serif;cursor:pointer;transition:background-color .15s,color .15s}
.bm-order-ctl.bm-order-ctl button:hover,.bm-order-ctl.bm-order-ctl .bm-plus.is-active{background:#7F2021;color:#EFE2CD}
.bm-order-ctl.bm-order-ctl button:focus-visible{outline:2px solid #607458;outline-offset:2px}
.bm-order-ctl .bm-qty{min-width:20px;text-align:center;font-weight:700;color:#3A2A24;font-variant-numeric:tabular-nums}

/* floating bar */
.bm-has-order-bar body{padding-bottom:88px}
.bm-order-bar.bm-order-bar{all:unset;box-sizing:border-box;position:fixed;z-index:9990;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100% - 24px);padding:14px 24px;border-radius:999px;background:#7F2021;color:#EFE2CD;font:700 16px/1.2 Tajawal,system-ui,sans-serif;box-shadow:0 10px 30px rgba(58,42,36,.35);cursor:pointer}
.bm-order-bar.bm-order-bar:hover{background:#6A1A1B}
.bm-order-bar.bm-order-bar:focus-visible{outline:3px solid #607458;outline-offset:3px}
.bm-order-bar-meta{padding-left:14px;border-left:1px solid rgba(239,226,205,.4);font-weight:500;white-space:nowrap}
.bm-order-bar.has-items .bm-order-bar-meta{font-weight:700}
.bm-order-open,.bm-order-open body{overflow:hidden}

/* panel */
.bm-order-overlay{position:fixed;inset:0;z-index:9995;display:flex;justify-content:flex-end;background:rgba(58,42,36,.55)}
.bm-order-overlay[hidden]{display:none}
.admin-bar .bm-order-overlay{top:32px}
@media (max-width:782px){.admin-bar .bm-order-overlay{top:46px}}
.bm-order-panel{box-sizing:border-box;width:min(440px,100%);height:100%;overflow-y:auto;padding:22px 22px calc(28px + env(safe-area-inset-bottom,0px));background:#F8F2E7;color:#3A2A24;font:400 16px/1.5 Tajawal,system-ui,sans-serif;box-shadow:-12px 0 40px rgba(58,42,36,.25)}
.bm-order-panel *{box-sizing:border-box}
.bm-order-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:12px;border-bottom:2px solid #7F2021}
.bm-order-head h2{margin:0;color:#7F2021;font:700 30px/1.1 "Cormorant Garamond",Georgia,serif}
.bm-order-panel.bm-order-panel button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit}
.bm-order-panel.bm-order-panel .bm-order-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#7F2021;font-size:30px;line-height:1}
.bm-order-panel.bm-order-panel .bm-order-close:hover{background:#EFE2CD}
.bm-order-panel.bm-order-panel button:focus-visible,.bm-order-panel input:focus-visible,.bm-order-panel textarea:focus-visible{outline:2px solid #607458;outline-offset:2px}
.bm-order-preview{margin:0 0 14px;padding:10px 12px;border-left:4px solid #BD6B4D;background:#EFE2CD;font-size:14px}
.bm-order-empty{margin:24px 0;color:#6E5448}

.bm-order-row{display:grid;grid-template-columns:1fr auto 64px;align-items:center;gap:10px;padding:12px 0;border-bottom:1px dotted rgba(127,32,33,.3)}
.bm-order-row-name{min-width:0}
.bm-order-row-name strong{display:block;line-height:1.3}
.bm-order-row-name span{display:block;color:#6E5448;font-size:14px;text-align:left}
.bm-order-row-price{text-align:right;color:#7F2021;font:700 20px/1 "Cormorant Garamond",Georgia,serif;font-variant-numeric:tabular-nums}
.bm-order-panel .bm-order-ctl.bm-order-ctl button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1.5px solid #7F2021;border-radius:50%;color:#7F2021;font:700 20px/1 Tajawal,system-ui,sans-serif}
.bm-order-panel .bm-order-ctl.bm-order-ctl button:hover{background:#7F2021;color:#EFE2CD}

.bm-order-form{margin-top:20px}
.bm-order-form[hidden]{display:none}
.bm-order-types{margin:0 0 16px;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bm-order-types legend{grid-column:1/-1;margin-bottom:8px;padding:0;font-weight:700}
.bm-order-type{display:flex;align-items:flex-start;gap:8px;padding:12px;border:1.5px solid rgba(127,32,33,.35);background:#fff;cursor:pointer}
.bm-order-type:has(input:checked){border-color:#7F2021;background:#F3E4E0}
.bm-order-type input{margin:4px 0 0;accent-color:#7F2021}
.bm-order-type strong{display:block}
.bm-order-type small{display:block;color:#6E5448;font-size:13px;line-height:1.3}
.bm-order-field{margin-bottom:14px}
.bm-order-field[hidden]{display:none}
.bm-order-field label{display:block;margin-bottom:4px;font-weight:700;font-size:15px}
.bm-order-panel .bm-order-field input,.bm-order-panel .bm-order-field textarea{width:100%;padding:10px 12px;border:1.5px solid rgba(127,32,33,.35);border-radius:2px;background:#fff;color:#3A2A24;font:400 16px/1.4 Tajawal,system-ui,sans-serif}
.bm-order-hint{margin:6px 0 0;color:#6E5448;font-size:14px}
.bm-order-total{display:flex;align-items:baseline;justify-content:space-between;margin:18px 0 0;padding-top:14px;border-top:2px solid #7F2021;font-weight:700}
.bm-order-sum{color:#7F2021;font:700 30px/1 "Cormorant Garamond",Georgia,serif;font-variant-numeric:tabular-nums}
.bm-order-error{margin:12px 0 0;padding:10px 12px;border-left:4px solid #A3281F;background:#F9E3E0;color:#7F2021;font-weight:700}
.bm-order-status{margin:12px 0 0;padding:10px 12px;border-left:4px solid #607458;background:#E3EEE4;color:#2F4A36;font-weight:700}
.bm-order-panel.bm-order-panel .bm-order-send{display:block;width:100%;margin-top:16px;padding:16px 20px;border-radius:2px;background:#25D366;color:#0B3D1E;font-weight:700;font-size:17px;text-align:center}
.bm-order-panel.bm-order-panel .bm-order-send:hover{background:#1FB957}
.bm-order-panel.bm-order-panel .bm-order-send[disabled]{background:#C9C2B8;color:#6E5448;cursor:not-allowed}
.bm-order-panel.bm-order-panel .bm-order-clear{display:inline-block;margin-top:16px;padding:10px 0;color:#7F2021;text-decoration:underline;font-size:15px}

@media (max-width:767px){
	.bm-orderable .bm-item .bm-ar{flex:1 1 0}
	.bm-order-bar.bm-order-bar{left:12px;right:12px;transform:none;justify-content:space-between;max-width:none}
	.bm-order-panel{width:100%}
}
@media (prefers-reduced-motion:reduce){
	.bm-order-ctl.bm-order-ctl button{transition:none}
}
