:root {
    --sample-basket-drawer-width: 372px;
    --sample-basket-radius: 8px;
    --sample-basket-chrome-bottom: 120px;
}

body[data-wedding-catalog-pc-scroll-state="COMPACT_DOWN"] {
    --sample-basket-chrome-bottom: var(--wedding-catalog-pc-sticky-category-height, 72px);
}

body[data-wedding-catalog-pc-scroll-state="REVEAL_UP"] {
    --sample-basket-chrome-bottom: calc(var(--wedding-catalog-pc-sticky-category-height, 72px) + var(--wedding-catalog-pc-sticky-filter-height, 58px));
}

body.sample-basket-modal-open {
    overflow: hidden !important;
}

.sampleBasketView {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: var(--bj-ink, #181817);
    background: var(--bj-clean, #ffffff);
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    text-align: left;
}

/*
 * The legacy card stylesheet centers every div with `margin: 0 auto`.
 * A decision drawer owns one full-width internal rail, so nested divs must not
 * repeatedly shrink that rail.
 */
.sampleBasketView div {
    margin-right: 0;
    margin-left: 0;
}

.sampleBasketHeader {
    box-sizing: border-box;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.sampleBasketHeading {
    min-width: 0;
}

.sampleBasketHeading h2 {
    margin: 0;
    color: var(--bj-ink, #181817);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.sampleBasketHeading p {
    margin: 7px 0 0;
    color: var(--bj-muted, #66635e);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -.015em;
}

.sampleBasketCount {
    box-sizing: border-box;
    min-width: 50px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    padding: 0 10px;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: 999px;
    color: var(--bj-muted, #66635e);
    background: var(--bj-clean, #ffffff);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.sampleBasketCount span {
    color: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-weight: 650;
}

.sampleBasketClose {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: -4px -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bj-charcoal, #1a1a18);
    background: transparent;
    cursor: pointer;
}

.sampleBasketClose:hover {
    background: var(--bj-product-stage, #f7f5f1);
}

.sampleBasketClose:focus-visible {
    background: var(--bj-product-stage, #f7f5f1);
    outline: 2px solid var(--bj-charcoal, #1a1a18);
    outline-offset: 2px;
}

.sampleBasketClose span,
.sampleBasketRemove span {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
}

.sampleBasketClose span::before,
.sampleBasketClose span::after,
.sampleBasketRemove span::before,
.sampleBasketRemove span::after {
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    background: currentColor;
}

.sampleBasketClose span::before,
.sampleBasketRemove span::before {
    transform: rotate(45deg);
}

.sampleBasketClose span::after,
.sampleBasketRemove span::after {
    transform: rotate(-45deg);
}

.sampleBasketProgress {
    height: 2px;
    overflow: hidden;
    background: var(--bj-stone, #f1efe9);
}

.sampleBasketProgress > span {
    height: 100%;
    display: block;
    border-radius: 0 999px 999px 0;
    background: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    transition: width .22s ease;
}

.sampleBasketBody {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--bj-line, #ddd9d2) transparent;
}

.sampleBasketItems {
    display: grid;
    width: 100%;
    gap: 0;
}

.sampleBasketItem {
    box-sizing: border-box;
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--bj-line, #ddd9d2);
    border-radius: 0;
    background: var(--bj-clean, #ffffff);
    transition: border-color .16s ease;
}

.sampleBasketThumb {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--sample-basket-radius);
    background: var(--bj-product-stage, #f7f5f1);
}

.sampleBasketThumb img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: block;
    padding: 6px;
    object-fit: contain;
}

.sampleBasketItemMeta {
    min-width: 0;
    display: block;
}

.sampleBasketItemMeta strong {
    display: inline-block;
    overflow: hidden;
    color: var(--bj-ink, #181817);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    transform-origin: left center;
    transition: transform .16s ease;
    white-space: nowrap;
}

@media (hover: hover) {
    .sampleBasketItem:hover .sampleBasketItemMeta strong {
        transform: scale(1.035);
    }
}

.sampleBasketItem:focus-within .sampleBasketItemMeta strong {
    transform: scale(1.035);
}

.sampleBasketRemove {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bj-muted, #66635e);
    background: transparent;
    cursor: pointer;
}

.sampleBasketRemove:hover {
    color: var(--bj-charcoal, #1a1a18);
    background: var(--bj-stone, #f1efe9);
}

.sampleBasketRemove:focus-visible {
    color: var(--bj-charcoal, #1a1a18);
    background: var(--bj-stone, #f1efe9);
    outline: 2px solid var(--bj-charcoal, #1a1a18);
    outline-offset: 2px;
}

.sampleBasketRemove[aria-busy='true'] {
    opacity: .42;
    pointer-events: none;
}

.sampleBasketRecommendation {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: var(--sample-basket-radius);
    color: var(--bj-charcoal, #1a1a18);
    background: var(--bj-clean, #ffffff);
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    text-align: left;
    cursor: pointer;
}

.sampleBasketRecommendationCopy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.sampleBasketRecommendationCopy strong {
    color: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.sampleBasketRecommendationCopy small {
    overflow: hidden;
    color: var(--bj-muted, #66635e);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sampleBasketRecommendationAction {
    color: var(--bj-charcoal, #1a1a18);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.sampleBasketRecommendationIcon {
    color: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-size: 16px;
}

.sampleBasketRecommendation:hover,
.sampleBasketRecommendation:focus-visible {
    border-color: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    outline: none;
}

.sampleBasketRecommendation[aria-busy='true'] {
    opacity: .58;
    pointer-events: none;
}

.sampleBasketFooter {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    margin: 0 20px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--bj-line, #ddd9d2);
    background: var(--bj-clean, #ffffff);
    box-shadow: none;
}

.sampleBasketView--empty {
    grid-template-rows: auto minmax(0, auto) auto;
}

.sampleBasketView--empty .sampleBasketFooter {
    padding-top: 4px;
    border-top: 0;
    box-shadow: none;
}

.sampleBasketDelivery {
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
    text-align: left;
}

.sampleBasketDelivery strong {
    color: var(--bj-ink, #181817);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.sampleBasketDelivery span {
    color: var(--bj-muted, #66635e);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.sampleBasketSubmit {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--bj-charcoal, #1a1a18);
    border-radius: var(--sample-basket-radius);
    color: var(--bj-clean, #ffffff);
    background: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.015em;
    text-decoration: none;
    cursor: pointer;
}

.sampleBasketSubmit:hover,
.sampleBasketSubmit:focus-visible {
    opacity: .92;
    outline: 2px solid var(--bj-charcoal, #1a1a18);
    outline-offset: 2px;
}

.sampleBasketSubmit:disabled {
    border-color: var(--bj-line, #ddd9d2);
    color: var(--bj-muted, #66635e);
    background: var(--bj-stone, #f1efe9);
    cursor: default;
    opacity: 1;
}

.sampleBasketFooter p {
    margin: 9px 0 0;
    color: var(--bj-muted, #66635e);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

/* Desktop: non-modal decision drawer anchored below the shared header. */
.sampleBasketShell--desktop {
    box-sizing: border-box;
    width: 100% !important;
    height: calc(100dvh - var(--sample-basket-panel-top, var(--sample-basket-chrome-bottom)));
    display: block !important;
    visibility: hidden;
    opacity: 0;
    position: fixed !important;
    inset: var(--sample-basket-panel-top, var(--sample-basket-chrome-bottom)) 0 0 !important;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: none;
    z-index: 300 !important;
    transition: opacity .2s ease, visibility .2s ease;
}

.sampleBasketShell--desktop::before,
.sampleBasketShell--desktop::after {
    content: none !important;
}

.sampleBasketShell--desktop.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: none;
}

.sampleBasketBackdrop {
    display: none !important;
}

.sampleBasketShell--desktop.is-open .sampleBasketBackdrop {
    opacity: 1;
}

.sampleBasketShell--desktop #sample_cards {
    box-sizing: border-box;
    width: min(var(--sample-basket-drawer-width), calc(100vw - 32px)) !important;
    height: auto;
    max-height: var(--sample-basket-panel-max-height, calc(100dvh - var(--sample-basket-panel-top, var(--sample-basket-chrome-bottom)) - 16px));
    display: block !important;
    position: fixed;
    top: var(--sample-basket-panel-top, var(--sample-basket-chrome-bottom));
    right: var(--sample-basket-panel-right, max(16px, calc((100vw - 1000px) / 2)));
    pointer-events: auto;
    overflow: visible;
    border: 1px solid var(--bj-line, #ece9e6) !important;
    border-radius: 12px;
    background: var(--bj-clean, #ffffff) !important;
    box-shadow: 0 18px 40px rgba(27, 38, 49, .12) !important;
    opacity: 0;
    transform: translateY(-12px) scale(.985);
    transform-origin: calc(100% - var(--sample-basket-caret-right, 34px)) 0;
    transition:
        opacity .18s ease,
        transform .22s cubic-bezier(.22, .72, .2, 1);
}

.sampleBasketShell--desktop #sample_cards::before {
    content: '';
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    position: absolute;
    top: -7px;
    right: var(--sample-basket-caret-right, 34px);
    z-index: 2;
    border-top: 1px solid var(--bj-line, #ece9e6);
    border-left: 1px solid var(--bj-line, #ece9e6);
    background: var(--bj-clean, #ffffff);
    transform: rotate(45deg);
}

.sampleBasketShell--desktop.sampleBasketShell--above #sample_cards {
    transform: translateY(12px) scale(.985);
    transform-origin: calc(100% - var(--sample-basket-caret-right, 34px)) 100%;
}

.sampleBasketShell--desktop.sampleBasketShell--above #sample_cards::before {
    top: auto;
    bottom: -7px;
    border: 0;
    border-right: 1px solid var(--bj-line, #ece9e6);
    border-bottom: 1px solid var(--bj-line, #ece9e6);
}

.sampleBasketShell--desktop.is-open #sample_cards {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .sampleBasketShell--desktop .sampleBasketHeader {
        min-height: 76px;
        display: grid;
        padding: 16px 20px;
    }

    .sampleBasketShell--desktop .sampleBasketView {
        height: auto;
        max-height: inherit;
        grid-template-rows: auto minmax(0, auto) auto;
        border: 0;
        border-radius: 11px;
        overflow: hidden;
    }

    .sampleBasketShell--desktop .sampleBasketView--empty {
        grid-template-rows: auto minmax(0, auto) auto;
    }

    .sampleBasketShell--desktop .sampleBasketView--empty .sampleBasketRecommendation {
        margin-top: 0;
    }

    .sampleBasketShell--desktop .sampleBasketBody {
        max-height: 340px;
    }

    .sampleBasketShell--desktop .sampleBasketRecommendation {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 60px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .sampleBasketShell--desktop .sampleBasketRecommendationIcon {
        display: none;
    }

    .sampleBasketShell--desktop .sampleBasketFooter {
        box-shadow: none;
    }
}

.sampleBasketDock {
    appearance: none;
    box-sizing: border-box;
    width: 92px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    position: fixed;
    top: 68px;
    right: max(calc((100vw - 1000px) / 2 + 5px), 12px);
    z-index: 220;
    margin: 0;
    padding: 0 4px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: var(--bj-charcoal, #1a1a18);
    background: transparent;
    box-shadow: none;
    font-family: 'Pretendard', sans-serif;
    cursor: pointer;
    transition:
        right .3s cubic-bezier(.22, .72, .2, 1),
        color .18s ease,
        opacity .18s ease;
}

.sampleBasketDock:hover {
    color: #000f18;
}

.sampleBasketDock:focus-visible {
    outline: 2px solid var(--bj-charcoal, #1a1a18);
    outline-offset: 3px;
}

.sampleBasketDock__icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color .18s ease, transform .18s ease;
}

.sampleBasketDock.is-has-items .sampleBasketDock__icon,
.sampleBasketDock:hover .sampleBasketDock__icon,
.sampleBasketDock:focus-visible .sampleBasketDock__icon {
    color: var(--bj-charcoal, #1a1a18);
}

.sampleBasketDock__label {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: center;
    white-space: nowrap;
}

.sampleBasketDock__count.sample_pick_count {
    box-sizing: border-box;
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 3px;
    left: 17px;
    padding: 0;
    border: 2px solid var(--bj-clean, #ffffff);
    border-radius: 10px;
    color: var(--bj-clean, #ffffff);
    background: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 16px;
    text-align: center;
}

.sampleBasketDock__count[hidden] {
    display: none !important;
}

.sampleBasketDock__live {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.sampleBasketDock.is-confirming {
    opacity: 1;
}

.sampleBasketDock.is-confirming .sampleBasketDock__icon {
    color: var(--bj-charcoal, #1a1a18);
    transform: translateY(-1px) scale(1.08);
}

.sampleBasketDock.is-confirming .sampleBasketDock__count.sample_pick_count {
    border-color: var(--bj-clean, #ffffff);
    color: var(--bj-clean, #ffffff);
    background: var(--bj-charcoal, #1a1a18);
}

body.sample-basket-modal-open .sampleBasketDock {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    body.sample-basket-dock-enabled .headerSampleEntry {
        display: none;
    }

    body[data-wedding-catalog-pc-scroll-state="COMPACT_DOWN"] .sampleBasketDock,
    body[data-wedding-catalog-pc-scroll-state="REVEAL_UP"] .sampleBasketDock {
        right: 0;
    }
}

.sampleBasketShell--desktop #sp_cart_wrapper,
.sampleBasketShell--desktop #sample_blocks {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Mobile: the shared content lives in the existing bottom-sheet shell. */
.mobileSampleBasketTrigger {
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.fixedBottomMenuWrapper.sample-basket-active .fixedLayer {
    display: block;
    z-index: 2;
    opacity: 1;
    background: rgba(26, 26, 24, .32);
    background: color-mix(in srgb, var(--bj-charcoal, #1a1a18) 32%, transparent);
}

.fixedBottomMenuWrapper.sample-basket-active .bottomMenuSlideUp[data-sheet='free-sample'] {
    box-sizing: border-box;
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0;
    height: auto !important;

    max-height: calc(100vh - 24px) !important;
    max-height: min(85dvh, calc(100dvh - 24px)) !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr);
    overflow: visible;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: 18px 18px 0 0;
    background: var(--bj-clean, #ffffff);
    box-shadow: 0 -18px 44px rgba(27, 38, 49, .16);
    bottom: 0 !important;
    z-index: 3;
}

body.mobile-wedding-navigation .fixedBottomMenuWrapper.sample-basket-active[data-navigation-mode='catalog-explorer'] .bottomMenuSlideUp[data-sheet='free-sample'] {
    border-radius: 18px 18px 0 0 !important;
}

.fixedBottomMenuWrapper.sample-basket-active .bottomMenuSlideUp[data-sheet='free-sample']::after {
    content: none;
}

.fixedBottomMenuWrapper.sample-basket-active .bottomMenuListBox.bojagiMobileDock {
    visibility: hidden;
    opacity: 0 !important;
    pointer-events: none;
}

.sampleBasketView--mobile {
    height: auto;
    max-height: min(85dvh, calc(100dvh - 24px));
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.fixedBottomMenuWrapper.is-product-detail.sample-basket-active .bottomMenuSlideUp,
.fixedBottomMenuWrapper.is-product-detail.sample-basket-active .fixedLayer {
    display: grid !important;
}

.bottomMenuSlideUp[data-sheet='free-sample'] .bottomMenuTitleBox.drag-handle {
    display: none !important;
}

.bottomMenuSlideUp[data-sheet='free-sample'] .bottomMenuTitleBox.drag-handle::before {
    content: none;
}

.bottomMenuSlideUp[data-sheet='free-sample'] .bottomMenuTitleBox.drag-handle .iClose {
    display: none !important;
}

.bottomMenuSlideUp[data-sheet='free-sample'] .bottomMenuContentBox {
    grid-row: 1;
    min-height: 0;
    height: auto;
    max-height: inherit;
    border-radius: 17px 17px 0 0;
    overflow: hidden;
}

.bottomMenuSlideUp[data-sheet='free-sample'] .bottomMenuContentBox > section[data-section='free-sample'] {
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    max-height: inherit;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.bottomMenuSlideUp[data-sheet='free-sample'] #accordianFreeSample {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    max-height: inherit;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    overflow: hidden;
    background: var(--bj-clean, #ffffff);
}

.bottomMenuSlideUp[data-sheet='free-sample'] #sample_cards {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
}

.sampleBasketDevTools {
    flex: 0 0 auto;
    padding: 6px 16px;
    border-bottom: 1px solid var(--bj-line, #ddd9d2);
    background: var(--bj-stone, #f1efe9);
}

.sampleBasketDevTools .sample_picked_zero_btn {
    min-height: 32px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: 7px;
    color: var(--bj-muted, #66635e);
    background: var(--bj-clean, #ffffff);
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    font-size: 11px;
    cursor: pointer;
}

/* Shared add feedback. */
.sampleBasketFlyItem {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 460;
    overflow: hidden;
    border: 1px solid var(--bj-line, #ddd9d2);
    background: var(--bj-product-stage, #f7f5f1);
    box-shadow: 0 12px 30px rgba(27, 38, 49, .2);
    pointer-events: none;
    will-change: transform, opacity;
}

.sampleBasketFlyItem img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 4px;
    object-fit: contain;
}

[data-sample-basket-trigger].is-count-updated,
.mobileSampleBasketTrigger.is-count-updated,
[data-sample-basket-dock].is-count-updated {
    animation: sampleBasketArrival .56s cubic-bezier(.22,.72,.2,1);
}

@keyframes sampleBasketArrival {
    0%, 100% { transform: scale(1); }
    46% { transform: scale(1.12); }
}

.sampleBasketToast {
    box-sizing: border-box;
    min-width: 300px;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 420;
    padding: 0 10px 0 18px;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: 12px;
    color: var(--bj-clean, #ffffff);
    background: var(--bj-charcoal, #1a1a18);
    box-shadow: 0 14px 34px rgba(27, 38, 49, .2);
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.sampleBasketToast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sampleBasketToastMessage {
    min-width: 0;
    flex: 1 1 auto;
}

.sampleBasketToastAction {
    min-width: 82px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: var(--bj-charcoal, #1a1a18);
    background: var(--bj-clean, #ffffff);
    font-family: var(--bj-font-family, 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 767px) {
    #sample_cards_box.sampleBasketShell--desktop {
        width: 100% !important;
        height: 100dvh;
        display: block !important;
        inset: 0 !important;
        overflow: hidden;
        background: transparent;
        z-index: 10050 !important;
    }

    #sample_cards_box.sampleBasketShell--desktop.is-open {
        pointer-events: auto;
    }

    .sampleBasketShell--desktop .sampleBasketBackdrop {
        display: block !important;
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(26, 26, 24, .32);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .sampleBasketShell--desktop.is-open .sampleBasketBackdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sampleBasketShell--desktop #sample_cards {
        width: 100% !important;
        height: auto;
        max-height: min(85dvh, calc(100dvh - 24px));
        top: auto !important;
        right: 0 !important;
        bottom: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 44px rgba(27, 38, 49, .16);
        transform: translateY(100%);
        transform-origin: center bottom;
    }

    .sampleBasketShell--desktop #sample_cards::before {
        content: none;
    }

    .sampleBasketShell--desktop.is-open #sample_cards {
        transform: translateY(0);
    }

    .sampleBasketShell--desktop #sp_cart_wrapper,
    .sampleBasketShell--desktop #sample_blocks,
    .sampleBasketShell--desktop .sampleBasketView--desktop {
        height: auto;
        max-height: min(85dvh, calc(100dvh - 24px));
    }

    .sampleBasketDock {
        display: none !important;
    }

    .sampleBasketHeader {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) auto 44px;
        align-items: center;
        gap: 6px;
        padding: 16px 20px;
    }

    .sampleBasketView--mobile .sampleBasketHeading {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .sampleBasketView--mobile .sampleBasketCount {
        align-self: center;
        margin-top: 0;
    }

    .sampleBasketView--mobile .sampleBasketClose {
        width: 44px;
        height: 44px;
        display: grid;
        align-self: center;
        margin: 0 -2px 0 0;
        border-radius: 0;
        background: transparent;
    }

    .sampleBasketView--mobile .sampleBasketClose:hover,
    .sampleBasketView--mobile .sampleBasketClose:focus-visible {
        background: transparent;
    }

    .sampleBasketHeading h2 {
        font-size: 18px;
    }

    .sampleBasketView--mobile .sampleBasketHeading p {
        display: none;
    }

    .sampleBasketBody {
        padding: 0 20px 20px;
    }

    .sampleBasketRecommendation {
        min-height: 56px;
        gap: 9px;
        padding: 9px 14px;
    }

    .sampleBasketRecommendationCopy small {
        display: none;
    }

    .sampleBasketItem {
        grid-template-columns: 64px minmax(0, 1fr) 44px;
        gap: 11px;
        padding: 9px 0;
        border-radius: 0;
    }

    .sampleBasketThumb {
        width: 64px;
        height: 64px;
    }

    .sampleBasketFooter {
        padding: 16px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .sampleBasketDelivery {
        margin-bottom: 10px;
    }

    .sampleBasketDelivery strong {
        font-size: 16px;
    }

    .sampleBasketDelivery span {
        font-size: 12px;
    }

    .sampleBasketSubmit {
        height: 52px;
    }

    .sampleBasketToast {
        min-width: 0;
        width: auto;
        max-width: min(240px, calc(100vw - 24px));
        min-height: 46px;
        right: var(--sample-basket-toast-right, 12px);
        bottom: var(--sample-basket-toast-bottom, calc(74px + env(safe-area-inset-bottom, 0px)));
        gap: 8px;
        padding: 0 8px 0 14px;
        border-color: var(--bj-charcoal, #1a1a18);
        border-radius: 10px;
        color: var(--bj-charcoal, #1a1a18);
        background: var(--bj-clean, #ffffff);
        box-shadow: 0 10px 28px rgba(27, 38, 49, .16);
        font-size: 13px;
        font-weight: 650;
    }

    .sampleBasketToast--mobile-anchor::after {
        content: '';
        width: 10px;
        height: 10px;
        position: absolute;
        right: var(--sample-basket-toast-caret-right, 24px);
        bottom: -6px;
        border-right: 1px solid var(--bj-charcoal, #1a1a18);
        border-bottom: 1px solid var(--bj-charcoal, #1a1a18);
        background: var(--bj-clean, #ffffff);
        transform: rotate(45deg);
    }

    .sampleBasketToastAction {
        min-width: 48px;
        height: 32px;
        padding: 0 8px;
        border-radius: 6px;
        color: var(--bj-clean, #ffffff);
        background: var(--bj-charcoal, #1a1a18);
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sampleBasketShell--desktop,
    .sampleBasketShell--desktop #sample_cards,
    .sampleBasketBackdrop,
    .sampleBasketProgress > span,
    .sampleBasketItem,
    .sampleBasketToast,
    .sampleBasketDock,
    .sampleBasketDock__label {
        transition: none !important;
    }

    [data-sample-basket-trigger].is-count-updated,
    .mobileSampleBasketTrigger.is-count-updated,
    [data-sample-basket-dock].is-count-updated {
        animation: none !important;
    }
}

/* Shared basket decisions: one state, one primary action, progressive secondary choices. */
.sampleBasketStateMessage { margin:0; padding:0 0 12px; color:var(--bj-muted,#66635e); font-size:14px; line-height:1.5; }
.sampleBasketEmptyIntro { display:grid; gap:5px; }
.sampleBasketEmptyIntro strong { color:var(--bj-ink,#181817); font-size:17px; font-weight:650; line-height:1.45; letter-spacing:-.02em; }
.sampleBasketEmptyIntro p { margin:0; color:var(--bj-muted,#66635e); font-size:14px; line-height:1.5; }
.sampleBasketKit { display:grid; gap:10px; margin-top:16px; padding:16px 0 14px; border-top:1px solid var(--bj-line,#ece9e6); }
.sampleBasketKit strong { color:var(--bj-ink,#181817); font-size:15px; font-weight:600; line-height:1.45; }
.sampleBasketKitItems { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.sampleBasketKitItems li { box-sizing:border-box; min-height:38px; display:flex; align-items:center; gap:8px; margin:0; padding:8px 10px; border-radius:var(--bj-control-radius,8px); color:var(--bj-ink,#181817); background:var(--bj-information-surface); font-size:14px; font-weight:500; line-height:1.5; }
.sampleBasketKitItems li::before { content:''; width:4px; height:4px; flex:0 0 auto; border-radius:50%; background:var(--bj-charcoal,#1a1a18); }
.sampleBasketFulfillment { display:grid; gap:3px; margin-bottom:12px; }
.sampleBasketFulfillment strong { color:var(--bj-ink,#181817); font-size:15px; font-weight:600; line-height:1.45; }
.sampleBasketFulfillment span { color:var(--bj-muted,#66635e); font-size:13px; line-height:1.45; }
.sampleBasketMore { margin-top:8px; }
.sampleBasketMore summary { box-sizing:border-box; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px; color:var(--bj-ink,#181817); font-size:14px; font-weight:600; line-height:1.5; cursor:pointer; list-style:none; }
.sampleBasketMore summary::-webkit-details-marker { display:none; }
.sampleBasketMore summary span { color:var(--bj-muted,#66635e); font-size:13px; font-weight:400; }
.sampleBasketMore summary::after { content:''; width:6px; height:6px; flex:0 0 auto; margin-left:auto; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.sampleBasketMore[open] summary::after { transform:rotate(225deg) translate(-2px,-2px); }
.sampleBasketMoreActions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:4px; }
.sampleBasketMoreActions a,.sampleBasketMoreActions button,.sampleBasketBrowseAction { box-sizing:border-box; min-height:44px; display:flex; align-items:center; justify-content:center; margin:0; padding:8px; border:1px solid var(--bj-line,#ddd9d2); border-radius:var(--sample-basket-radius); color:var(--bj-ink,#181817); background:var(--bj-clean,#fff); font:500 14px/1.5 var(--bj-font-family,inherit); text-decoration:none; cursor:pointer; }
.sampleBasketMoreActions > :only-child { grid-column:1/-1; }
.sampleBasketEmptyActions { display:grid; gap:8px; }
.sampleBasketEmptyActions .sampleBasketSubmit { border-radius:var(--sample-basket-radius); }
.sampleBasketBrowseAction { width:100%; min-height:48px; font-size:15px; font-weight:600; }
.sampleBasketItem:last-child { border-bottom:0; }
.sampleBasketEmptyActions :focus-visible,.sampleBasketMore :focus-visible { outline:2px solid var(--bj-charcoal,#1a1a18); outline-offset:2px; }
.sampleBasketView .sampleBasketFeedback { margin:8px 0 0; color:var(--bj-ink,#181817); font-size:16px; line-height:1.5; }
.sampleBasketFeedback[hidden] { display:none; }

#sample_cards[aria-busy='true'] .sampleBasketView { opacity:.72; pointer-events:none; }

.sampleBasketClose,.sampleBasketRemove { width:44px; height:44px; }

@media (max-width: 767px) {
    .sampleBasketView--mobile .sampleBasketHeader {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 68px;
        padding: 28px 20px 8px;
    }
    .sampleBasketView--mobile .sampleBasketHeading {
        min-height: 32px;
    }
    .sampleBasketView--mobile .sampleBasketHandle {
        position: absolute;
        top: 0;
        left: 50%;
        width: 64px;
        height: 44px;
        margin: 0 0 0 -32px;
        touch-action: none;
        cursor: grab;
    }
    .sampleBasketView--mobile .sampleBasketHandle span {
        position: absolute;
        top: 10px;
        left: 12px;
        width: 40px;
        height: 5px;
        border-radius: 5px;
        background: var(--bj-muted, #66635e);
    }
    .sampleBasketHandle span::before,
    .sampleBasketHandle span::after { content: none; }
    .sampleBasketView--mobile .sampleBasketHandle:focus-visible { outline:2px solid var(--bj-ink,#181817); outline-offset:-6px; border-radius:8px; }
}
