.catalog-product-view .ht-bought-together {
    background: var(--ht-color-surface, #fff);
    border: 1px solid var(--ht-color-line, #d9dde3);
    border-radius: var(--ht-radius-lg, 16px);
    margin: 0 0 48px;
    padding: clamp(20px, 3vw, 32px);
}

.ht-bought-together__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ht-bought-together__header h2 {
    color: var(--ht-color-heading, #111313);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 700;
    margin: 0;
}

.ht-bought-together__offer-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    min-block-size: 44px;
}

.ht-bought-together__offer-choice {
    accent-color: var(--ht-color-primary, #d71920);
    inline-size: 20px;
    block-size: 20px;
    margin: 0;
}

.ht-bought-together__offer-badge {
    background: var(--ht-color-primary-soft, #fff0f1);
    border-radius: 999px;
    color: var(--ht-color-primary, #d71920);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.ht-bought-together__products {
    align-items: stretch;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: inline mandatory;
}

.ht-bought-together__product {
    background: var(--ht-color-page, #fff);
    border: 1px solid var(--ht-color-line, #d9dde3);
    border-radius: var(--ht-radius-md, 12px);
    flex: 0 0 min(220px, 72vw);
    min-height: 310px;
    padding: 16px;
    position: relative;
    scroll-snap-align: start;
}

.ht-bought-together__product.is-base {
    background: var(--ht-color-soft-accent, #f6f7f9);
}

.ht-bought-together__checkbox {
    height: 22px;
    inset-inline-end: 14px;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 14px;
    width: 22px;
    z-index: 2;
}

.ht-bought-together__check-label,
.ht-bought-together__selected {
    align-items: center;
    background: #fff;
    border: 2px solid var(--ht-color-strong-line, #b7bdc6);
    border-radius: 4px;
    color: #fff;
    display: flex;
    height: 22px;
    inset-inline-end: 14px;
    justify-content: center;
    position: absolute;
    top: 14px;
    width: 22px;
    z-index: 1;
}

.ht-bought-together__check-label .visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.ht-bought-together__checkbox:checked + .ht-bought-together__check-label,
.ht-bought-together__selected {
    background: var(--ht-color-primary, #d71920);
    border-color: var(--ht-color-primary, #d71920);
}

.ht-bought-together__checkbox:checked + .ht-bought-together__check-label::before {
    content: "✓";
    font-size: 14px;
    font-weight: 800;
}

.ht-bought-together__checkbox:focus-visible + .ht-bought-together__check-label {
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .18);
}

.ht-bought-together__image {
    align-items: center;
    display: flex;
    height: 150px;
    justify-content: center;
    margin-bottom: 14px;
}

.ht-bought-together__image .product-image-container,
.ht-bought-together__image .product-image-wrapper {
    max-height: 100%;
    width: 100% !important;
}

.ht-bought-together__image img {
    height: 145px;
    object-fit: contain;
    width: 100%;
}

.ht-bought-together__product-content h3 {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0 0 10px;
    min-height: 44px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ht-bought-together__product-content h3 a {
    color: var(--ht-color-heading, #111313);
}

.ht-bought-together__base-label {
    color: var(--ht-color-muted, #5f646b);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ht-bought-together__prices {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ht-bought-together__price {
    color: var(--ht-color-primary, #d71920);
    font-size: 16px;
    font-weight: 800;
}

.ht-bought-together__old-price {
    color: var(--ht-color-muted, #5f646b);
    font-size: 12px;
    text-decoration: line-through;
}

.ht-bought-together__choose {
    color: var(--ht-color-primary, #d71920);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.ht-bought-together__plus {
    align-self: center;
    color: var(--ht-color-muted, #5f646b);
    flex: 0 0 auto;
    font-size: 27px;
    font-weight: 400;
}

.ht-bought-together__summary {
    align-items: center;
    border-top: 1px solid var(--ht-color-line, #d9dde3);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(180px, 1fr) auto;
    margin-top: 12px;
    padding-top: 22px;
}

.ht-bought-together__summary > div:first-child {
    display: grid;
    gap: 3px;
}

.ht-bought-together__summary > div:first-child > span:first-child {
    color: var(--ht-color-muted, #5f646b);
    font-size: 13px;
}

.ht-bought-together__summary [data-role="total"] {
    color: var(--ht-color-heading, #111313);
    font-size: 22px;
    font-weight: 800;
}

.ht-bought-together__saving {
    color: var(--ht-color-success, #1f7a3d);
    font-size: 13px;
    font-weight: 700;
}

.ht-bought-together__add.action.primary {
    border-radius: var(--ht-radius-sm, 8px);
    min-height: 44px;
    min-width: 250px;
}

.ht-bought-together__status {
    color: var(--ht-color-muted, #5f646b);
    font-size: 13px;
    grid-column: 1 / -1;
    min-height: 20px;
}

.ht-bought-together__status.is-error {
    color: var(--ht-color-error, #b42318);
}

@media (max-width: 767px) {
    .catalog-product-view .ht-bought-together {
        border-radius: 12px;
        margin-bottom: 32px;
        padding: 18px 14px;
    }

    .ht-bought-together__products {
        gap: 10px;
    }

    .ht-bought-together__product {
        flex-basis: min(190px, 78vw);
        min-height: 290px;
        padding: 14px;
    }

    .ht-bought-together__plus {
        font-size: 22px;
    }

    .ht-bought-together__summary {
        grid-template-columns: 1fr;
    }

    .ht-bought-together__add.action.primary {
        min-width: 0;
        width: 100%;
    }
}
