/* Floating selection and purchase drawer */
.bd21-basket {
    --bag-panel: #17181c;
    --bag-well: #1e1f24;
    --bag-soft: #25272d;
    --bag-text: #f6f5f1;
    --bag-muted: #b6b7c0;
    --bag-line: #3c3e46;
    --bag-accent: #e1f38e;
    --bag-accent-ink: #20270d;
    --bag-error: #ffacaa;
    font: inherit;
    color: var(--bag-text);
}
[data-wf-theme="light"] .bd21-basket {
    --bag-panel: #fafaf7;
    --bag-well: #fff;
    --bag-soft: #f0f0ed;
    --bag-text: #202124;
    --bag-muted: #606169;
    --bag-line: #d9d9d4;
    --bag-accent: #d8ec84;
    --bag-error: #8c2c26;
}
.bd21-basket [hidden] { display: none !important; }
.bd21-basket :is(a, button, input, textarea, select, summary):focus-visible,
.bd21-add-offer:focus-visible {
    outline: 3px solid #aab9ff;
    outline-offset: 3px;
}
.bd21-basket .bd21-basket-launcher {
    position: fixed;
    z-index: 78;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 9px 6px 6px;
    border: 1px solid #f0f0fa48;
    border-radius: 18px;
    background: linear-gradient(135deg,#383940e8,#202125ef 78%);
    box-shadow: inset 0 1px #ffffff16,0 12px 34px #0006;
    color: #f9f9f6;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    transition: transform .18s, box-shadow .18s;
}
.bd21-basket-launcher:hover { transform: translateY(-2px); box-shadow: inset 0 1px #ffffff28,0 13px 34px #0008; }
.bd21-launcher-icon, .bd21-drawer-mark, .bd21-receipt-mark {
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 12px;
    color: var(--bag-accent-ink);
    background: linear-gradient(145deg,color-mix(in srgb,var(--bag-accent),white 18%),var(--bag-accent));
    box-shadow: inset 0 1px #ffffff42;
}
.bd21-launcher-icon { width: 33px; height: 33px; }
.bd21-launcher-count {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding-inline: 5px;
    border-radius: 8px;
    background: #ffffff14;
    color: #fafaf4;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.bd21-added:not(:empty) {
    position: fixed;
    z-index: 79;
    right: max(20px,env(safe-area-inset-right));
    bottom: calc(max(20px,env(safe-area-inset-bottom)) + 56px);
    max-width: min(300px,calc(100vw - 32px));
    border-radius: 12px;
    padding: 9px 13px;
    color: #fff;
    background: #24262cef;
    box-shadow: 0 8px 25px #0004;
    font-size: 12px;
    pointer-events: none;
    animation: bd21-toast .16s ease-out both;
}
body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready)) .bd21-basket-launcher { bottom: calc(max(18px,env(safe-area-inset-bottom)) + 58px); }
body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready)) .bd21-added:not(:empty) { bottom: calc(max(18px,env(safe-area-inset-bottom)) + 113px); }
.wooflo-shop .bd21-add-offer {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #ffffff48;
    border-radius: 10px;
    color: #fff;
    background: #16171bcb;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    box-shadow: 0 2px 8px #0002;
    font: inherit;
    font-size: 11px;
    font-weight: 640;
    line-height: 1.1;
    cursor: pointer;
    opacity: 1;
    transition: opacity .16s, transform .16s;
}
.wooflo-shop .bd21-add-offer { border-radius: 999px; }
.wooflo-shop .bd21-add-offer:hover { background: #08090bed; }
.wooflo-shop .bd21-add-offer[data-basket-picked] { color: #fff; background: #33353aee; border-color: #ffffffa6; }
.wooflo-shop .bd21-add-offer:is([data-basket-placement="detail"],[data-basket-placement="native"]) {
    position: static;
    width: 100%;
    min-height: 42px;
    gap: 8px;
    color: var(--ws-fg, inherit);
    background: var(--ws-panel, transparent);
    border: 1px solid var(--ws-line, #85858a77);
    border-radius: 12px;
    box-shadow: none;
    font-size: .87rem;
    line-height: 1.3;
}
.wooflo-shop .bd21-add-offer:is([data-basket-placement="detail"],[data-basket-placement="native"]):hover {
    border-color: currentColor;
}
.bd-basket-native { margin-block: .8rem; }
.bd-basket-native[data-basket-active] .bd21-add-offer { display: inline-flex !important; }
.mk-dcopy .bd21-add-offer[data-basket-quick] { margin-top: 8px; }
.bd-basket-pack, .bd-basket-plan { position: relative; min-width: 0; }
.bd-basket-pack .ws-pack-card { height: 100%; padding-inline-end: 50px; }
.bd-basket-plan { display: flex; gap: 7px; align-items: stretch; margin-top: auto; }
.bd-basket-plan .bd19-plan-action { flex: 1; margin: 0; }
.wooflo-shop .bd21-add-offer[data-basket-placement="compact"] {
    inset: auto 7px auto auto;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
}
.wooflo-shop .bd-basket-plan .bd21-add-offer { position: static; transform: none; width: 42px; height: auto; }
.wooflo-shop .bd21-add-offer[data-basket-placement="compact"] span { display: none; }
@media (pointer:coarse) {
    .wooflo-shop .bd21-add-offer { min-height: 40px; }
    .wooflo-shop .bd21-add-offer[data-basket-placement="compact"] { width: 42px; height: 42px; }
}
html:has(.bd21-drawer[open]) { overflow: hidden; }
.bd21-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(490px,calc(100vw - 20px));
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--bag-line);
    border-radius: 24px 0 0 24px;
    overflow: hidden;
    color: var(--bag-text);
    background: var(--bag-panel);
    color-scheme: dark;
    box-shadow: -22px 0 96px #0006;
    box-sizing: border-box;
    font: inherit;
    text-align: left;
}
[data-wf-theme="light"] .bd21-drawer { color-scheme: light; }
.bd21-drawer:not([open]) { display: none; }
.bd21-drawer[open] { animation: bd21-enter .24s cubic-bezier(.2,.72,.2,1) both; }
.bd21-drawer[open].bd21-closing { animation: bd21-exit .15s ease-in both; }
.bd21-drawer::backdrop { background: #08090db0; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.bd21-drawer[open]::backdrop { animation: bd21-veil .18s ease-out both; }
.bd21-drawer[open].bd21-closing::backdrop { opacity: .25; transition: opacity .15s; }
.bd21-drawer * { box-sizing: border-box; }
.bd21-drawer-shell {
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    height: 100%;
    min-width: 0;
    padding: max(22px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) 18px;
}
.bd21-drawer-head { display: flex; align-items: center; gap: 13px; padding: 3px 4px 20px; border-bottom: 1px solid var(--bag-line); }
.bd21-drawer-mark { width: 43px; height: 43px; border-radius: 15px; }
.bd21-drawer-head h2 { margin: 0; color: var(--bag-text); font: inherit; font-size: clamp(25px,4vw,32px); font-weight: 700; line-height: 1.02; letter-spacing: -.055em; }
.bd21-drawer-head p { margin: 5px 0 0; color: var(--bag-muted); font-size: 12px; line-height: 1.35; }
.bd21-drawer-head > button { margin-left: auto; flex: none; }
.bd21-drawer :is(button,a) { -webkit-tap-highlight-color: transparent; }
.bd21-drawer .bd21-icon-button, .bd21-drawer .bd21-quantity button {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bag-line); background: var(--bag-soft); color: var(--bag-text); font: inherit; cursor: pointer;
}
.bd21-icon-button { width: 38px; height: 38px; border-radius: 13px; }
.bd21-icon-button:hover, .bd21-quantity button:hover:not(:disabled) { color: var(--bag-text); background: color-mix(in srgb,var(--bag-soft) 90%,var(--bag-text)); }
.bd21-drawer-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; min-width: 0; padding: 16px 3px 9px; }
.bd21-basket-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bd21-basket-line {
    list-style: none;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--bag-line);
    border-radius: 18px;
    background: var(--bag-well);
    overflow: hidden;
}
.bd21-line-row { display: grid; grid-template-columns: 71px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; }
.bd21-line-art { position: relative; display: grid; place-items: center; width: 71px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; color: var(--bag-muted); background: var(--bag-soft); }
.bd21-line-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd21-line-info { display: grid; justify-items: start; align-content: center; gap: 3px; min-width: 0; }
.bd21-line-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--bag-muted); font-size: 10px; font-weight: 650; line-height: 1.3; }
.bd21-line-kind::before { content: ''; height: 6px; width: 6px; border-radius: 50%; background: #9fbeff; }
.bd21-line-kind[data-kind="visual"]::before { background: #dca6ed; }
.bd21-line-title { color: var(--bag-text); font: inherit; font-size: 15px; font-weight: 680; text-decoration: none; line-height: 1.3; letter-spacing: -.018em; overflow-wrap: anywhere; }
a.bd21-line-title:hover { color: var(--bag-text); text-decoration: underline; text-underline-offset: 3px; }
.bd21-line-sub { color: var(--bag-muted); font-size: 11px; line-height: 1.4; }
.bd21-line-controls { display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: 4px; align-self: stretch; }
.bd21-delete { width: 29px; height: 29px; border: 0; background: transparent; color: var(--bag-muted); }
.bd21-delete:hover { color: var(--bag-error); }
.bd21-quantity { display: inline-flex; align-items: center; border-radius: 9px; border: 1px solid var(--bag-line); overflow: hidden; }
.bd21-quantity button { width: 25px; height: 26px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.bd21-quantity button svg { width: 12px; height: 12px; }
.bd21-quantity button:disabled { opacity: .32; cursor: default; }
.bd21-quantity span { min-width: 16px; text-align: center; color: var(--bag-text); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bd21-item-editor { border-top: 1px solid var(--bag-line); }
.bd21-item-editor summary { display: flex; align-items: center; gap: 6px; min-height: 33px; padding: 5px 13px; color: var(--bag-muted); font-size: 11px; line-height: 1.35; cursor: pointer; list-style: none; }
.bd21-item-editor summary::-webkit-details-marker { display: none; }
.bd21-item-editor summary svg:last-child { margin-left: auto; transition: transform .15s; }
.bd21-item-editor[open] summary svg:last-child { transform: rotate(180deg); }
.bd21-item-editor summary:hover, .bd21-item-editor[open] summary { color: var(--bag-text); }
.bd21-item-fields, .bd21-fields, .bd21-contact { display: grid; gap: 9px; }
.bd21-item-fields { grid-template-columns: 1fr 1fr; padding: 8px 13px 14px; }
.bd21-item-fields label { display: grid; align-content: start; gap: 4px; min-width: 0; }
.bd21-item-fields label:last-child { grid-column: 1/-1; }
.bd21-drawer label { min-width: 0; color: var(--bag-text); font: inherit; font-size: 12px; font-weight: 620; }
.bd21-drawer :is(input,textarea,select) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--bag-line);
    border-radius: 10px;
    background-color: var(--bag-soft);
    color: var(--bag-text);
    font: inherit;
    font-size: 13px;
    font-weight: 440;
    line-height: 1.4;
}
.bd21-drawer textarea { resize: vertical; }
.bd21-drawer :is(input,textarea)::placeholder { color: var(--bag-muted); opacity: .92; }
.bd21-drawer .bd21-line-mode { width: auto; max-width: 100%; padding: 3px 5px; font-size: 11px; border-radius: 6px; }
.bd21-configure { display: flex; align-items: center; justify-content: space-between; margin: 0 11px 10px; padding: 8px 10px; color: var(--bag-text); background: var(--bag-soft); border-radius: 9px; font-size: 12px; text-decoration: none; }
.bd21-drawer-foot {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 13px 2px 2px;
    border-top: 1px solid var(--bag-line);
    background: var(--bag-panel);
    box-shadow: 0 -12px 14px -7px var(--bag-panel);
}
.bd22-foot-hint { margin: 0; color: var(--bag-muted); font-size: 12px; line-height: 1.4; text-wrap: pretty; }
.bd22-checkout > p { margin: 8px 0 20px; color: var(--bag-muted); font-size: 14px; line-height: 1.5; }
.bd21-drawer .bd22-step-title {
    margin: 18px 0 0; color: var(--bag-text); font: inherit;
    font-size: clamp(22px,3vw,28px); font-weight: 680; letter-spacing: -.045em; line-height: 1.2;
}
.bd22-checkout-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bd22-checkout-lines li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px;
    border: 1px solid var(--bag-line); border-radius: 14px; background: var(--bag-well); font-size: 13px;
}
.bd22-checkout-lines li div { display: grid; gap: 3px; min-width: 0; overflow-wrap:anywhere; }
.bd22-checkout-lines li small { color: var(--bag-muted); }
.bd22-checkout-lines li > span { color: var(--bag-text); text-align: right; font-size: 12px; }
.bd21-foot-actions { display: grid; gap: 7px; }
.bd21-drawer :is(.bd21-primary,.bd21-secondary) {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 47px; padding: 10px 15px;
    border: 1px solid transparent; border-radius: 13px;
    font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer;
}
.bd21-drawer .bd21-primary { background: var(--bag-accent); color: var(--bag-accent-ink); }
.bd21-drawer .bd21-primary:hover { background: color-mix(in srgb,var(--bag-accent) 88%,white); color: var(--bag-accent-ink); }
.bd21-drawer .bd21-secondary { color: var(--bag-text); background: var(--bag-soft); border-color: var(--bag-line); }
.bd21-drawer .bd21-secondary:hover { color: var(--bag-text); background: color-mix(in srgb,var(--bag-soft) 92%,var(--bag-text)); }
.bd21-primary:disabled, .bd21-secondary:disabled { opacity: .65; cursor: wait; }
.bd21-back, .bd21-text-action { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: transparent; color: var(--bag-muted); font: inherit; font-size: 12px; font-weight: 590; cursor: pointer; }
.bd21-back:hover, .bd21-text-action:hover { color: var(--bag-text); }
.bd21-quote-summary { padding: 7px 0 17px; color: var(--bag-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.bd21-contact { grid-template-columns: 1fr 1fr; margin-top: 13px; }
.bd21-note { margin: 14px 0 0; color: var(--bag-muted); font-size: 12px; line-height: 1.55; }
.bd21-error { padding: 7px 0 12px; margin: 0; color: var(--bag-error); font-size: 13px; line-height: 1.5; }
.bd21-empty, .bd21-receipt { display: grid; justify-items: center; align-content: center; gap: 13px; min-height: min(51vh,380px); padding: 20px 10px; text-align: center; }
.bd21-empty > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 23px; border: 1px solid var(--bag-line); color: var(--bag-muted); background: var(--bag-soft); }
.bd21-empty h3,.bd21-receipt h3 { margin: 2px 0 0; color: var(--bag-text); font: inherit; font-size: 24px; font-weight: 680; line-height: 1.2; letter-spacing: -.035em; }
.bd21-empty p,.bd21-receipt p { max-width: 34ch; margin: 0; color: var(--bag-muted); font-size: 14px; line-height: 1.45; }
.bd21-empty .bd21-secondary, .bd21-receipt .bd21-primary { width: fit-content; margin-top: 4px; min-width: 160px; }
.bd21-receipt-mark { width: 55px; height: 55px; border-radius: 19px; }
.bd21-receipt small { max-width: 100%; color: var(--bag-muted); font-size: 11px; overflow-wrap: anywhere; }
@keyframes bd21-enter { from { opacity:.5; transform: translateX(34px); } to { opacity:1; transform:translateX(0); } }
@keyframes bd21-exit { from { opacity:1; transform: translateX(0); } to { opacity:.35; transform:translateX(25px); } }
@keyframes bd21-veil { from { opacity:0; } to { opacity:1; } }
@keyframes bd21-toast { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:850px) {
    .bd21-basket .bd21-basket-launcher, body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready)) .bd21-basket-launcher {
        bottom: calc(72px + env(safe-area-inset-bottom)); right: max(12px,env(safe-area-inset-right));
    }
    .bd21-added:not(:empty), body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready)) .bd21-added:not(:empty) {
        bottom: calc(123px + env(safe-area-inset-bottom)); right: max(12px,env(safe-area-inset-right));
    }
    body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready,.bd16)) .bd21-basket-launcher { left: max(12px,env(safe-area-inset-left)); right: auto; }
    body:has(.bx-float:not([hidden])):not(:has(.bd19-nav-ready,.bd16)) .bd21-added:not(:empty) { left: max(12px,env(safe-area-inset-left)); right: auto; }
}
@media (max-width:560px) {
    .bd21-drawer { inset: auto 0 0; width: 100%; height: min(90vh,740px); height: min(90dvh,740px); border: 1px solid var(--bag-line); border-bottom: 0; border-radius: 23px 23px 0 0; }
    .bd21-drawer-shell { padding: 15px 11px max(12px,env(safe-area-inset-bottom)); }
    .bd21-drawer-head { padding: 0 3px 13px; gap: 10px; }
    .bd21-drawer-scroll { padding-top: 13px; }
    .bd21-line-row { grid-template-columns: 58px minmax(0,1fr) auto; padding: 9px; gap: 8px; }
    .bd21-line-art { width: 58px; }
    .bd21-line-title { font-size: 14px; }
    .bd21-delete { height: 30px; width: 30px; }
    .bd21-quantity button { width: 26px; height: 27px; }
    .bd21-drawer :is(input,textarea,select):not(.bd21-line-mode) { font-size: 16px; }
    .bd21-drawer[open] { animation-name: bd21-rise; }
    .bd21-drawer[open].bd21-closing { animation-name: bd21-drop; }
}
@media (max-width:350px) {
    .bd21-contact,.bd21-item-fields { grid-template-columns: 1fr; }
    .bd21-line-row { grid-template-columns: 45px minmax(0,1fr) auto; }
    .bd21-line-art { width: 45px; }
}
@media (max-height:490px) {
    .bd21-basket .bd21-drawer { height: 100vh; height: 100dvh; }
    .bd21-drawer-shell { padding-block: max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-bottom)); }
    .bd21-drawer-head { padding-bottom: 7px; }
    .bd21-drawer-head h2 { font-size: 21px; }
    .bd21-drawer-mark { width: 34px; height: 34px; }
    .bd21-drawer-foot { padding-top: 6px; gap: 4px; }
    .bd21-drawer :is(.bd21-primary,.bd21-secondary) { min-height: 40px; padding-block: 6px; font-size: 13px; }
    .bd21-foot-actions:has(> :nth-child(2)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@keyframes bd21-rise { from {opacity:.55;transform:translateY(34px);} to {opacity:1;transform:translateY(0);} }
@keyframes bd21-drop { from {opacity:1;transform:translateY(0);} to {opacity:.4;transform:translateY(22px);} }
@media (prefers-reduced-motion:reduce) {
    .bd21-basket *, .bd21-drawer::backdrop, .wooflo-shop .bd21-add-offer { animation-duration:.001ms!important; transition-duration:.001ms!important; }
}
