/* Inquiry basket — aligned with xy-checkout / xy-ui (bust: 2026-07-30-ux-a) */
.xy-basket{
  margin:0 0 28px;
  /* Keep Remove / actions clear of fixed side contact bar (~46px) */
  padding-right:56px;
  box-sizing:border-box;
}
@media (max-width:720px){
  .xy-basket{padding-right:0}
}

/* Summary bar (page title lives in theme w105-page-header) */
.xy-basket-summary{
  margin:0 0 18px;
  padding:14px 18px;
  border:1px solid var(--xy-ui-line,#e6e8eb);
  border-radius:8px;
  background:color-mix(in srgb,var(--xy-skin-primary) 4%,#f8f9fa);
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
@supports not (background: color-mix(in srgb, red 4%, #f8f9fa)){
  .xy-basket-summary{background:#fafbfc}
}
.xy-basket-summary-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 16px;
  flex-wrap:wrap;
}
.xy-basket-summary-tools{
  margin-top:10px;
}
.xy-basket-cat-tools{
  margin:0 0 16px;
  padding:12px 14px;
  border:1px dashed var(--xy-ui-line,#e6e8eb);
  border-radius:8px;
  background:#fff;
}
.xy-basket-cat-tools-hint{
  margin:0 0 8px;
  font-size:13px;
  color:var(--xy-ui-muted,#667085);
}
.xy-basket-cat-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
}
.xy-basket-cat-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.xy-basket-cat-name{font-size:13px;font-weight:600}
.xy-basket-cat-block{margin:0 0 18px}
.xy-basket-cat-head{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 8px;
  padding:0 2px;
}
.xy-basket-cat-title{font-size:14px}
.xy-basket-cat-count{font-size:12px;color:var(--xy-ui-muted,#667085)}
.xy-basket-cat-keep-link{
  margin-left:auto;
  font-size:12px;
  color:var(--xy-skin-primary,#c45c26);
  text-decoration:none;
}
.xy-basket-cat-keep-link:hover{text-decoration:underline}
.xy-basket-msg-hint{
  margin:6px 0 0;
  font-size:12px;
  color:var(--xy-ui-muted,#667085);
}
.xy-basket-summary-stat{
  font-size:14px;
  line-height:1.45;
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
}
.xy-basket-summary-stat strong{font-weight:600}
.xy-basket-summary-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--xy-skin-accent) 35%,#e6e8eb);
  background:color-mix(in srgb,var(--xy-skin-accent) 8%,#fff);
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--xy-ui-muted,#5c6570);
  white-space:nowrap;
}
@supports not (background: color-mix(in srgb, red 8%, white)){
  .xy-basket-summary-badge{border-color:#e2d0a8;background:#fff8ed}
}
.xy-basket-summary-badge.is-checkout{
  border-color:color-mix(in srgb,var(--xy-skin-primary,var(--xy-ui-primary,#1e64b4)) 32%,#e6e8eb);
  background:color-mix(in srgb,var(--xy-skin-primary,var(--xy-ui-primary,#1e64b4)) 8%,#fff);
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
}
@supports not (background: color-mix(in srgb, red 8%, white)){
  .xy-basket-summary-badge.is-checkout{border-color:#c5d6ea;background:#f3f7fc}
}

/* Mixed basket bubble */
.xy-basket-alert{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:8px;
  border:1px solid #f0c36d;
  background:linear-gradient(180deg,#fff8e8 0%,#fff3d6 100%);
  box-shadow:0 2px 8px rgba(180,110,0,.08);
}
.xy-basket-alert.is-warn{border-color:#e8b84a;color:#6b4a00}
.xy-basket-alert.is-block{
	border-color:#d9928a;
	background:#fff6f5;
	color:#7a2e28;
}
.xy-basket-alert-title{
  display:block;
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.02em;
}
.xy-basket-alert p{margin:0 0 8px;font-size:13px;line-height:1.5}
.xy-basket-alert-meta{margin:0 0 10px !important;font-size:12px;opacity:.9}
.xy-basket-alert-actions{display:flex;flex-wrap:wrap;gap:8px}
.xy-basket-line.is-unpriced{
  outline:1px solid #f0c36d;
  outline-offset:-1px;
  background:#fffbf2;
  border-radius:8px;
}
.xy-basket-line-tag{
  display:inline-flex;
  align-items:center;
  margin:4px 0 8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  line-height:1.4;
}
.xy-basket-line-tag.is-unpriced{background:#fff1cc;color:#8a5a00;border:1px solid #f0c36d}
.xy-basket-line-tag.is-priced{background:#eef6ff;color:#1e4f8a;border:1px solid #c5d6ea}
.xy-basket-cta-note.is-warn{color:#8a5a00;font-weight:600}

/* Empty */
.xy-basket-empty{
  padding:48px 24px;
  text-align:center;
  border:1px dashed var(--xy-ui-line,#e6e8eb);
  background:var(--xy-ui-bg,#f4f3f1);
  border-radius:8px;
}
.xy-basket-empty p{
  margin:0 0 18px;
  color:var(--xy-ui-muted,#6a727c);
  font-size:15px;
  line-height:1.55;
}

.xy-basket-sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Panel + line list (checkout-style) */
.xy-basket-panel{
  padding:4px 0 0;
  border:1px solid var(--xy-ui-line,#e6e8eb);
  border-radius:8px;
  background:var(--xy-ui-surface,#fff);
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);
  overflow:hidden;
}
.xy-basket-lines{
  margin:0;
  padding:0;
  list-style:none;
}
.xy-basket-line{
  padding:18px 20px;
  border-bottom:1px solid var(--xy-ui-line,#e6e8eb);
  transition:background .15s ease;
}
.xy-basket-line:last-child{border-bottom:0}
.xy-basket-line:hover{background:rgba(0,0,0,.015)}

/* Three-column row: thumb | content | remove (checkout-style) */
.xy-basket-line-row{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 36px;
  gap:14px 16px;
  align-items:start;
  min-width:0;
}

/* Thumbnail */
.xy-basket-line-media{line-height:0}
.xy-basket-thumb-link{
  display:block;
  line-height:0;
  border-radius:calc(var(--xy-ui-radius,2px) + 4px);
  overflow:hidden;
  transition:box-shadow .15s ease;
}
.xy-basket-thumb-link:hover{
  box-shadow:0 0 0 2px color-mix(in srgb,var(--xy-ui-primary,var(--xy-skin-primary)) 28%,transparent);
}
@supports not (background: color-mix(in srgb, red 28%, transparent)){
  .xy-basket-thumb-link:hover{box-shadow:0 0 0 2px rgba(30,100,180,.22)}
}
.xy-basket-thumb{
  display:block;
  width:64px;height:64px;
  object-fit:cover;
  background:var(--xy-ui-bg,#f4f3f1);
}
.xy-basket-thumb-ph{
  display:block;
  width:64px;height:64px;
  border-radius:calc(var(--xy-ui-radius,2px) + 4px);
  background:var(--xy-ui-line,#e6e8eb);
}

/* Product body */
.xy-basket-line-main{min-width:0}
.xy-basket-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 12px;
  padding-right:4px;
  font-weight:600;
  font-size:14px;
  line-height:1.4;
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
  text-decoration:none;
  word-break:break-word;
  transition:color .15s ease;
}
.xy-basket-name:hover{color:var(--xy-ui-primary,var(--xy-skin-primary))}

/* Qty / note fields — fixed qty, flexible note (no visible labels) */
.xy-basket-line-fields{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}
.xy-basket-field{
  display:block;
  margin:0;
  min-width:0;
}
.xy-basket-field-qty{
  flex:0 0 112px;
  width:112px;
}
.xy-basket-field-note{
  flex:1 1 180px;
  min-width:0;
  max-width:420px;
}
.xy-basket-field-attach{
  flex:0 1 auto;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.xy-basket-attach-label{
  position:relative;
  display:inline-flex;
  cursor:pointer;
  margin:0;
}
.xy-basket-attach-input{
  position:absolute;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.xy-basket-attach-btn{
  display:inline-block;
  padding:6px 10px;
  font-size:12px;
  line-height:1.2;
  border:1px solid #d5dae3;
  border-radius:4px;
  background:#f8f9fa;
  color:#4a5560;
}
.xy-basket-attach-label:hover .xy-basket-attach-btn{border-color:#c8cdd3;background:#fff}
.xy-basket-attach-name{
  font-size:12px;
  color:#5a6570;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.xy-basket-attach-name a{color:inherit;text-decoration:underline}
.xy-basket-attach-clear{
  border:0;background:transparent;color:#9aa1a9;cursor:pointer;font-size:16px;line-height:1;padding:2px 4px;
}
.xy-basket-attach-clear:hover{color:#c0392b}
.xy-basket-qty-stepper{
  display:inline-flex;
  align-items:stretch;
  width:100%;
  min-height:44px;
  border:1px solid var(--xy-ui-line,#dde1e6);
  border-radius:6px;
  background:#fff;
  overflow:hidden;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.xy-basket-qty-stepper:hover{border-color:#c8cdd3}
.xy-basket-qty-stepper:focus-within{
  border-color:var(--xy-ui-primary,var(--xy-skin-primary));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--xy-ui-primary,var(--xy-skin-primary)) 18%,transparent);
}
@supports not (background: color-mix(in srgb, red 18%, transparent)){
  .xy-basket-qty-stepper:focus-within{box-shadow:0 0 0 3px rgba(30,100,180,.14)}
}
.xy-basket-qty-btn{
  appearance:none;
  flex:0 0 32px;
  width:32px;
  padding:0;
  border:0;
  background:transparent;
  font-size:16px;
  line-height:1;
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
  cursor:pointer;
  transition:background .15s ease;
}
.xy-basket-qty-btn:hover{background:rgba(0,0,0,.04)}
.xy-basket-qty-btn:focus-visible{
  outline:none;
  background:rgba(0,0,0,.06);
}
.xy-basket-qty-input,
.xy-basket-qty{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  min-height:42px;
  padding:0 4px;
  border:0;
  border-left:1px solid var(--xy-ui-line,#dde1e6);
  border-right:1px solid var(--xy-ui-line,#dde1e6);
  background:transparent;
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
  font:inherit;
  font-size:15px;
  line-height:1.4;
  text-align:center;
  font-variant-numeric:tabular-nums;
  -moz-appearance:textfield;
}
.xy-basket-qty-input::-webkit-outer-spin-button,
.xy-basket-qty-input::-webkit-inner-spin-button,
.xy-basket-qty::-webkit-outer-spin-button,
.xy-basket-qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.xy-basket-note{
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  padding:11px 14px;
  border:1px solid var(--xy-ui-line,#dde1e6);
  border-radius:6px;
  background:#fff;
  color:var(--xy-ui-ink,var(--xy-skin-ink,#1a1d21));
  font:inherit;
  font-size:15px;
  line-height:1.4;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.xy-basket-note::placeholder{color:#9aa1a9;opacity:1}
.xy-basket-note:hover{border-color:#c8cdd3}
.xy-basket-note:focus{
  outline:none;
  border-color:var(--xy-ui-primary,var(--xy-skin-primary));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--xy-ui-primary,var(--xy-skin-primary)) 18%,transparent);
}
@supports not (background: color-mix(in srgb, red 18%, transparent)){
  .xy-basket-note:focus{box-shadow:0 0 0 3px rgba(30,100,180,.14)}
}

/* Remove — icon-only ghost button, aligned top-right */
.xy-basket-remove{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;
  margin:-4px -4px 0 0;
  padding:0;
  border:1px solid transparent;
  border-radius:calc(var(--xy-ui-radius,2px) + 4px);
  background:transparent;
  color:var(--xy-ui-muted,#6a727c);
  font-size:0;
  line-height:0;
  cursor:pointer;
  transition:color .15s ease,border-color .15s ease,background .15s ease;
}
.xy-basket-remove-ico{flex:0 0 auto;display:block;width:16px;height:16px}
.xy-basket-remove-txt{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.xy-basket-remove:hover{
  color:#a33;
  border-color:#e8c4c0;
  background:#fdf0ef;
}
.xy-basket-remove:focus-visible{
  outline:none;
  border-color:rgba(179,51,51,.35);
  box-shadow:0 0 0 3px rgba(179,51,51,.14);
}

/* Autosave hint (Update basket hidden — qty/note autosave) */
.xy-basket-autosave-hint{
  margin:14px 0 0;
  font-size:12px;
  line-height:1.4;
  color:var(--xy-ui-muted,#6a727c);
}

/* Actions: primary Submit · optional Checkout · Continue */
.xy-basket-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
  align-items:center;
}
.xy-basket-cta-primary{min-width:148px}
.xy-basket-submit-tip{margin:0 0 12px;font-size:13px;color:var(--xy-ui-muted,#6a727c)}

/* Mobile sticky CTA bar */
.xy-basket-sticky{
  display:none;
}
@media (max-width:720px){
  .xy-basket.is-filled{
    padding-bottom:88px;
  }
  .xy-basket.is-filled.has-checkout{
    padding-bottom:140px;
  }
  .xy-basket-sticky{
    display:flex;
    flex-direction:column;
    gap:8px;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:40;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.96);
    border-top:1px solid var(--xy-ui-line,#e6e8eb);
    box-shadow:0 -4px 16px rgba(0,0,0,.06);
    box-sizing:border-box;
  }
  .xy-basket-sticky .xy-ui-btn{
    display:block;
    width:100%;
    text-align:center;
    box-sizing:border-box;
  }
  /* Hide duplicate desktop primary/checkout in actions on small screens */
  .xy-basket-actions .xy-basket-cta-primary,
  .xy-basket-actions .xy-basket-cta-checkout{
    display:none;
  }
}

/* Nav badge (header) */
.xy-basket-nav{list-style:none;margin:0;padding:0 6px;display:inline-flex;align-items:center;vertical-align:middle;line-height:1}
.xy-basket-nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;color:inherit;text-decoration:none;opacity:.9;line-height:1}
.xy-basket-nav a:hover{opacity:1}
.xy-basket-nav .icon{position:relative;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.xy-basket-badge{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--xy-skin-primary,var(--xy-ui-primary,#c45));color:#fff;font:700 10px/16px var(--xy-ui-font,Arial,sans-serif);text-align:center;z-index:1;pointer-events:none}
.xy-basket-badge.is-empty{display:none}
.w105-header .w105-header-nav ul > li.xy-basket-nav{display:inline-flex;align-items:center;height:auto;vertical-align:middle;line-height:1}
.w105-header .w105-header-nav ul > li.xy-basket-nav > a{display:inline-flex;align-items:center;justify-content:center;line-height:1;height:auto}

/* Mobile */
@media (max-width:720px){
  .xy-basket-summary{padding:12px 14px}
  .xy-basket-line{padding:14px 16px}
  .xy-basket-line-row{
    grid-template-columns:56px minmax(0,1fr) 32px;
    gap:12px;
  }
  .xy-basket-thumb,.xy-basket-thumb-ph{width:56px;height:56px}
  .xy-basket-name{margin-bottom:10px;font-size:13px}
  .xy-basket-remove{width:32px;height:32px;margin:0}
  .xy-basket-line-fields{flex-direction:column;align-items:stretch;gap:10px}
  .xy-basket-field-qty{flex:none;width:100%;max-width:120px}
  .xy-basket-field-note{flex:none;max-width:none}
}

.xy-basket-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px;align-items:center}
.xy-basket-cta-note{font-size:13px;color:var(--xy-ui-muted,#6a727c);margin:0;flex:1 1 200px;line-height:1.5}
.xy-buy-now-flash{
  margin:0 0 12px;padding:10px 14px;
  border:1px solid #e8c4c0;border-radius:8px;
  background:#fdf0ef;color:#8b2e2e;font-size:13px;line-height:1.45;
}
.xy-ui-btn-accent{
  background:var(--xy-skin-accent,#ff9e16);
  border-color:var(--xy-skin-accent,#ff9e16);
  color:#fff;
}
.xy-ui-btn-accent:hover{filter:brightness(.96);color:#fff}
