/* Frame upsell carousel (basket page + nav drawer) */
.cart-frame-upsell {
    margin-top: 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.cfu-header {
    margin-bottom: 0.85rem;
}

.cfu-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #111);
}

.cfu-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted, #666);
}

.cfu-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    padding-inline: 4px;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.cfu-card {
    flex: 0 0 auto;
    width: min(168px, 42vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.cart-frame-upsell--drawer .cfu-card {
    width: min(136px, 44vw);
}

.cfu-card-preview {
    margin-bottom: 0.5rem;
}

/* Extra inset so framed previews (box-shadow frame) are not clipped in the carousel */
.cfu-card-preview--framed,
.cfu-card-preview--hanger {
    padding: 12px;
    box-sizing: border-box;
}

.cfu-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 7;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bc-workspace, #e7e0d7);
}

.cfu-frame-wrap .bic-thumb-img,
.cfu-frame-wrap .cfu-thumb-img,
.cfu-thumb-img,
.cfu-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.cfu-thumb-placeholder {
    background: var(--bc-workspace, #e7e0d7);
}

.cfu-frame-wrap.physical-framed,
.cfu-frame-wrap.physical-hanger {
    overflow: visible;
}

.cfu-card-title {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text, #111);
}

.cfu-card-price {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    min-height: 1.3em;
}

.cfu-price-sale {
    display: block;
    font-weight: 700;
}

.cfu-price-loading {
    color: var(--text-muted, #888);
}

.cfu-add-btn {
    width: 100%;
    padding: 0.5rem 0.35rem;
    font-size: 0.75rem;
    min-height: 2.25rem;
}

.cart-frame-upsell--basket {
    padding: 1.25rem 0 0.5rem;
    border-top: 1px solid var(--border, #e8e6e0);
}

.cart-frame-upsell--basket .cfu-card {
    width: min(200px, 38vw);
}

.cart-frame-upsell--basket .cfu-title {
    font-size: 1.35rem;
}

@media (min-width: 768px) {
    .cart-frame-upsell--basket .cfu-track {
        gap: 1rem;
    }

    .cart-frame-upsell--basket .cfu-card {
        width: 180px;
    }
}

/* Nav drawer placement */
.basket-drawer-body .cart-frame-upsell--drawer {
    margin: 0.75rem 0 0;
    padding: 0 0 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.basket-drawer-body .cart-frame-upsell--drawer .cfu-title {
    font-size: 1rem;
}

.basket-drawer-body .cart-frame-upsell--drawer .cfu-subtitle {
    font-size: 0.8125rem;
}

.basket-drawer-body .cart-frame-upsell--drawer .cfu-track {
    gap: 1rem;
}
