.order-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.order-calendar-heading h2{margin:0 0 8px}.order-calendar-heading p{margin:0 0 16px}
.order-calendar-navigation{display:flex;align-items:center;gap:12px;margin:20px 0 12px}
.order-calendar-navigation h3{min-width:180px;text-align:center;margin:0;text-transform:capitalize}
.order-calendar-legend{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.order-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.order-calendar-weekday{text-align:center;color:var(--muted);padding:6px}
.order-calendar-day{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:110px;padding:10px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#26332d);text-align:left;overflow-wrap:anywhere;min-width:0}
button.order-calendar-day:hover{border-color:var(--accent,#278168);box-shadow:0 0 0 1px var(--accent,#278168)}
.order-calendar-day.open{background:var(--surface-mint,#e4f3ed)}
.order-calendar-day.past{background:#f5f6f5;color:#737b76}
.order-calendar-day-number{font-weight:600;font-size:14px}
.order-calendar-day small{font-size:12px;white-space:pre-wrap}
.order-delivery-state{display:inline-block;font-size:12px;line-height:1.3;border-radius:5px;padding:4px 7px;font-weight:600}
.order-delivery-state.open{background:#daf1e6;color:#18573c}
.order-delivery-state.planned{background:#fff1ce;color:#725400}
.order-delivery-state.closed{background:#e9ebee;color:#505866}
.order-delivery-state.cancelled{background:#f9e4e4;color:#8b2d2d}
.order-calendar-day.cancelled{background:#fff7f7}
.order-calendar-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin-top:auto;width:100%}
.order-calendar-actions button{font-size:12px;line-height:1.3;padding:6px;white-space:normal;text-align:left}
.order-calendar-actions .order-cancel-delivery{color:#8b2d2d;background:#fff5f5;border-color:#e6baba}
.order-delivery-dialog{width:min(640px,94vw)}
.order-store-check{display:flex;align-items:center;gap:9px;margin:8px 0}
.order-store-check input[type=checkbox]{width:17px;height:17px;flex:none;margin:0}
.order-delivery-dialog fieldset,.order-copy-panel{border:1px solid var(--line,#ddd);border-radius:8px;padding:12px;margin:12px 0}
.order-delivery-dialog fieldset{max-height:240px;overflow:auto}
.order-delivery-dialog [hidden]{display:none}
.order-copy-panel select{min-width:0;flex:1}.order-copy-panel .cw-toolbar{flex-wrap:wrap}
.order-unavailable,[data-order-warning]{color:#98500b;font-size:13px}
.order-request-dialog [data-order-error],.order-delivery-dialog [data-delivery-error],[data-calendar-error]{color:#a32929}
@media(max-width:760px){.order-calendar-grid{gap:3px}.order-calendar-day{min-height:84px;padding:5px;gap:5px}.order-delivery-state{font-size:10px;padding:3px}.order-calendar-day small{font-size:10px}.order-calendar-navigation{gap:6px}.order-calendar-navigation h3{min-width:130px;font-size:16px}.order-calendar-day-number{font-size:12px}}

/* Compact month: date controls stay small; delivery actions live in the dialog. */
.order-calendar-card{width:100%;max-width:520px;box-sizing:border-box;padding:20px}
.order-calendar-card .order-calendar-heading h2{font-size:18px;margin:0}
.order-calendar-card .order-calendar-navigation{gap:8px;margin:16px 0 14px}
.order-calendar-card .order-calendar-navigation h3{min-width:0;flex:1;text-align:left;font-size:16px;font-weight:600}
.order-calendar-card .order-calendar-navigation button{display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;color:#164f49;font-size:24px}
.order-calendar-card .order-calendar-grid{gap:4px}
.order-calendar-card .order-calendar-weekday{padding:0 0 8px;font-size:12px;line-height:18px}
.order-calendar-card .order-calendar-day{box-sizing:border-box;min-height:0;height:44px;padding:4px;gap:3px;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;box-shadow:none;font-weight:400}
.order-calendar-card .order-calendar-day-number{font-size:14px;line-height:18px;font-weight:400}
.order-calendar-card .order-calendar-day.has-delivery{background:#e1f2ed;color:#14685c}
.order-calendar-card .order-calendar-day.has-delivery .order-calendar-day-number{font-weight:600}
.order-calendar-card .order-calendar-day.past:not(.has-delivery){color:var(--muted,#758982);background:transparent}
.order-calendar-dot{display:block;width:4px;height:4px;flex:none;border-radius:50%;background:#218877}
.order-calendar-card button.order-calendar-day:hover{background:#edf7f3;box-shadow:inset 0 0 0 1px #218877}
.order-calendar-card button:focus-visible{outline:2px solid #218877;outline-offset:2px}
.order-calendar-card [data-calendar-error]:empty{display:none}
.order-delivery-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.order-delivery-danger{color:#8b2d2d;background:#fff5f5;border-color:#e6baba}
@media(max-width:480px){.order-calendar-card{padding:14px}.order-calendar-card .order-calendar-grid{gap:3px}.order-calendar-card .order-calendar-day{height:42px}}

/* Two adjacent compact months share a single navigation and delivery editor. */
.order-calendar-card{max-width:1000px}
.order-calendar-card .order-calendar-heading{flex-wrap:nowrap;margin-bottom:18px}
.order-calendar-card .order-calendar-heading .order-calendar-navigation{margin:0;flex:none}
.order-calendar-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
.order-calendar-card.order-calendar-card--page{max-width:none}
.order-calendar-card--page .order-calendar-months{grid-template-columns:repeat(3,minmax(0,1fr))}
.order-calendar-month{min-width:0}
.order-calendar-month h3{font-size:16px;line-height:24px;font-weight:600;text-transform:capitalize;margin:0 0 18px}
.order-calendar-dot{width:6px;height:6px}
.order-calendar-dot.yellow{background:#c18a00}
.order-calendar-dot.green{background:#16834a}
.order-calendar-dot.red{background:#ce3d42}
@media(max-width:760px){.order-calendar-months,.order-calendar-card--page .order-calendar-months{grid-template-columns:minmax(0,1fr);gap:24px}.order-calendar-card{max-width:520px}}

/* Current date selection in the shared delivery calendar. */
.order-calendar-card button.order-calendar-day[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:-2px}
