.medicine-order{width:min(1160px,96vw);max-width:96vw;height:min(740px,90dvh);max-height:90dvh;padding:0;border:1px solid #dbe3ed;border-radius:18px;color:#26364c;background:#f5f7fb;overflow:hidden;box-shadow:0 28px 100px #142b4150}.medicine-order::backdrop,.order-complete::backdrop{background:#182c3b88;backdrop-filter:blur(4px)}.order-header{display:flex;align-items:center;gap:18px;padding:18px 22px;background:white;border-bottom:1px solid #e1e6ef}.order-header small{font-size:10px;letter-spacing:1.5px;color:#6982a5}.order-header h2{margin:4px 0 0;font-size:22px}.order-header>span{margin-left:auto;color:#5476a2;font-size:11px;background:#edf3ff;padding:6px 10px;border-radius:20px}.order-header button{font-size:28px;padding:0;width:34px;height:34px;min-height:34px}.order-workspace{display:grid;grid-template-columns:29% 36% 35%;height:calc(100% - 86px)}.order-workspace>section,.order-cart{padding:20px;min-width:0;overflow-y:auto}.order-search-pane{border-right:1px solid #e0e7f0}.order-search-pane>label{font-size:13px;font-weight:700}.order-search-pane>input{display:block;width:100%;margin:10px 0;padding:11px 12px;border:1px solid #c3d1e3;border-radius:8px;background:white;font-size:14px}.order-search-pane>small{display:block;color:#7890ac;font-size:11px;margin-bottom:12px}.order-results{display:grid;gap:9px}.order-results>button{display:block;text-align:left;width:100%;background:white;border:1px solid #e0e6ef;border-radius:10px;padding:13px;color:#293e59}.order-results>button[aria-pressed=true]{border-color:#4d7dea;box-shadow:0 0 0 1px #4d7dea;background:#f1f6ff}.order-results b,.order-results small,.order-results span{display:block}.order-results b{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.order-results small{font-size:10px;color:#7890a8;line-height:1.5;margin-top:4px}.order-results span{font-size:12px;font-weight:700;margin-top:9px}.order-results span small{display:inline;font-weight:400}.order-selection h3,.order-cart h3{font-size:15px;margin:0 0 20px}.order-product-mark{display:grid;place-items:center;width:76px;height:88px;background:linear-gradient(140deg,#edf4ff,#d1e2fb);border:1px solid #bdcee7;border-radius:12px;color:#5980bb;font-size:29px;margin:28px 0}.order-selection #orderProduct>small{font-size:11px;color:#7890a8}.order-selection #orderProduct h3{font-size:20px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}.order-selection p{font-size:12px;color:#7890a8;line-height:1.7}.order-unit{display:flex;justify-content:space-between;gap:8px;margin:28px 0;padding:16px 0;border-block:1px solid #dce5f0;font-size:13px}.order-quantity-row{display:flex;gap:10px;align-items:center;margin:10px 0 18px}.order-quantity-row input{width:100%;background:white;border:1px solid #c3d1e3;border-radius:8px;padding:12px;font-size:16px}#orderAddForm>label{font-size:12px;font-weight:700}#orderAddForm button,#orderCheckout,.order-complete>button{width:100%;padding:13px;border:0;border-radius:8px;background:#4075e7;color:white;font-size:13px;font-weight:700;cursor:pointer}.order-cart{background:white;border-left:1px solid #e0e7f0;display:flex;flex-direction:column}.order-cart h3 span{color:#4075e7;margin-left:6px}.order-cart footer{margin-top:auto;padding-top:24px}.order-cart footer>small{display:block;font-size:10px;color:#7f8da2;line-height:1.6;margin:10px 0 14px}.order-total{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.order-total strong{font-size:23px;white-space:nowrap}.order-cart-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;background:#f0f5ff;border:1px solid #e1e9fa;border-radius:9px;margin-bottom:9px;padding:13px}.order-cart-row>b{font-size:12px;overflow-wrap:anywhere}.order-cart-row>button{font-size:20px;padding:0;min-height:26px;width:26px;color:#8191a8}.order-cart-row label{font-size:10px;color:#71839d}.order-cart-row input{width:64px;margin-left:6px;padding:5px;background:white;border:1px solid #ccd9ec;border-radius:4px;font-size:13px}.order-cart-row strong{font-size:12px}.order-empty{padding:25px 0;color:#8795a9;font-size:12px;line-height:1.8}#orderCheckout:disabled{opacity:.4;cursor:default}#orderMessage{font-size:11px;color:#5477a3;line-height:1.6;min-height:18px}.order-complete{width:min(370px,90vw);padding:32px;text-align:center;border:0;border-radius:18px;color:#26364c}.order-success{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e8f1ff;color:#4075e7;font-size:28px;margin:0 auto}.order-complete h2{font-size:21px;margin:18px 0}.order-complete p{font-size:17px;font-weight:700}.order-complete small{display:block;color:#8491a2;font-size:11px;margin:14px 0 25px}.medicine-order button:focus-visible,.medicine-order input:focus-visible{outline:2px solid #4075e7;outline-offset:2px}@media(max-width:700px){.medicine-order{height:94dvh;max-height:94dvh;width:96vw}.order-header{padding:12px;gap:7px}.order-header h2{font-size:18px}.order-header small{font-size:8px}.order-header>span{font-size:9px;padding:5px}.order-workspace{height:calc(100% - 70px);grid-template-columns:46% 54%;overflow-y:auto;align-content:start}.order-workspace>section{padding:12px;max-height:49dvh}.order-results>button{padding:9px}.order-selection #orderProduct h3{font-size:16px}.order-product-mark{width:42px;height:46px;font-size:20px;margin:8px 0 12px}.order-unit{margin:14px 0;padding:10px 0;flex-wrap:wrap}.order-cart{grid-column:1/-1;overflow:visible;border-top:1px solid #e0e7f0;border-left:0;padding:16px}.order-cart h3{margin-bottom:12px}.order-cart footer{padding-top:10px}.order-cart-row{gap:8px;padding:10px}}
/* Keep search, selection and checkout in fixed panes as the cart grows. */
.medicine-order[open]{display:flex;flex-direction:column;overflow:hidden;overflow-anchor:none}
.medicine-order .order-header{flex:0 0 auto;height:auto;min-height:76px}
.order-workspace{flex:1;min-height:0;height:auto;grid-template-rows:minmax(0,1fr);overflow:hidden}
.order-workspace>section,.order-cart{min-height:0;overscroll-behavior:contain;overflow-anchor:none}
.order-cart{overflow:hidden}
.order-cart>h3{flex:0 0 auto}
#orderCartItems{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;padding-right:3px}
.order-cart footer{flex:0 0 auto;margin-top:0;padding-top:16px}
#cartItems{max-height:38dvh;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
@media(max-width:700px){
 .medicine-order .order-header{min-height:66px}
 .order-workspace{grid-template-rows:minmax(0,1fr) minmax(190px,40%);align-content:stretch;overflow:hidden}
 .order-workspace>section{max-height:none;min-height:0;overflow-y:auto}
 .order-cart{min-height:0;overflow:hidden;padding:10px 14px;grid-row:2}
 .order-cart>h3{font-size:12px;margin-bottom:8px}
 .order-cart footer{padding-top:8px}
 .order-cart footer>small{font-size:9px;line-height:1.3;margin:4px 0 7px}
 .order-total strong{font-size:18px}
 #orderCheckout{padding:9px;font-size:12px}
 #orderMessage{font-size:10px;min-height:0;line-height:1.3;margin:4px 0 0}
 .order-cart-row{padding:8px;margin-bottom:6px;gap:6px}
 .order-cart-row>b{font-size:11px}
}
