/* One compact header and a responsive, mode-aware shipment form. */
.topbar{max-width:1600px;height:auto;min-height:88px;gap:20px;padding:18px 32px;display:grid;grid-template-columns:auto minmax(280px,1fr) auto auto}.topbar .header-search{width:min(100%,660px);justify-self:center;margin:0;display:grid;grid-template-columns:minmax(120px,1fr) minmax(110px,160px) auto;gap:8px}.topbar .header-search input,.topbar .header-search select{min-width:0;width:100%;font-size:12px;padding:10px;border:1px solid var(--line);border-radius:7px;background:white}.topbar .market-nav,.topbar nav[aria-label=Account]{gap:12px;font-size:12px;white-space:nowrap}.market-workspace{padding-top:22px}.journey-fields,.journey-packing .market-grid{gap:14px}.journey-fields[hidden],[data-journey] [hidden]{display:none!important}.custom-city-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #c7dadd;border-radius:9px;background:#f0f6f6}.custom-city-fields p{grid-column:1/-1;margin:0}.journey-packing{border:1px solid #a9c8ce;border-radius:11px;margin:18px 0 0;padding:0;background:#fff;scroll-margin-top:20px}.journey-packing>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;background:#e7f0f2;padding:16px;color:var(--accent);font-weight:650;border-radius:10px;list-style:none}.journey-packing>summary:before{content:'+';font-size:23px;line-height:1}.journey-packing[open]>summary:before{content:'−'}.journey-packing>summary span{flex:1}.journey-packing>summary small{font-size:10px;font-weight:400}.journey-packing>div,.journey-packing>label{margin:16px}.journey-package-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f6f8f8;border:1px solid var(--line);padding:14px;border-radius:9px;margin:12px 0}.journey-package-row>label:nth-child(n+3){grid-column:auto}.journey-container-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:10px 0}.packing-tools{display:flex;flex-wrap:wrap;gap:16px}.journey-notes{display:grid;gap:8px}.goods-conversion{padding:14px;border:1px solid var(--line);border-radius:9px;background:#f6f8f8;display:grid;gap:10px}.goods-conversion p{margin:0}.journey-inquiry{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.journey-inquiry h3{margin-bottom:6px}.journey-inquiry p{font-size:12px;color:var(--muted)}.journey-inquiry .button{width:100%}.inquiry-success h2{margin:0 0 8px}.inquiry-success p+p{margin-top:12px}.estimate-form .journey-fields{display:grid;grid-template-columns:1fr 1fr}.estimate-form .journey-fields label,.estimate-form .journey-packing label{display:grid;gap:7px}.estimate-form .journey-fields select{width:100%}.estimate-form .span-two{grid-column:1/-1}.estimate-form .journey-packing input,.estimate-form .journey-packing select,.estimate-form .journey-packing textarea{border:1px solid #d6dfe3;border-radius:7px;padding:10px;width:100%;min-width:0}.estimate-form .journey-packing .market-grid{display:grid;grid-template-columns:1fr 1fr}
@media(min-width:1200px){.estimate-form .journey-package-row{grid-template-columns:repeat(5,minmax(0,1fr)) auto}.journey-packing summary small{font-size:11px}}
@media(max-width:1100px){.topbar{grid-template-columns:1fr auto auto;padding:16px 22px}.topbar .header-search{grid-row:2;grid-column:1/-1;width:100%;max-width:760px}.topbar .brand img{width:145px}.topbar nav{gap:10px}.journey-packing>summary{flex-wrap:wrap}.journey-packing>summary small{width:100%;padding-left:26px}}
@media(max-width:600px){.topbar{gap:12px}.topbar .market-nav{font-size:11px}.topbar .header-search{grid-template-columns:minmax(0,1fr) minmax(0,.7fr) auto;gap:5px}.topbar .header-search .button{padding:10px}.topbar .header-search input,.topbar .header-search select{font-size:11px;padding:8px}.topbar .brand img{width:125px}.topbar nav[aria-label=Account]{font-size:11px}.custom-city-fields,.estimate-form .journey-fields,.estimate-form .journey-packing .market-grid{grid-template-columns:1fr}.journey-container-row{grid-template-columns:1fr 1fr}.journey-container-row button{grid-column:1/-1;justify-self:end}}

/* Let dynamic fields expand with the page; the legacy fixed-height panel clips this form. */
.planner-panel{position:static;height:auto;max-height:none;overflow:visible}

/* Keep account actions and search inside small phone screens. */
@media(max-width:380px){.topbar{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 18px}.topbar .brand img{width:100px}.topbar nav[aria-label=Account]{grid-column:2;grid-row:1;gap:8px}.topbar nav[aria-label=Account] .button{padding:10px;font-size:10px}.topbar .market-nav{grid-column:1/-1;grid-row:3}.topbar .market-nav:empty{display:none}.topbar .header-search{grid-column:1/-1;grid-row:2;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,.7fr) auto}}

.product-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.product-actions .button{min-width:0;white-space:normal;text-align:center;justify-content:center;padding:12px 8px}.cart-quantity,.cart-buy{margin-top:18px}.cart-buy .product-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-quantity input{max-width:180px}@media(max-width:380px){.product-actions{grid-template-columns:1fr}.cart-buy .product-actions{grid-template-columns:1fr}}

@media(max-width:800px){.topbar{grid-template-columns:minmax(0,1fr) auto}.topbar .market-nav{grid-column:1/-1;grid-row:3;flex-wrap:wrap;white-space:normal}.topbar nav[aria-label=Account]{grid-column:2;grid-row:1}.topbar .header-search{grid-row:2}.topbar .market-nav:empty{display:none}}

/* Account controls and a compact, balanced product composer. */
.topbar{position:relative;z-index:30}.topbar .account-actions{display:flex;align-items:center;gap:8px}.account-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--accent);cursor:pointer;list-style:none;padding:0}.account-icon::-webkit-details-marker{display:none}.account-icon:hover,.profile-menu[open]>.account-icon{background:#e8f1f2;border-color:#d2e2e4}.account-icon:focus-visible,.profile-menu-panel a:focus-visible,.profile-menu-panel button:focus-visible{outline:2px solid #568e98;outline-offset:3px}.profile-menu{position:relative}.profile-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;min-width:192px;padding:7px;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 32px #173b481c;display:grid;gap:2px}.profile-menu:not([open])>.profile-menu-panel{display:none}.profile-menu-panel a,.profile-menu-panel button{display:block;text-align:left;width:100%;padding:11px 13px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;font-size:13px;line-height:1.4;cursor:pointer;text-decoration:none}.profile-menu-panel a:hover,.profile-menu-panel button:hover{background:#eef5f5}.profile-menu-panel form{display:block;width:100%;border-top:1px solid var(--line);padding-top:4px;margin-top:4px}
.market-form[data-product-purchase]{display:grid;gap:16px}.market-form[data-product-purchase]>.product-actions{margin:0;gap:10px}.market-form[data-product-purchase]>.product-actions .button{min-height:44px;margin:0}.market-form[data-product-purchase]>label{gap:7px}#supplier-inquiry{display:grid;gap:14px;margin:4px 0 0;padding:20px 0 0;border-top:1px solid var(--line)}#supplier-inquiry h3{font-size:17px;line-height:1.4;letter-spacing:-.2px;margin:0}#supplier-inquiry p{margin:0;line-height:1.6}#supplier-inquiry label{display:grid;gap:8px}#supplier-inquiry textarea{display:block;min-height:112px;resize:vertical;margin:0}#supplier-inquiry .button{width:100%;min-height:44px;margin:0}
.account-page{max-width:1060px;margin:auto;padding:36px 28px 52px}.account-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.account-page-heading .eyebrow{margin:0 0 8px;justify-content:flex-start;font-size:10px}.account-page-heading .page-title{font-size:30px;margin:0 0 8px}.account-page-heading p{margin:0}.account-card{padding:24px;border:1px solid var(--line);border-radius:15px;background:white;margin-bottom:24px}.account-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.account-card-heading h2{margin:0;font-size:18px;letter-spacing:-.3px}.profile-info{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px;margin:0}.profile-info>div{min-width:0}.profile-info dt{font-size:11px;color:var(--muted);margin-bottom:6px}.profile-info dd{margin:0;line-height:1.6;font-size:13px;overflow-wrap:anywhere}.profile-address{grid-column:1/-1}.profile-edit{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.profile-edit>summary{cursor:pointer;color:var(--accent);font-size:12px;font-weight:600}.profile-edit-form{margin-top:20px}.profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-form-grid .span-two{grid-column:1/-1}.profile-edit-form>.button{justify-self:start;min-width:140px}.profile-edit-form input[readonly]{background:#f4f7f7;color:var(--muted)}.history-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 0;border-top:1px solid var(--line)}.history-row:first-of-type{border-top:0;padding-top:0}.history-row:last-of-type{padding-bottom:0}.history-row>div{min-width:0}.history-row h3{font-size:14px;line-height:1.5;margin:8px 0 5px;overflow-wrap:anywhere}.history-row p,.history-row small{color:var(--muted);font-size:11px;line-height:1.6;margin:0}.history-amount{display:grid;gap:10px;text-align:right;flex:none}.history-amount strong{font-size:15px}.history-amount a{font-size:12px;color:var(--accent)}.profile-empty{padding:12px 0 6px}.profile-empty h3{font-size:15px;margin:0 0 6px}.profile-empty p{font-size:12px;color:var(--muted);margin:0 0 12px}
@media(max-width:600px){.account-page{padding:26px 18px 36px}.account-card{padding:19px;margin-bottom:18px}.profile-info,.profile-form-grid{grid-template-columns:1fr}.profile-address,.profile-form-grid .span-two{grid-column:auto}.account-card-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.history-row{align-items:flex-start;flex-wrap:wrap;gap:12px}.history-amount{text-align:left;width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px}.history-row>.text-link{margin-left:auto}.account-page-heading{align-items:flex-start;flex-wrap:wrap}.profile-menu-panel{min-width:180px}.topbar .account-actions{gap:4px}}
