/* Scoped BALTESA extension: the parent Hummingbird theme remains replaceable. */
/* Reserve the three 44px actions on phones; let only the proportional logo shrink. */
@media(max-width:767px){
  #header .baltesa-header-main:has(>.bq-nav--mobile){column-gap:4px}
  #header .baltesa-header-main:has(>.bq-nav--mobile)>.header-bottom__logo{flex:1 1 0;min-width:0;width:auto;padding-right:6px}
  #header .baltesa-header-main:has(>.bq-nav--mobile)>.header-bottom__logo a{display:block;width:100%;max-width:156px}
  #header .baltesa-header-main:has(>.bq-nav--mobile)>.header-bottom__logo img{width:100%;max-width:156px;height:auto;object-fit:contain}
  #header .baltesa-header-main:has(>.bq-nav--mobile)>:is(#_mobile_ps_customersignin,#_mobile_ps_shoppingcart){flex:0 0 auto;padding-inline:2px}
  #header .baltesa-header-main>.bq-nav--mobile{flex:0 0 auto;margin-inline:0}
}
.bq-nav{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;min-height:44px;position:relative;color:#303640;text-decoration:none;border:1px solid #e2e5e9;border-radius:12px;padding:.5rem .65rem;background:#fff;white-space:nowrap}
.bq-nav svg,.bq-save svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bq-nav:hover,.bq-save:hover{color:#983a30;background:#f5eae7;border-color:#bd857d;text-decoration:none}
.bq-nav .bq-count{font-size:.75rem;font-weight:600;line-height:1;background:#f5eae7;color:#803126;border-radius:50px;min-width:1.3rem;text-align:center;padding:.2rem}
.bq-save{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-width:44px;min-height:44px;padding:.5rem;border:1px solid #dce0e5;border-radius:10px;background:#fff;color:#983a30;cursor:pointer}
.product-miniature{position:relative}
.product-miniature>.bq-save,.product-miniature .bq-save:not(.bq-save--product){position:absolute;top:12px;right:12px;z-index:2;box-shadow:0 2px 7px #2221}
.bq-save--product{margin-top:.75rem;width:auto;font-size:.9rem;font-weight:600;background:#fff}
.bq-save[disabled]{opacity:.6;cursor:wait}
.bq-nav:focus-visible,.bq-save:focus-visible,.bq-page a:focus-visible,.bq-page button:focus-visible,.bq-dialog button:focus-visible{outline:3px solid #983a30;outline-offset:3px}
.bq-page{--bq-brand:#983a30;--bq-line:#dce0e5;--bq-muted:#606a78;font-size:.95rem;color:#252b33;margin-bottom:2rem}
.bq-layout{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:24px;align-items:start}
.bq-card{background:#fff;border:1px solid var(--bq-line,#dce0e5);border-radius:16px;padding:24px;min-width:0}
.bq-page h2{font-size:1.3rem;line-height:1.35;margin:0 0 1rem;font-weight:700}.bq-page h3{font-size:1.1rem;margin:0 0 1rem;font-weight:700}
.bq-sidebar nav{display:grid;gap:6px;margin-bottom:20px;max-height:420px;overflow:auto}
.bq-sidebar nav a{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border-radius:10px;text-decoration:none;color:inherit;min-height:44px}
.bq-sidebar nav a span{overflow-wrap:anywhere}.bq-sidebar nav a[aria-current],.bq-sidebar nav a:hover{background:#f5eae7;color:#803126}
.bq-sidebar nav small{background:#f0f2f4;border-radius:5px;padding:2px 6px;font-variant-numeric:tabular-nums}
.bq-sidebar form+form{margin-top:12px}.bq-page label,.bq-dialog label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px}
.bq-page .form-control,.bq-dialog .form-control{font-size:1rem;min-height:44px;border-radius:8px;border:1px solid #cbd1d8;width:100%;padding:.6rem .75rem}
.bq-page .btn,.bq-dialog .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1rem;font-size:.9rem;line-height:1.3;border-radius:9px;font-weight:600;white-space:normal}
.bq-page form>.btn{margin-top:12px}.bq-sidebar form>.btn{width:100%}
.bq-text-button{background:none;border:0;color:#983a30;text-align:left;text-decoration:underline;padding:8px 0;min-height:44px;font-size:.875rem}
.bq-content{display:grid;gap:18px;min-width:0}.bq-heading p{margin:.8rem 0 0;color:#606a78;line-height:1.55}
.bq-heading>div{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:10px}.bq-heading h2{margin:0;overflow-wrap:anywhere}
.bq-status{display:inline-flex;align-items:center;font-size:.8rem;font-weight:600;padding:6px 10px;border-radius:6px;background:#edf0f3;color:#424e5e;line-height:1.4}
.bq-status--offered,.bq-status--partial{background:#e7f3ec;color:#18734b}.bq-status--requested{background:#fff1d9;color:#7e5510}
.bq-note{background:#f5f6f8;padding:12px 14px;border-radius:8px}
.bq-products{padding:0 22px}.bq-line{display:grid;grid-template-columns:64px minmax(130px,1fr) minmax(100px,140px) minmax(96px,120px) 44px minmax(95px,120px);gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #e1e5e9}.bq-line:last-child{border:0}
.bq-line>img,.bq-image-placeholder{width:64px;height:64px;object-fit:contain;background:#f6f7f8;border-radius:8px;padding:4px}.bq-image-placeholder{display:grid;place-content:center;color:#9ca5b0;font-size:2rem}
.bq-line-identity a{display:block;font-weight:650;color:#252b33;text-decoration:none;line-height:1.45}.bq-line-identity a:hover{text-decoration:underline}.bq-line small{display:block;font-size:.8rem;line-height:1.5;color:#606a78;margin-top:3px;overflow-wrap:anywhere}
.bq-line-prices,.bq-line-total{font-variant-numeric:tabular-nums}.bq-line-prices strong,.bq-line-total strong{font-size:1.05rem;white-space:nowrap}
.bq-line-quantity{display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}.bq-line-quantity .form-control{min-width:0;text-align:center;padding:8px 3px}.bq-line-quantity .btn{padding:8px;min-width:36px;margin:0}
.bq-remove{border:0;background:#fff;color:#64707e;width:44px;height:44px;display:grid;place-content:center;border-radius:8px}.bq-remove:hover{background:#f5eae7;color:#983a30}
.bq-line--ordered{opacity:.65}.bq-line--ordered .bq-line-quantity{grid-column:4}.bq-line-select{grid-column:2/-1;display:flex!important;align-items:center;gap:8px;margin:0;min-height:44px}
.bq-line-select input{width:20px;height:20px;accent-color:#983a30}.bq-line-total{grid-column:6;text-align:right}
.bq-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,.65fr);gap:18px;align-items:start}.bq-bottom p{line-height:1.55;color:#606a78}.bq-totals dl{margin:0 0 12px}.bq-totals dl div{display:flex;justify-content:space-between;gap:14px;padding:10px 0}.bq-totals dt{font-weight:400}.bq-totals dd{margin:0;white-space:nowrap;font-weight:600}.bq-grand{border-top:1px solid #dce0e5;margin-top:6px;font-size:1.05rem}.bq-grand dt{font-weight:700}.bq-totals>small{color:#606a78;line-height:1.5;display:block}
.bq-intro{padding:40px}.bq-intro>i{font-size:40px;color:#983a30;margin-bottom:18px}.bq-intro p{max-width:56ch;color:#606a78;line-height:1.6}
.bq-cart-notice{background:#f7f3f1;margin:16px 0}.bq-cart-notice p{margin:.5rem 0}.bq-cart-notice form{display:inline-block;margin-right:12px}
.bq-dialog{color:#252b33;border:1px solid #dce0e5;border-radius:16px;padding:24px;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 16px 60px #0003}.bq-dialog::backdrop{background:#1e27365c}.bq-dialog h2{font-size:1.3rem;font-weight:700;padding-right:36px;margin:0 0 18px}.bq-dialog p{font-size:.9rem;color:#606a78;line-height:1.5}.bq-dialog-close{position:absolute;right:12px;top:12px;border:0;background:#f2f4f6;border-radius:8px;width:44px;height:44px;font-size:1.5rem;color:#596473}.bq-dialog-actions{display:flex;gap:10px;margin-top:18px}.bq-dialog-message{margin-top:14px!important;min-height:22px}.bq-dialog [role=alert]{color:#9e3029}.bq-dialog select{margin-bottom:14px}.bq-dialog-success{display:flex;align-items:center;gap:8px;color:#177447!important}
/* Row modes use a small action beside the identity; never cover the thumbnail/flags. */
html:is([data-baltesa-listing-view=list],[data-baltesa-listing-view=compact]) #js-product-list .bq-save{top:auto;bottom:8px;left:12px;right:auto;width:44px;min-width:44px;min-height:44px}
@media(min-width:768px) and (max-width:1200px){.bq-nav-label{display:none}}
@media(max-width:1199px){.bq-layout{grid-template-columns:230px minmax(0,1fr)}.bq-line{grid-template-columns:48px minmax(110px,1fr) 110px 44px;gap:12px}.bq-line>img,.bq-image-placeholder{width:48px;height:48px}.bq-line-prices{grid-column:3}.bq-line-quantity{grid-column:2}.bq-line-total{grid-column:3;text-align:left}.bq-line>form:has(.bq-remove){grid-column:4;grid-row:1/3}.bq-bottom{grid-template-columns:1fr}.bq-line-select{grid-column:2/-1}}
@media(max-width:767px){.bq-layout{grid-template-columns:1fr;gap:16px}.bq-sidebar nav{max-height:180px}.bq-card{padding:18px}.bq-products{padding:0 16px}.bq-page h2{font-size:1.15rem}.bq-line{grid-template-columns:48px minmax(0,1fr) 44px;gap:10px;padding:16px 0}.bq-line-identity{grid-column:2}.bq-line-prices{grid-column:2}.bq-line-quantity{grid-column:2;max-width:140px}.bq-line-total{grid-column:2;text-align:left}.bq-line>form:has(.bq-remove){grid-column:3;grid-row:1/3}.bq-line-select{grid-column:2/-1}.bq-line--ordered .bq-line-quantity{grid-column:2}.bq-bottom{gap:16px}.bq-nav{padding:8px;border:0}.bq-nav-label{display:none}.bq-nav .bq-count{position:absolute;right:-2px;top:0;font-size:.65rem;min-width:1rem;padding:2px}.bq-save--product{width:100%}.bq-intro{padding:24px}}

html:is([data-baltesa-listing-view=list],[data-baltesa-listing-view=compact]) #js-product-list .product-miniature__top{position:relative;padding-bottom:44px}
@media(max-width:767px){
  .bq-line:not(:has(.bq-remove)){grid-template-columns:48px minmax(0,1fr) minmax(60px,auto);gap:12px}
  .bq-line:not(:has(.bq-remove)) .bq-line-identity{grid-column:2/-1}
  .bq-line:not(:has(.bq-remove)) .bq-line-prices{grid-column:1/3;grid-row:2}
  .bq-line:not(:has(.bq-remove)) .bq-line-quantity{grid-column:3;grid-row:2;justify-self:end;align-self:start;font-size:.9rem;padding-top:2px}
  .bq-line:not(:has(.bq-remove)) .bq-line-total{grid-column:1/-1;grid-row:3;display:flex;justify-content:space-between;align-items:center;gap:12px}
  .bq-line:not(:has(.bq-remove)) .bq-line-total small{order:-1;margin:0}
  .bq-line:not(:has(.bq-remove)) .bq-line-select{grid-column:1/-1}
}
