/* Isolated, accessible note modal for store products and restaurant meals. */
.co-item-note-dialog{box-sizing:border-box;direction:rtl;position:fixed;margin:auto;inset:0;width:min(468px,calc(100vw - 28px));max-height:min(88dvh,690px);overflow-y:auto;border:1px solid var(--co-line,#d5e7db);border-radius:26px;padding:0;background:var(--co-surface,#fff);color:var(--co-ink,#16392b);box-shadow:0 30px 100px #0006;font-family:inherit;}
.co-item-note-dialog::backdrop{background:rgba(3,21,15,.69);backdrop-filter:blur(7px);}
.co-item-note-form{padding:clamp(19px,5vw,29px);display:grid;gap:13px;}
.co-item-note-head{display:flex;justify-content:space-between;align-items:center;}
.co-item-note-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:17px;background:linear-gradient(135deg,#e4f8ec,#c8eedd);color:#087a54;font-size:30px;font-weight:bold;}
.co-item-note-head button{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--co-line,#e1e9e4);border-radius:12px;background:transparent;color:inherit;font-size:25px;cursor:pointer;}
.co-item-note-eyebrow{font-size:12px;font-weight:900;color:#0c9666;letter-spacing:.15px;}
.co-item-note-dialog h2{font-size:clamp(21px,5vw,27px);font-weight:900;margin:0;line-height:1.45;color:inherit;}
.co-item-note-lead{font-size:14px;color:var(--co-muted,#607b6c);line-height:1.7;margin:0 0 5px;}
.co-item-note-dialog label{font-size:14px;font-weight:900;}
.co-item-note-dialog label small{font-size:12px;font-weight:600;color:var(--co-muted,#668476);}
.co-item-note-dialog textarea{box-sizing:border-box;width:100%;min-height:112px;max-height:220px;border:1.5px solid var(--co-line,#cee1d6);border-radius:17px;padding:14px 15px;resize:vertical;background:var(--co-surface-alt,#f4faf6);color:inherit;outline:none;font:inherit;font-size:16px;line-height:1.75;}
.co-item-note-dialog textarea:focus{border-color:#0b9668;box-shadow:0 0 0 4px rgba(18,166,105,.13);}
.co-item-note-dialog textarea::placeholder{color:#879c90;}
.co-item-note-count{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--co-muted,#70857b);}
.co-item-note-count span:last-child{direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums;}
.co-item-note-actions{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:10px;margin-top:10px;}
.co-item-note-actions button{border-radius:15px;min-height:49px;font:inherit;font-size:14px;font-weight:900;cursor:pointer;}
.co-item-cancel{border:1px solid var(--co-line,#c9e0d1);background:transparent;color:inherit;}
.co-item-confirm{border:0;background:linear-gradient(115deg,#008a60,#005840);color:white;box-shadow:0 7px 18px rgba(0,103,69,.2);}
.co-item-confirm span{margin-right:7px;color:#ffb04f;}
.co-item-note-actions button:focus-visible{outline:3px solid #ed8f2b;outline-offset:3px;}
html[data-co-theme="dark"] .co-item-note-dialog{background:#102b22;color:#f3fff7;border-color:#315f4b;}
html[data-co-theme="dark"] .co-item-note-dialog textarea{background:#173c2d;border-color:#3c7056;color:#f3fff7;}
html[data-co-theme="dark"] .co-item-note-head button{border-color:#3c7056;}
@media(max-width:440px){.co-item-note-dialog{border-radius:22px}.co-item-note-form{gap:11px}.co-item-note-actions{grid-template-columns:1fr 1.45fr}}
@media(prefers-reduced-motion:no-preference){.co-item-note-dialog[open]{animation:coNoteIn .2s ease-out}@keyframes coNoteIn{from{opacity:.4;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}}
