/* Basket controls remain unavailable until the device-local script is ready. */
.pld-basket-toggle { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 48px; height: 48px; min-width: 48px; padding: 8px; border: 0; border-radius: 50%; color: var(--ink); background: transparent; box-shadow: none; }
.pld-basket-toggle svg { width: 24px; height: 24px; }
.pld-basket-count { position: absolute; top: 0; right: -2px; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 20px; background: var(--thread); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.pld-basket-toggle:hover { color: var(--thread); background: #fbefea; }
body .header-actions .pld-basket-toggle { color: #fff; background: var(--thread); }
body .header-actions .pld-basket-toggle:hover { color: #fff; background: #7f2f45; }
.pld-basket-toggle:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }
.pld-basket-ready .mobile-shop-link { display: none !important; }
@media(min-width:1180px) {
 body.pld-basket-ready .site-header .header-actions { display: flex; order: 3; }
 body.pld-basket-ready .site-header .site-nav { order: 2; }
 body.pld-basket-ready .site-header .header-inner { gap: 16px; }
 body.pld-basket-ready .site-header:not(.is-compact) .brand,
 body.pld-basket-ready .site-header:not(.is-compact) .brand-art { width: clamp(260px,25vw,380px); }
 body.pld-basket-ready .site-header:not(.is-compact) .brand-art img { width: 100%; }
}
.pld-basket-dialog { position: fixed; inset: 0 0 0 auto; width: min(560px,100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 28px; border: 0; border-radius: 0; background: #fffcf8; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; box-shadow: -10px 0 40px #17364b18; }
.pld-basket-dialog::backdrop { background: #17364b80; }
.pld-basket-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 8px; background: #fffcf8; }
.pld-basket-head h2 { font-size: 34px; margin: 0; }
.pld-basket-close { min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid #d9cfc8; color: var(--ink); box-shadow: none; }
.pld-basket-close span { font-size: 24px; vertical-align: middle; margin-left: 6px; }
.pld-basket-dialog .pld-basket-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pld-basket-dialog p { font-size: 16px; line-height: 1.7; }
.pld-basket-items { padding: 0; margin: 24px 0; list-style: none; }
.pld-basket-item { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid #e5dcd5; }
.pld-basket-item img { display: block; width: 78px; height: 78px; object-fit: contain; border-radius: 8px; background: #fff; }
.pld-basket-item h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.pld-basket-item h3 a { text-decoration: none; color: var(--ink); }
.pld-basket-item p { margin: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.pld-basket-item-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pld-basket-item label { font-size: 13px; }
.pld-basket-item input { display: block; width: 78px; min-height: 44px; margin-top: 4px; border: 1px solid #aeb8b8; border-radius: 8px; padding: 8px; background: #fff; color: var(--ink); font: 16px var(--sans); }
.pld-basket-remove,.pld-basket-bottom button { min-height: 44px; padding: 6px 0; background: none; border: 0; color: var(--thread); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.pld-basket-dialog .pld-basket-remove,.pld-basket-dialog .pld-basket-bottom button { border-radius: 0; background: transparent; box-shadow: none; }
.pld-basket-dialog .pld-basket-remove:hover,.pld-basket-dialog .pld-basket-bottom button:hover { color: #7f2f45; background: #f8e9e7; box-shadow: none; }
.pld-basket-delivery h3 { font-size: 24px; margin: 20px 0 16px; }
.pld-basket-delivery label { display: block; margin: 14px 0; font-size: 15px; }
.pld-basket-delivery select,.pld-basket-delivery input { display: block; width: 100%; max-width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #aeb8b8; border-radius: 8px; background: #fff; color: var(--ink); font: 16px/1.5 var(--sans); box-sizing: border-box; }
.pld-basket-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 20px; border-top: 1px solid #d9cfc8; font-size: 19px; }
.pld-basket-total [data-basket-total] { text-align: right; }
.pld-basket-dialog .pld-basket-note,.pld-basket-dialog .pld-basket-device-note { font-size: 13px; }
.pld-basket-device-note { padding-top: 20px; border-top: 1px solid #e5dcd5; }
.pld-basket-validation { color: #a0253d; font-weight: 600; }
.pld-basket-dialog .pld-basket-send { display: block; width: 100%; max-width: 100%; box-sizing: border-box; white-space: normal; margin-top: 18px; padding: 14px 18px; text-align: center; font-size: 15px; }
.pld-basket-send[aria-disabled=true] { background: #f3e7e2; color: var(--ink); border-color: #d9cfc8; box-shadow: none; }
.pld-basket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 16px; font-size: 14px; }
.pld-basket-bottom a { color: var(--ink); }
.pld-basket-dialog :is(a,button,input,select):focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }
.pld-basket-dialog :is(a,button,input,select) { scroll-margin-block: 80px 16px; }
.pld-basket-status:empty,.pld-basket-validation:empty { display: none; }
.pld-product-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; margin-top: 20px; }
body .pld-product-actions .button { margin: 0; }
.pld-latest-enquiry .pld-product-actions .button { width:100%; min-width:0; box-sizing:border-box; white-space:normal; }
body .pld-product-actions .pld-single-enquiry { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
[data-basket-add-status]:empty { display: none; }
.pld-latest-enquiry [data-basket-add-status] { margin: 18px 0 12px; }
.pld-latest-enquiry [data-basket-open] { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); padding: 10px 20px; min-height: 46px; margin: 4px 0 16px; box-shadow: none; text-decoration: none; }
.pld-latest-enquiry [data-basket-open]:hover { background: var(--ink); color: #fff; }
.pld-latest-enquiry .pld-enquiry-send-note { margin-top: 18px; }
@media(max-width:480px) {
 .pld-basket-dialog { padding: 22px 18px; }
 .pld-basket-item { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
 .pld-basket-item img { width: 64px; height: 64px; }
 .pld-product-actions { display: grid; grid-template-columns: minmax(0,1fr); }
}
