.trial-order-shell {
    --trial-navy: #123d67;
    --trial-ink: #111827;
    --trial-mint: #56c6b1;
    --trial-soft-mint: #e6f7f2;
    --trial-line: #dce5ee;
    min-height: calc(100vh - 100px);
    margin: 118px 18px 18px;
    padding: 22px 22px 120px;
    border: 1px solid rgba(220, 229, 238, .9);
    border-radius: 18px;
    background: #fff;
    color: var(--trial-ink);
    font-family: Manrope, "Noto Sans", Arial, sans-serif;
}

.trial-order-header { display:flex; align-items:center; gap:20px; margin-bottom:20px; min-height:58px; }
.trial-order-header h1 { margin:2px 0; font-size:28px; line-height:1.15; font-weight:800; color:var(--trial-navy); }
.trial-order-header p { margin:0; color:#687386; font-size:14px; }
.trial-kicker { padding:7px 12px; border:1px solid #9fdccb; border-radius:8px; color:var(--trial-navy); background:#effbf7; font-size:12px; font-weight:800; }
.trial-back-button { width:46px; height:46px; border:1px solid var(--trial-line); border-radius:50%; background:#fff; color:var(--trial-navy); font-size:24px; cursor:pointer; }

.trial-order-notice { display:flex; gap:16px; align-items:flex-start; padding:16px 18px; border:1px solid #afe5d8; border-radius:10px; background:linear-gradient(90deg,#f5fcfa,#eefaf7); margin-bottom:22px; }
.trial-order-notice p { margin:5px 0 0; color:#446170; line-height:1.5; }
.trial-notice-icon { flex:0 0 36px; height:36px; display:grid; place-items:center; border-radius:50%; background:var(--trial-navy); color:#fff; font-weight:800; }

.trial-order-toolbar { display:flex; gap:18px; align-items:center; margin-bottom:22px; }
.trial-category-list { display:flex; flex:1; gap:10px; overflow-x:auto; scrollbar-width:none; }
.trial-category-list::-webkit-scrollbar { display:none; }
.trial-category-list button { flex:0 0 auto; min-height:44px; padding:0 20px; border:1px solid var(--trial-line); border-radius:999px; background:#fff; color:#596679; font:700 14px inherit; cursor:pointer; }
.trial-category-list button.active { color:#fff; border-color:var(--trial-mint); background:var(--trial-mint); }
.trial-search { flex:0 1 330px; }
.trial-search input { width:100%; height:46px; padding:0 18px; border:1px solid var(--trial-line); border-radius:999px; background:#fff; color:var(--trial-ink); font:600 14px inherit; outline:none; }
.trial-search input:focus { border-color:var(--trial-mint); box-shadow:0 0 0 3px rgba(86,198,177,.16); }

.trial-order-layout { display:grid; grid-template-columns:210px minmax(0,1fr) 390px; gap:14px; align-items:start; }
.trial-product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); grid-auto-rows:max-content; align-items:start; gap:18px; }
.trial-filters { overflow:hidden; border:1px solid var(--trial-line); border-radius:10px; background:#fff; }
.trial-filters h2 { margin:0; padding:18px; border-bottom:1px solid var(--trial-line); color:var(--trial-ink); font-size:18px; }
.trial-filters button { width:100%; display:grid; grid-template-columns:24px 1fr; gap:10px; align-items:start; padding:13px 16px; border:0; background:#fff; color:#526176; text-align:left; cursor:pointer; }
.trial-filters button span:last-child { display:flex; min-width:0; flex-direction:column; }
.trial-filters button strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.trial-filters button small { color:#8a96a7; font-size:11px; }
.trial-filter-box { width:20px; height:20px; border:1px solid #9db3cb; border-radius:5px; background:#fff; }
.trial-filters button.active .trial-filter-box { border-color:var(--trial-navy); background:var(--trial-navy); }
.trial-filters button.active strong { color:var(--trial-navy); }
.trial-no-price-filter { display:flex; justify-content:space-between; gap:8px; padding:14px 16px 18px 50px; color:var(--trial-navy); font-size:12px; }
.trial-no-price-filter small { color:#8a96a7; }
.trial-product-card { min-width:0; height:max-content; overflow:hidden; display:flex; align-self:start; flex-direction:column; min-height:0; border:1px solid var(--trial-line); border-radius:10px; background:#fff; }
.trial-product-card.selected { border:2px solid var(--trial-navy); }
.trial-product-image { position:relative; display:grid; place-items:center; box-sizing:border-box; width:100%; height:clamp(140px,10vw,170px); overflow:hidden; background:linear-gradient(135deg,#effaf7,#70d2c0) !important; }
.trial-product-image > img { position:absolute; inset:0; display:block; box-sizing:border-box; width:100%; height:100%; max-width:100%; max-height:100%; padding:10px; object-fit:contain; object-position:center; }
.trial-product-image > .product-image-fallback { position:absolute; inset:0; display:grid; place-items:center; box-sizing:border-box; width:100%; height:100%; overflow:hidden; background:#edf8f5 !important; color:var(--trial-navy) !important; }
.trial-product-image > .product-image-fallback svg { width:44px; height:44px; max-width:70%; max-height:70%; fill:currentColor; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.trial-product-copy { flex:0 0 auto; min-height:100px; box-sizing:border-box; padding:14px 16px 8px; }
.trial-product-copy > span { color:#2f9a84; font-size:12px; font-weight:800; }
.trial-product-copy h2 { margin:6px 0 4px; display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; font-size:16px; line-height:1.35; font-weight:800; }
.trial-product-copy p { margin:0 0 6px; display:-webkit-box; overflow:hidden; color:#6c7788; font-size:13px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.trial-product-copy small { color:#7b8797; font-size:12px; }
.trial-product-footer { display:flex; flex:0 0 auto; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:0; padding:10px 16px 14px; }
.trial-product-footer .trial-price-pending { flex:1 0 100%; }
.trial-price-pending { display:flex; flex-direction:column; }
.trial-price-pending strong { color:var(--trial-navy); font-size:15px; }
.trial-price-pending span { color:#7b8797; font-size:11px; }
.trial-add-button { width:100%; height:42px; border:0; border-radius:999px; background:var(--trial-mint); color:#fff; font-size:13px; font-weight:800; line-height:1; cursor:pointer; }
.trial-quantity-control { display:flex; align-items:center; gap:10px; height:44px; padding:0 8px; border-radius:999px; background:var(--trial-navy); color:#fff; }
.trial-quantity-control button { width:30px; height:30px; border:0; background:transparent; color:#fff; font-size:20px; cursor:pointer; }
.trial-quantity-control strong { min-width:22px; text-align:center; }

.trial-cart { position:sticky; top:22px; overflow:hidden; border:1px solid var(--trial-line); border-radius:22px; background:#fff; box-shadow:0 12px 32px rgba(18,61,103,.1); }
.trial-cart-heading { display:flex; justify-content:space-between; align-items:center; padding:20px 20px 16px; border-bottom:1px solid var(--trial-line); }
.trial-cart-heading span { color:#728094; font-size:12px; font-weight:700; }
.trial-cart-heading h2 { margin:3px 0 0; font-size:21px; }
.trial-cart-badge { padding:7px 10px; border-radius:999px; background:var(--trial-soft-mint); color:#24836f !important; }
.trial-cart-review { display:none; min-height:38px; padding:0 14px; border:1px solid var(--trial-line); border-radius:999px; background:#fff; color:var(--trial-navy); font:800 12px inherit; }
.trial-cart-items { max-height:280px; overflow:auto; padding:8px 18px; }
.trial-cart-empty { padding:28px 10px; text-align:center; color:#7b8797; font-size:14px; }
.trial-cart-row { display:grid; grid-template-columns:48px 1fr auto; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid #eef2f6; }
.trial-cart-image { width:48px; height:48px; border-radius:10px; }
.trial-cart-row div:nth-child(2) { min-width:0; display:flex; flex-direction:column; }
.trial-cart-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.trial-cart-row span,.trial-cart-row small { color:#788597; font-size:11px; }
.trial-cart-row button { border:0; background:transparent; color:#db5656; font-size:12px; font-weight:700; cursor:pointer; }
.trial-field { display:flex; flex-direction:column; gap:6px; margin:14px 18px 0; color:#536176; font-size:12px; font-weight:700; }
.trial-field input,.trial-field textarea { width:100%; box-sizing:border-box; border:1px solid var(--trial-line); border-radius:12px; padding:11px 12px; font:500 14px inherit; }
.trial-field textarea { min-height:72px; resize:vertical; }
.trial-cart-info { display:flex; flex-direction:column; gap:4px; margin:14px 18px 0; padding:12px 14px; border-radius:12px; background:#f4f7fa; }
.trial-cart-info strong { color:var(--trial-navy); font-size:13px; }
.trial-cart-info span { color:#687589; font-size:12px; line-height:1.4; }
.trial-submit-message { margin:14px 18px 0; padding:10px 12px; border-radius:10px; font-size:12px; }
.trial-submit-message.success { background:#e7f8f0; color:#1e725e; }
.trial-submit-message.error { background:#fff0f0; color:#a43e3e; }
.trial-submit-button { width:calc(100% - 36px); min-height:50px; margin:16px 18px 0; border:0; border-radius:999px; background:var(--trial-navy); color:#fff; font:800 14px inherit; cursor:pointer; }
.trial-submit-button:disabled { background:#cbd3dc; cursor:not-allowed; }
.trial-submit-caption { margin:9px 24px 18px; text-align:center; color:#8590a0; font-size:11px; line-height:1.4; }
.trial-order-loading,.trial-order-empty { padding:72px 24px; text-align:center; border:1px solid var(--trial-line); border-radius:20px; background:#fff; }
.trial-order-empty h1,.trial-order-empty h2 { margin:0 0 8px; }
.trial-order-empty p { color:#687589; }
.trial-order-empty--inline { grid-column:1/-1; }
.trial-secondary-button { min-height:44px; padding:0 20px; border:0; border-radius:999px; background:var(--trial-navy); color:#fff; font-weight:700; cursor:pointer; }

@media (max-width:1180px) {
    .trial-product-grid { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
    .trial-order-layout { grid-template-columns:180px minmax(0,1fr) 330px; }
}

@media (max-width:820px) {
    body:has(.trial-order-shell) { min-width:0; overflow-x:hidden; }
    body:has(.trial-order-shell) .dashboard-page-shell,
    body:has(.trial-order-shell) .dashboard-page-main { min-width:0; }
    body:has(.trial-order-shell) .dashboard-page-main { margin-left:0 !important; padding:0 !important; }
    body:has(.trial-order-shell) .dashboard-page-sidebar,
    body:has(.trial-order-shell) .top-row { display:none; }
    .trial-order-shell { margin:0; padding:18px 14px 190px; border:0; border-radius:0; }
    .trial-order-header h1 { font-size:26px; }
    .trial-order-toolbar { align-items:stretch; flex-direction:column-reverse; }
    .trial-search { flex:auto; }
    .trial-order-layout { display:block; }
    .trial-filters { display:none; }
    .trial-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .trial-product-card { min-height:0; }
    .trial-product-image { height:140px; }
    .trial-cart { position:fixed; z-index:50; left:0; right:0; bottom:0; top:auto; max-height:62vh; border-radius:22px 22px 0 0; box-shadow:0 -14px 38px rgba(18,61,103,.18); }
    .trial-cart-items,.trial-field,.trial-cart-info,.trial-submit-message,.trial-submit-caption { display:none; }
    .trial-cart-heading { padding:13px 18px 8px; border:0; }
    .trial-cart-badge { display:none; }
    .trial-cart-review { display:block; }
    .trial-cart.expanded { overflow:auto; max-height:78vh; }
    .trial-cart.expanded .trial-cart-items { display:block; }
    .trial-cart.expanded .trial-field { display:flex; }
    .trial-cart.expanded .trial-cart-info,.trial-cart.expanded .trial-submit-message { display:flex; }
    .trial-cart.expanded .trial-submit-caption { display:block; }
    .trial-submit-button { margin:6px 18px 16px; }
}

@media (max-width:520px) {
    .trial-order-header { display:grid; grid-template-columns:46px minmax(0,1fr); gap:8px 14px; }
    .trial-order-header > div { min-width:0; }
    .trial-order-header h1 { font-size:24px; }
    .trial-order-header p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .trial-kicker { grid-column:2; width:max-content; max-width:100%; box-sizing:border-box; }
    .trial-order-notice { padding:14px; }
    .trial-product-grid { grid-template-columns:1fr; }
    .trial-product-card { min-height:0; display:grid; grid-template-columns:88px 1fr; grid-template-rows:auto auto; }
    .trial-product-image { width:88px; height:100%; min-height:126px; grid-row:1/3; }
    .trial-product-image > img { padding:6px; }
    .trial-product-copy { padding:14px 12px 4px; }
    .trial-product-footer { padding:8px 12px 12px; }
}
