.hnnp-product-combo {
    --upsell-brand: #2B5ACD;
    --upsell-accent: #2B5ACD;
    --upsell-border: #e1e3e7;
    background: #f6f6f7;
    border-radius: 12px;
    color: #1d1d20;
    margin: 16px 0;
    overflow: hidden;
    padding: 13px 10px 11px;
}

.hnnp-product-combo h2 {
    align-items: center;
    color: #1d1d20;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 5px;
    line-height: 1.35;
    margin: 0;
}

.hnnp-product-combo__header {
    margin: 0 0 10px;
}

.hnnp-product-combo__header p {
    color: #5f636b;
    font-size: 11px;
    line-height: 1.45;
    margin: 4px 0 0;
}

.hnnp-product-combo__header p strong {
    color: #2B5ACD;
    font-weight: 650;
}

.hnnp-product-combo__title-icon {
    display: block;
    flex: 0 0 18px;
    height: 18px;
    object-fit: contain;
    transform: translateY(-1px);
    width: 18px;
}

.hnnp-product-combo__viewport {
    position: relative;
}

.hnnp-product-combo__track {
    display: grid;
    gap: 10px 8px;
    grid-auto-columns: calc(50% - 4px);
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 108px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 1px 3px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

@media (min-width: 768px) {
    .hnnp-product-combo.has-few-items .hnnp-product-combo__track {
        grid-auto-columns: calc(50% - 4px);
        grid-template-rows: 108px;
    }

    .hnnp-product-combo.has-one-item .hnnp-product-combo__track {
        grid-auto-columns: 100%;
        grid-template-rows: 108px;
    }
}

.hnnp-product-combo__track::-webkit-scrollbar {
    display: none;
}

.hnnp-product-combo__card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--upsell-border);
    border-radius: 7px;
    box-shadow: none;
    display: grid;
    gap: 8px;
    grid-template-columns: 66px minmax(0, 1fr);
    min-width: 0;
    padding: 8px;
    scroll-snap-align: start;
}

.hnnp-product-combo__image {
    align-items: center;
    display: flex;
    height: 66px;
    justify-content: center;
    width: 66px;
}

.hnnp-product-combo__image img {
    height: 100%;
    margin: 0;
    object-fit: contain;
    width: 100%;
}

.hnnp-product-combo__info {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left !important;
}

.hnnp-product-combo__name {
    color: #1d1d20 !important;
    display: -webkit-box;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-align: left !important;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hnnp-product-combo__saving {
    align-items: center;
    color: #b54708;
    display: flex;
    font-size: 9px;
    font-weight: 600;
    gap: 2px;
    line-height: 1.25;
    margin-top: 2px;
}

.hnnp-product-combo__saving::before {
    content: "Mua kèm giảm";
}

.hnnp-product-combo__saving strong {
    color: inherit;
    font-size: inherit;
    white-space: nowrap;
}

.hnnp-product-combo__saving.is-applied {
    color: #16794b;
}

.hnnp-product-combo__saving.is-applied::before {
    content: "Đã giảm";
}

.hnnp-product-combo__saving.is-applied::after {
    content: "✓";
    font-size: 10px;
}

.hnnp-product-combo__saving .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.hnnp-product-combo__bottom {
    align-items: end;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: auto;
    min-width: 0;
    text-align: left !important;
}

.hnnp-product-combo__price {
    min-width: 0;
}

.hnnp-product-combo__price strong {
    color: var(--upsell-accent);
    display: block;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
}

.hnnp-product-combo__price del {
    color: #71717a;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.hnnp-product-combo__price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

body .hnnp-product-combo button.hnnp-product-combo__add {
    align-items: center;
    background: #edf3ff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--upsell-accent) !important;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 9px !important;
    font-weight: 500;
    gap: 2px;
    line-height: 1;
    min-height: 25px;
    min-width: 0 !important;
    padding: 5px 7px !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
}

body .hnnp-product-combo button.hnnp-product-combo__add span {
    font-size: 14px;
    line-height: 0;
}

body .hnnp-product-combo button.hnnp-product-combo__add.is-added {
    background: #eaf1ff !important;
    color: #1f52be !important;
    font-size: 9px !important;
    font-weight: 600;
}

body .hnnp-product-combo button.hnnp-product-combo__add:disabled {
    cursor: not-allowed;
    opacity: .68;
}

body .hnnp-product-combo button.hnnp-product-combo__prev,
body .hnnp-product-combo button.hnnp-product-combo__next {
    align-items: center;
    background: #fff !important;
    border: 1px solid #d9dce2 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(16, 24, 40, .12) !important;
    color: #50545c !important;
    display: flex;
    font-size: 23px !important;
    height: 25px;
    justify-content: center;
    min-width: 25px !important;
    padding: 0 0 2px !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    z-index: 2;
}

body .hnnp-product-combo button.hnnp-product-combo__prev {
    left: -5px;
}

body .hnnp-product-combo button.hnnp-product-combo__next {
    right: -5px;
}

body .hnnp-product-combo button.hnnp-product-combo__prev[hidden],
body .hnnp-product-combo button.hnnp-product-combo__next[hidden] {
    display: none !important;
}

.hnnp-product-combo__progress {
    background: #dedfe3;
    height: 2px;
    margin: 8px auto 7px;
    overflow: hidden;
    width: 26px;
}

.hnnp-product-combo__saving-total {
    background: #eaf7f0;
    border: 1px solid #c7ead7;
    border-radius: 7px;
    color: #16633f;
    font-size: 11px;
    line-height: 1.4;
    margin: 8px 1px 0;
    padding: 6px 8px;
    text-align: center;
}

.hnnp-product-combo__saving-total[hidden] {
    display: none !important;
}

.hnnp-product-combo__saving-total strong {
    color: #087443;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hnnp-product-combo__progress span {
    background: var(--upsell-accent);
    display: block;
    height: 100%;
    transform-origin: left center;
    width: 100%;
}

.hnnp-product-combo__all {
    color: var(--upsell-brand) !important;
    display: table;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto;
    text-align: center;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .hnnp-product-combo {
        border-radius: 11px;
        padding: 11px 8px 10px;
    }

    .hnnp-product-combo h2 {
        font-size: 13px;
    }

    .hnnp-product-combo__header {
        margin-bottom: 9px;
    }

    .hnnp-product-combo__header p {
        font-size: 10px;
        line-height: 1.4;
    }

    .hnnp-product-combo__saving-total {
        font-size: 10px;
        padding: 5px 7px;
    }

    .hnnp-product-combo__saving-total strong {
        font-size: 11px;
    }

    .hnnp-product-combo__track {
        gap: 8px;
        grid-auto-columns: 84%;
        grid-template-rows: repeat(2, 100px);
    }

    .hnnp-product-combo__card {
        gap: 7px;
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 7px;
    }

    .hnnp-product-combo__image {
        height: 58px;
        width: 58px;
    }

    .hnnp-product-combo__name {
        font-size: 10px;
    }

    .hnnp-product-combo__price strong {
        font-size: 12px;
    }

    body .hnnp-product-combo button.hnnp-product-combo__add {
        font-size: 9px;
        min-height: 23px;
        padding: 5px 7px !important;
    }
}
