/* Order mode, visible daily capacity and the bread quantity sheet. */
.catalogue-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-bottom:20px;padding:12px 16px;background:#f7fbfe;border:1px solid var(--line);border-radius:10px;font-size:13px;line-height:1.6}
.catalogue-context p{margin:0;color:var(--blue-dark)}
.catalogue-context a,.ordering-controls-heading>a{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--blue);text-decoration:underline;text-underline-offset:4px;font-size:13px}
.catalogue-context a:hover,.ordering-controls-heading>a:hover{color:var(--blue-dark)}
.ordering-controls{margin-top:36px;padding-top:28px;border-top:1px solid var(--line);scroll-margin-top:110px}
.ordering-controls-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin-bottom:20px}
.ordering-controls-heading .eyebrow{font-size:11px;margin-bottom:8px}
.ordering-controls-heading h3{margin:0;font-size:32px;line-height:1.15}
.ordering-controls .order-mode-panel{margin-bottom:16px}
.ordering-controls .bake-day-toolbar{margin-bottom:0}
.staff-link{font-size:12px;padding-block:12px;margin-block:0}.staff-link a{display:inline-block;padding-block:10px}
.stock-connection-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;background:#fff;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.stock-connection-row button{background:transparent;color:var(--blue);font-size:12px;min-height:40px;text-decoration:underline;text-underline-offset:3px}
.order-mode-panel{margin:0 0 30px;border:1px solid var(--line);border-radius:10px;background:#f7fbfe;overflow:hidden}
.order-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 16px 0}
.order-mode-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:76px;min-width:0;text-align:left;padding:14px 18px;border:1px solid #aac5d8;border-radius:7px;background:white;line-height:1.4}
.order-mode-button>span{font-size:16px;font-weight:700}
.order-mode-button>small{font-size:12px;color:var(--muted);font-weight:400}
.order-mode-button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white;box-shadow:inset 0 -3px 0 var(--orange)}
.order-mode-button[aria-pressed=true]>small{color:#e0effa}
.order-mode-button:hover:not([aria-pressed=true]){background:#edf6fc}
.order-mode-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px}
.order-mode-context>p{font-size:13px;line-height:1.6;max-width:65ch;min-width:0}
.stock-date-button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;background:white;border:1px solid var(--line);border-radius:6px;min-height:44px;font-size:13px;text-align:left;flex-shrink:0;max-width:45%}
.stock-date-button>span:first-child{min-width:0;overflow-wrap:anywhere}
.stock-preview-note{font-size:12px;color:var(--muted);line-height:1.6;border-top:1px solid var(--line);background:white;padding:11px 16px}
.product-stock{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;min-height:28px;font-size:12px;line-height:1.5;padding:8px 0 13px;color:var(--blue-dark)}
.product-stock strong{font-size:13px;font-weight:600}
.product-stock small{font-size:11px;color:var(--muted)}
.product-card .product-stock{flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:4px;min-height:90px}
.product-stock.stock-ready>strong{display:inline-flex;align-items:center;gap:6px;color:#276648}
.product-stock.stock-ready>strong:before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.product-pickup-date{font-size:13px;line-height:1.5;color:var(--blue-dark)}
.product-stock.stock-empty,.stock-empty .product-stock{color:#a12b23}
.product-stock.stock-empty strong,.stock-empty .product-stock strong{color:inherit}
.product-stock .stock-label{font-weight:600}
.plan-mode-note{color:var(--blue-dark);font-size:13px;line-height:1.6;border-left:3px solid var(--orange);padding:8px 12px;background:#edf6fc;margin-top:20px}
.cart-order-mode,.pickup-mode-note{display:inline-block;background:#fff0e6;color:#8a3c18;border-radius:4px;padding:5px 9px;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:14px}
.cart-stock-error:empty{display:none}
.cart-stock-error:not(:empty){min-height:0;margin:0 0 16px;padding:12px;background:#fff2ee;border:1px solid #edc4b6;border-radius:6px;font-size:12px}
.product-modal{width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:24px;border-radius:12px;overflow-y:auto;overscroll-behavior:contain}
.product-modal .dialog-header{align-items:center;padding-bottom:14px;margin-bottom:18px}
.product-modal .dialog-header .eyebrow{color:var(--blue)}
.product-detail-heading{display:grid;grid-template-columns:116px minmax(0,1fr);gap:20px;align-items:center}
.product-detail-heading>img{width:116px;height:116px;border-radius:8px;background:#eee4d6;object-fit:cover}
.product-detail-heading>div{min-width:0}
.detail-mode{display:inline-block;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.4px;color:var(--muted);margin-bottom:8px;text-transform:uppercase}
.product-modal .product-detail-heading h2{font-size:31px;line-height:1.08;overflow-wrap:anywhere}
.detail-price{font-size:23px;color:var(--blue);font-weight:700;line-height:1.3;margin-top:12px}
.detail-description{font-size:14px;line-height:1.65;color:var(--muted);margin:19px 0 14px}
.detail-date{display:block;width:100%;min-height:44px;padding:10px 12px;text-align:left;color:var(--blue-dark);font-size:13px;border:1px solid var(--line);border-radius:6px;background:#f7fbfe;overflow-wrap:anywhere}
.detail-date:after{content:' ↗';white-space:nowrap}
.detail-availability{margin:15px 0 20px;padding:16px;border-radius:7px;background:#edf6fc;border-left:3px solid var(--blue)}
.detail-stock{font-size:19px;line-height:1.4;color:var(--blue-dark);font-weight:600}
.detail-stock.stock-empty{color:#a12b23}
.detail-stock-note,.detail-limit-info{font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px}
.detail-stock-note:empty,.detail-limit-info:empty{display:none}
.detail-quantity-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:18px;border-top:1px solid var(--line)}
.detail-quantity-row>label{font-size:14px;font-weight:500}
.detail-quantity{display:grid;grid-template-columns:44px 54px 44px;flex-shrink:0;min-width:0;border:1px solid #aac5d8;border-radius:6px;overflow:hidden;background:white}
.detail-quantity button{display:grid;place-items:center;background:#f7fbfe;font-size:22px;line-height:1;min-width:0;min-height:46px;padding:0}
.detail-quantity input{font-family:var(--sans);font-size:16px;color:var(--ink);text-align:center;min-width:0;width:100%;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;padding:4px;appearance:textfield;-moz-appearance:textfield}
.detail-quantity input::-webkit-inner-spin-button,.detail-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.product-modal .form-error{min-height:0;margin:14px 0}
.product-modal .form-error:empty{display:none}
.product-modal #product-submit{margin-top:18px;border-radius:6px;min-height:50px;font-size:15px}
.detail-preview-note{font-size:11px;line-height:1.6;color:var(--muted);text-align:center;margin-top:12px}
.mode-modal{border-radius:10px}
.mode-change-summary{font-size:14px;line-height:1.7;color:var(--muted)}
.mode-modal>.button{border-radius:6px}
.mode-modal>.text-button{justify-content:center;margin-top:10px;min-height:44px}
@media(max-width:760px){
  .catalogue-context{display:grid;gap:2px;padding:12px 14px;margin-bottom:16px;font-size:12px}.catalogue-context a{justify-self:start;min-height:44px;font-size:12px}
  .ordering-controls{margin-top:28px;padding-top:24px;scroll-margin-top:90px}.ordering-controls-heading{gap:6px 16px;margin-bottom:16px}.ordering-controls-heading h3{font-size:28px}.ordering-controls-heading>a{font-size:12px}
  .order-mode-panel{margin-bottom:24px}.order-mode-options{gap:8px;padding:12px 12px 0}.order-mode-button{min-height:86px;padding:12px 10px}.order-mode-button>span{font-size:15px}.order-mode-button>small{font-size:12px;line-height:1.45}
  .order-mode-context{display:grid;gap:12px;padding:14px 12px}.stock-date-button{width:100%;max-width:none;font-size:13px}.stock-preview-note{padding:11px 12px;font-size:11px}
  .product-stock{padding:7px 0 12px;min-height:27px}.view-list .product-stock{font-size:11px;line-height:1.45;gap:3px 6px}.view-list .product-stock strong{font-size:12px}
  .product-modal{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:min(92dvh,850px);border-radius:16px 16px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom,0px))}
  .product-modal .dialog-header{padding-bottom:12px;margin-bottom:16px}.product-detail-heading{grid-template-columns:98px minmax(0,1fr);gap:16px}.product-detail-heading>img{width:98px;height:108px}.product-modal .product-detail-heading h2{font-size:28px}.detail-price{font-size:22px;margin-top:9px}.detail-mode{font-size:10px;margin-bottom:6px}
  .detail-description{font-size:13px;margin:16px 0 12px}.detail-availability{padding:13px;margin:13px 0 16px}.detail-stock{font-size:18px}.detail-quantity-row{padding-top:15px}.detail-preview-note{max-width:42ch;margin-inline:auto}
}
@media(max-width:360px){
  .product-detail-heading{grid-template-columns:82px minmax(0,1fr);gap:12px}.product-detail-heading>img{width:82px;height:100px}.product-modal .product-detail-heading h2{font-size:26px}.detail-quantity{grid-template-columns:42px 48px 42px}.detail-stock{font-size:17px}
}
@media(max-height:600px){.product-modal{max-height:calc(100dvh - 16px)}}
