.bundle-products__wrapper {
    clear: both;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px;
    margin: 25px 0 20px;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
}

.bundle-products__wrapper h4 {
    margin: 6px 0 20px;
    font-size: 20px;
    font-weight: 500;
}

.bundle-products__list-container {
    position: relative;
    overflow: visible;
}

.bundle-products__list-items {
    width: 100%;
    min-width: 0;
}

.bundle-products__header,
.bundle-products__item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(32px, .5fr);
    gap: 10px;
    align-items: center;
    text-align: center;
}

.bundle-products__header > *,
.bundle-products__item > * {
    min-width: 0;
}

.bundle-products__header {
    color: #7e7e7e;
    font-size: 11px;
    font-weight: 400;
}

.bundle-products__header > div:first-child,
.bundle-products__item > div:first-child {
    text-align: left;
}

.bundle-products__item {
    padding: 12px 0;
    border-top: 1px solid #e7e7e7;
}

.bundle-products__item > a {
    color: inherit;
    text-decoration: none;
}

.bundle-products__item > a:hover,
.bundle-products__item > a:focus {
    color: #f18300;
    text-decoration: none;
}

.bundle-products__info {
    display: flex;
    width: auto;
    max-width: 100%;
    align-items: center;
    text-align: left;
}

.bundle-products__image {
    display: flex;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.bundle-products__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bundle-products__title,
.bundle-products__price,
.bundle-products__unit-price {
    font-weight: 600;
}

.bundle-products__discount span {
    display: inline-block;
    min-width: 42px;
    padding: 0 12px;
    border-radius: 50px;
    background: #ffead0;
    font-style: normal;
    line-height: 30px;
}

.bundle-products__unit-price {
    color: #f18300;
}

.bundle-products__action {
    display: flex;
    justify-content: center;
}

.bundle-products__add-to-cart {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    margin-left: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bundle-products__add-to-cart img {
    width: 24px;
    height: 24px;
}

.bundle-products__add-to-cart:hover,
.bundle-products__add-to-cart:focus {
    background: transparent;
}

.bundle-products__stock-badge,
.bundle-recommendation-modal__badge {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 4px;
    background: #d93025;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.bundle-recommendation-modal {
    display: none;
}

.bundle-recommendation-modal.is-visible {
    display: block;
}

.bundle-recommendation-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .55);
}

.bundle-recommendation-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}

.bundle-recommendation-modal__dialog h3 {
    margin: 0 34px 8px 0;
    color: #343434;
    font-size: 22px;
}

.bundle-recommendation-modal__intro {
    margin: 0 34px 18px 0;
    color: #5f5f5f;
    font-size: 14px;
}

.bundle-recommendation-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 32px;
    cursor: pointer;
}

.bundle-recommendation-modal__items {
    display: grid;
    gap: 12px;
}

.bundle-recommendation-modal__item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
}

.bundle-recommendation-modal__image {
    display: block;
    width: 82px;
    height: 82px;
}

.bundle-recommendation-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bundle-recommendation-modal__content {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.bundle-recommendation-modal__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bundle-recommendation-modal__tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bundle-recommendation-modal__tag--recommended {
    background: #fff2df;
    color: #c66700;
}

.bundle-recommendation-modal__tag--best-deal {
    background: #e7f6ef;
    color: #087443;
}

.bundle-recommendation-modal__title {
    color: #343434;
    font-size: 15px;
    text-decoration: none;
}

.bundle-recommendation-modal__price {
    color: #f18300;
    font-size: 16px;
    font-weight: 600;
}

.bundle-recommendation-modal__unit-price {
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 600;
}

.bundle-recommendation-modal__actions {
    display: flex;
    justify-content: flex-end;
}

.bundle-recommendation-modal__add-to-cart {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #f18300;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .bundle-recommendation-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 18px;
    }

    .bundle-recommendation-modal__item {
        grid-template-columns: 68px 1fr;
        align-items: start;
    }

    .bundle-recommendation-modal__image {
        width: 68px;
        height: 68px;
    }

    .bundle-recommendation-modal__actions {
        grid-column: 1 / -1;
    }

    .bundle-recommendation-modal__add-to-cart {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .bundle-products__wrapper { padding: 8px; }
    .bundle-products__wrapper h4 { font-size: 18px; }
    .bundle-products__header,
    .bundle-products__item {
        grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) repeat(2, minmax(0, 1fr)) minmax(28px, .5fr);
        gap: 4px;
    }
    .bundle-products__header {
        font-size: 10px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .bundle-products__header > div:first-child { text-align: center; }
    .bundle-products__info {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .bundle-products__image { width: 32px; height: 32px; }
    .bundle-products__title,
    .bundle-products__price,
    .bundle-products__unit-price {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .bundle-products__discount span {
        min-width: 0;
        padding: 0 4px;
        font-size: 11px;
        line-height: 24px;
    }
    .bundle-products__stock-badge {
        padding: 4px 2px;
        font-size: 10px;
        overflow-wrap: anywhere;
    }
}
