.lc-fbt-bundle {
    margin: 1.75rem 0 1.25rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.add-to-cart-wrapper .lc-fbt-bundle,
.single-product .lc-fbt-bundle {
    margin-top: 1rem;
}

.product-footer .lc-fbt-bundle {
    margin: 0 0 2rem;
    padding-top: 1.5rem;
}

.lc-fbt-bundle__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}

/* Amazon-style single row: products + summary */
.lc-fbt-bundle__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
}

.lc-fbt-bundle__items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.lc-fbt-bundle__item {
    flex: 0 0 82px;
    width: 82px;
    max-width: 82px;
    text-align: center;
    position: relative;
}

.product-footer .lc-fbt-bundle__item {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100px;
}

.lc-fbt-bundle__item.is-unavailable {
    opacity: 0.45;
}

.lc-fbt-bundle__checkbox-wrap {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}

.lc-fbt-bundle__checkbox-wrap input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.lc-fbt-bundle__image-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #f6f6f6;
    aspect-ratio: 1;
    margin-bottom: 0.35rem;
}

.lc-fbt-bundle__image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lc-fbt-bundle__item-title {
    font-size: 11px;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-footer .lc-fbt-bundle__item-title {
    font-size: 12px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.lc-fbt-bundle__item-title a {
    color: #007185;
    text-decoration: none;
}

.lc-fbt-bundle__item-title a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.lc-fbt-bundle__item-prefix {
    display: block;
    font-weight: 600;
    color: #0f1111;
    font-size: 10px;
    margin-bottom: 0.1rem;
}

.lc-fbt-bundle__item-price {
    font-size: 12px;
    color: #0f1111;
    margin: 0;
    white-space: nowrap;
}

.lc-fbt-bundle__item-unavailable {
    font-size: 10px;
    line-height: 1.25;
    color: #b12704;
    margin-top: 0.15rem;
}

.lc-fbt-bundle__plus {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: #565959;
    line-height: 1;
}

/* 2 / 3 件：网格固定加号列，水平垂直居中（全端一致） */
.lc-fbt-bundle--slots-2 .lc-fbt-bundle__items {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.35rem;
}

.lc-fbt-bundle--slots-3 .lc-fbt-bundle__items {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr) 1.5rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.35rem;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__plus,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__plus {
    align-self: center;
    justify-self: center;
    flex: none;
    width: 100%;
    height: auto;
    font-size: 1.35rem;
    color: #666;
}

/* 2 / 3 件：商品区浅底面板 + 白底圆角卡片（手机 / 电脑一致） */
.lc-fbt-bundle--slots-2 .lc-fbt-bundle__items,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__items {
    overflow-x: visible;
    padding: 0.65rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__item,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__item {
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.45rem 0.6rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 17, 17, 0.08);
    text-align: left;
    position: relative;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__image-link,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__image-link {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 0.45rem;
    min-height: 0;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__item-title,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__item-title {
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    flex: 0 0 auto;
    text-align: left;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__item-prefix,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__item-prefix {
    font-size: 11px;
    margin-bottom: 0.15rem;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__item-price,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__item-price {
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.25rem;
    text-align: left;
    white-space: normal;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__item-unavailable,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__item-unavailable {
    text-align: left;
}

.lc-fbt-bundle--slots-2 .lc-fbt-bundle__checkbox-wrap,
.lc-fbt-bundle--slots-3 .lc-fbt-bundle__checkbox-wrap {
    top: 8px;
    right: 8px;
}

.lc-fbt-bundle__summary {
    flex: 0 0 148px;
    width: 148px;
    max-width: 148px;
    min-width: 148px;
    padding-top: 0.15rem;
    margin-left: auto;
}

.product-footer .lc-fbt-bundle__summary {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
    min-width: 200px;
}

.lc-fbt-bundle__total-label {
    font-size: 13px;
    margin: 0 0 0.2rem;
    color: #0f1111;
}

.lc-fbt-bundle__total-price {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #0f1111;
    line-height: 1.25;
}

.lc-fbt-bundle__total-price del {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #565959;
    margin: 0 0 0.1rem;
}

.lc-fbt-bundle__save {
    font-size: 11px;
    line-height: 1.3;
    color: #067d62;
    margin: 0 0 0.5rem;
}

.lc-fbt-bundle__button {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #ffd814;
    color: #0f1111;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
    transition: background 0.15s ease;
    white-space: normal;
    text-align: center;
}

.lc-fbt-bundle__button:hover:not(:disabled) {
    background: #f7ca00;
}

.lc-fbt-bundle__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lc-fbt-bundle__message {
    font-size: 11px;
    color: #b12704;
    margin-top: 0.35rem;
}

/* Tablet / mobile: stacked summary + swipeable product row */
@media (max-width: 849px) {
    .lc-fbt-bundle {
        margin: 1.25rem 0 1rem;
        padding-top: 1rem;
    }

    .lc-fbt-bundle__title {
        font-size: 1rem;
        margin-bottom: 0.65rem;
    }

    .lc-fbt-bundle__inner {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .lc-fbt-bundle__items {
        flex: none;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.15rem 0.15rem 0.5rem;
        margin: 0 -0.15rem;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .lc-fbt-bundle__items::-webkit-scrollbar {
        display: none;
    }

    .lc-fbt-bundle__item {
        flex: 0 0 108px;
        width: 108px;
        max-width: 108px;
        scroll-snap-align: start;
    }

    .lc-fbt-bundle__image-link {
        margin-bottom: 0.4rem;
    }

    .lc-fbt-bundle__checkbox-wrap {
        top: 6px;
        right: 6px;
    }

    .lc-fbt-bundle__checkbox-wrap input {
        width: 20px;
        height: 20px;
    }

    .lc-fbt-bundle__item-title {
        font-size: 11px;
        line-height: 1.35;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        text-align: left;
    }

    .lc-fbt-bundle__item-prefix {
        font-size: 10px;
    }

    .lc-fbt-bundle__item-price {
        font-size: 13px;
        font-weight: 600;
        text-align: left;
    }

    .lc-fbt-bundle__item-unavailable {
        font-size: 10px;
        text-align: left;
    }

    .lc-fbt-bundle__summary {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        padding: 0.65rem 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .lc-fbt-bundle__total-label {
        font-size: 14px;
    }

    .lc-fbt-bundle__total-price {
        font-size: 20px;
    }

    .lc-fbt-bundle__total-price del {
        display: inline;
        font-size: 14px;
        margin-right: 0.35rem;
    }

    .lc-fbt-bundle__save {
        font-size: 13px;
        margin-bottom: 0.65rem;
    }

    .lc-fbt-bundle__button {
        font-size: 14px;
        padding: 0.65rem 1rem;
        min-height: 44px;
    }

    .lc-fbt-bundle--slots-2 .lc-fbt-bundle__items,
    .lc-fbt-bundle--slots-3 .lc-fbt-bundle__items {
        scroll-snap-type: none;
        margin: 0;
    }

    .lc-fbt-bundle--slots-2 .lc-fbt-bundle__item,
    .lc-fbt-bundle--slots-3 .lc-fbt-bundle__item {
        scroll-snap-align: unset;
    }
}

@media (min-width: 850px) {
    .lc-fbt-bundle__inner {
        align-items: stretch;
    }

    .lc-fbt-bundle--slots-2 .lc-fbt-bundle__items,
    .lc-fbt-bundle--slots-3 .lc-fbt-bundle__items {
        flex: 1 1 auto;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .lc-fbt-bundle--slots-2 .lc-fbt-bundle__summary,
    .lc-fbt-bundle--slots-3 .lc-fbt-bundle__summary {
        align-self: center;
    }

    .product-footer .lc-fbt-bundle:not(.lc-fbt-bundle--slots-2):not(.lc-fbt-bundle--slots-3) .lc-fbt-bundle__item {
        flex: 0 0 120px;
        width: 120px;
        max-width: 120px;
    }

    .product-footer .lc-fbt-bundle--slots-2 .lc-fbt-bundle__item,
    .product-footer .lc-fbt-bundle--slots-3 .lc-fbt-bundle__item {
        flex: none;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .product-footer .lc-fbt-bundle__summary {
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
        min-width: 220px;
    }
}
