.hnnp-combo {
    --combo-primary: #2b5acd;
    --combo-primary-soft: #eef4ff;
    --combo-border: #e2e5eb;
    --combo-text: #1d1d20;
    --combo-muted: #71717a;
    color: var(--combo-text);
    container-type: inline-size;
    margin: 24px auto;
    max-width: 1200px;
}

.hnnp-combo *,
.hnnp-combo-modal,
.hnnp-combo-modal *,
.hnnp-combo *::before,
.hnnp-combo-modal::before,
.hnnp-combo-modal *::before,
.hnnp-combo *::after,
.hnnp-combo-modal::after,
.hnnp-combo-modal *::after {
    box-sizing: border-box;
}

.hnnp-combo button,
.hnnp-combo input,
.hnnp-combo select,
.hnnp-combo-modal button,
.hnnp-combo-modal input,
.hnnp-combo-modal select {
    font: inherit;
}

.hnnp-combo__header,
.hnnp-combo__toolbar,
.hnnp-combo__bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hnnp-combo__header {
    background: linear-gradient(120deg, #f4f7ff, #fff);
    border: 1px solid var(--combo-border);
    border-radius: 14px;
    gap: 24px;
    padding: 24px;
}

.hnnp-combo__header h1 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    margin: 0 0 8px;
}

.hnnp-combo__header p,
.hnnp-combo__bottom p {
    color: var(--combo-muted);
    margin: 0;
}

.hnnp-combo__estimate {
    flex: 0 0 auto;
    text-align: right;
}

.hnnp-combo__estimate span,
.hnnp-combo__bottom span {
    color: var(--combo-muted);
    display: block;
    font-size: 13px;
}

.hnnp-combo__estimate strong,
.hnnp-combo__bottom strong {
    color: #e11d2e;
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.hnnp-combo__bottom .hnnp-combo__saving-total {
    color: #16803a;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
}

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

.hnnp-combo__bottom .hnnp-combo__saving-total b {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}

.hnnp-combo__toolbar {
    margin: 16px 0;
}

.hnnp-combo__reset,
.hnnp-combo__choose {
    align-items: center;
    background: var(--combo-primary);
    border: 1px solid var(--combo-primary);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    white-space: normal;
}

.hnnp-combo__reset {
    background: #fff;
    color: var(--combo-primary);
}

.hnnp-combo__summary {
    color: var(--combo-muted);
    font-size: 14px;
}

.hnnp-combo__sections {
    counter-reset: hnnpComboGroup;
}

.hnnp-combo__section {
    border: 1px solid var(--combo-border);
    border-radius: 12px;
    margin: 14px 0;
    overflow: hidden;
}

.hnnp-combo__section > h2 {
    background: #f6f7f9;
    border-bottom: 1px solid var(--combo-border);
    font-size: 17px;
    margin: 0;
    padding: 13px 16px;
}

.hnnp-combo__group {
    align-items: center;
    border-bottom: 1px solid var(--combo-border);
    counter-increment: hnnpComboGroup;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(170px, 0.7fr) minmax(340px, 2fr) minmax(170px, auto);
    min-height: 76px;
    padding: 12px 16px;
}

.hnnp-combo__group > * {
    min-width: 0;
}

.hnnp-combo__group:last-child {
    border-bottom: 0;
}

.hnnp-combo__group-name strong,
.hnnp-combo__group-name span {
    display: block;
}

.hnnp-combo__group-name span {
    color: var(--combo-muted);
    font-size: 12px;
    margin-top: 4px;
}

.hnnp-combo__selected {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hnnp-combo-product {
    align-items: center;
    background: #fafafa;
    border: 1px solid #eceef2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 54px minmax(0, 1fr) auto 30px;
    padding: 7px;
}

.hnnp-combo-product__image {
    background: #fff;
    border-radius: 5px;
    height: 54px;
    object-fit: contain;
    width: 54px;
}

.hnnp-combo-product__info {
    min-width: 0;
}

.hnnp-combo-product__info > * {
    display: block;
}

.hnnp-combo-product__name {
    color: var(--combo-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hnnp-combo-product__info small {
    color: var(--combo-muted);
    font-size: 11px;
}

.hnnp-combo-product__info strong {
    color: #e11d2e;
    font-size: 13px;
}

.hnnp-combo-product__price {
    align-items: baseline;
    display: flex !important;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin-top: 2px;
}

.hnnp-combo-product__price del {
    color: var(--combo-muted);
    font-size: 10px;
}

.hnnp-combo-product__price em {
    color: #16803a;
    flex-basis: 100%;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.hnnp-combo-product__quantity {
    border: 1px solid var(--combo-border);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}

.hnnp-combo-product__quantity button,
.hnnp-combo-product__quantity input,
.hnnp-combo-product__remove {
    background: #fff;
    border: 0;
    height: 30px;
    text-align: center;
}

.hnnp-combo-product__quantity button {
    cursor: pointer;
    width: 28px;
}

.hnnp-combo-product__quantity input {
    appearance: textfield;
    border-left: 1px solid var(--combo-border);
    border-right: 1px solid var(--combo-border);
    padding: 0;
    width: 34px;
}

.hnnp-combo .hnnp-combo-product__quantity input[type="number"] {
    border-bottom: 0;
    border-radius: 0;
    border-top: 0;
    box-shadow: none;
    height: 30px;
    line-height: 30px;
    margin: 0;
    max-width: 34px;
    min-height: 30px;
    min-width: 34px;
    padding: 0;
    width: 34px;
}

.hnnp-combo .hnnp-combo-product__quantity input[type="number"]:focus,
.hnnp-combo .hnnp-combo-product__quantity input[type="number"]:focus-visible {
    border-left-color: var(--combo-border);
    border-right-color: var(--combo-border);
    box-shadow: none !important;
    caret-color: transparent;
    outline: none !important;
}

.hnnp-combo-product__remove {
    color: #dc2626;
    cursor: pointer;
    font-size: 20px;
    width: 30px;
}

.hnnp-combo__bottom {
    border-top: 2px solid var(--combo-primary);
    gap: 24px;
    margin-top: 22px;
    padding: 18px 2px;
}

body.hnnp-combo-modal-open {
    overflow: hidden;
}

.hnnp-combo-modal[hidden] {
    display: none;
}

.hnnp-combo-modal {
    --combo-primary: #2b5acd;
    --combo-primary-soft: #eef4ff;
    --combo-border: #e2e5eb;
    --combo-text: #1d1d20;
    --combo-muted: #71717a;
    color: var(--combo-text);
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.hnnp-combo-modal label {
    align-content: normal;
    align-items: center;
    float: none;
    margin: 0;
    max-width: none;
    width: auto;
}

.hnnp-combo-modal label span {
    line-height: 1.35;
}

.hnnp-combo-modal__backdrop {
    background: rgba(15, 23, 42, .64);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .18s ease;
}

.hnnp-combo-modal__dialog {
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: min(86vh, 820px);
    left: 50%;
    max-width: 1180px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -48%);
    transition: opacity .18s ease, transform .18s ease;
    width: calc(100% - 32px);
}

.hnnp-combo-modal.is-open .hnnp-combo-modal__backdrop,
.hnnp-combo-modal.is-open .hnnp-combo-modal__dialog {
    opacity: 1;
}

.hnnp-combo-modal.is-open .hnnp-combo-modal__dialog {
    transform: translate(-50%, -50%);
}

.hnnp-combo-modal__header {
    align-items: center;
    background: var(--combo-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

.hnnp-combo-modal__header span {
    font-size: 12px;
    opacity: .85;
}

.hnnp-combo-modal__header h2 {
    color: #fff;
    font-size: 19px;
    margin: 1px 0 0;
}

.hnnp-combo-modal__close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    height: 40px;
    line-height: 1;
    width: 40px;
}

.hnnp-combo-modal__searchbar {
    align-items: center;
    border-bottom: 1px solid var(--combo-border);
    display: flex;
    gap: 14px;
    padding: 10px 14px;
}

.hnnp-combo-modal__search {
    border: 1px solid #cdd2dc;
    border-radius: 7px;
    display: flex;
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
    width: auto;
}

.hnnp-combo-modal .hnnp-combo-modal__search input[type="search"] {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 7px 0 0 7px;
    box-shadow: none;
    flex: 1 1 auto;
    height: 40px;
    line-height: 1.4;
    margin: 0;
    max-width: none;
    min-width: 0;
    min-height: 40px;
    outline: none;
    padding: 8px 12px;
    width: 100%;
}

.hnnp-combo-modal__search > span:last-child {
    align-items: center;
    color: var(--combo-primary);
    display: flex;
    flex: 0 0 46px;
    font-size: 26px;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hnnp-combo-modal__sort {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0;
    max-width: none;
    width: auto;
    white-space: nowrap;
}

.hnnp-combo-modal .hnnp-combo-modal__sort select {
    appearance: auto;
    background-color: #fff;
    background-image: none !important;
    box-shadow: none;
    border: 1px solid #cdd2dc;
    border-radius: 7px;
    height: 40px;
    margin: 0;
    max-width: none;
    min-height: 40px;
    padding: 5px 30px 5px 9px;
    width: auto;
}

.hnnp-combo-modal__body {
    display: grid;
    flex: 1;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 0;
}

.hnnp-combo-modal__filters {
    border-right: 1px solid var(--combo-border);
    overflow-y: auto;
    padding: 12px;
}

.hnnp-combo-modal__filter-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.hnnp-combo-modal__filter-head button {
    background: none;
    border: 0;
    color: var(--combo-primary);
    cursor: pointer;
    font-size: 12px;
}

.hnnp-combo-modal__filter-close {
    display: none;
}

.hnnp-combo-filter-group {
    border: 0;
    border-bottom: 1px solid var(--combo-border);
    margin: 0;
    padding: 13px 0;
}

.hnnp-combo-filter-group legend,
.hnnp-combo-filter-group summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.hnnp-combo-filter-options {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hnnp-combo-filter-chip {
    background: #fff;
    border: 1px solid #d7dae0;
    border-radius: 6px;
    color: var(--combo-text);
    cursor: pointer;
    font-size: 11px;
    min-height: 34px;
    padding: 5px;
}

.hnnp-combo-filter-chip.active {
    background: var(--combo-primary-soft);
    border-color: var(--combo-primary);
    color: var(--combo-primary);
}

.hnnp-combo-filter-check {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    font-size: 11px;
    gap: 5px;
    line-height: 1.3;
    margin: 0;
    max-width: none;
    width: auto;
}

.hnnp-combo-modal .hnnp-combo-filter-check input[type="checkbox"] {
    accent-color: var(--combo-primary);
    appearance: auto;
    flex: 0 0 auto;
    margin: 1px 0 0;
    min-height: 0;
    min-width: 0;
    padding: 0;
    width: auto;
}

.hnnp-combo-filter-empty {
    color: var(--combo-muted);
    font-size: 13px;
}

.hnnp-combo-modal__results {
    overflow-y: auto;
    padding: 12px 14px 18px;
}

.hnnp-combo-modal__result-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 32px;
}

.hnnp-combo-modal__result-head > span {
    color: var(--combo-muted);
    font-size: 13px;
}

.hnnp-combo-modal__mobile-filter {
    align-items: center;
    background: #fff;
    border: 1px solid var(--combo-border);
    border-radius: 6px;
    color: var(--combo-primary);
    display: none;
    gap: 5px;
    padding: 6px 9px;
}

.hnnp-combo-modal__products {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

.hnnp-combo-card {
    border: 1px solid var(--combo-border);
    border-radius: 9px;
    display: grid;
    gap: 10px;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 170px;
    overflow: hidden;
    padding: 10px;
}

.hnnp-combo-card__media {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.hnnp-combo-card__media img {
    height: 120px;
    object-fit: contain;
    width: 120px;
}

.hnnp-combo-card__discount {
    background: #e11d2e;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    left: 0;
    padding: 3px 5px;
    position: absolute;
    top: 0;
}

.hnnp-combo-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hnnp-combo-card__title {
    color: var(--combo-text);
    display: -webkit-box;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hnnp-combo-card__sku,
.hnnp-combo-card__stock {
    color: var(--combo-muted);
    font-size: 11px;
    margin-top: 4px;
}

.hnnp-combo-card__stock {
    color: #16803a;
}

.hnnp-combo-card__price {
    color: #e11d2e;
    font-size: 15px;
    font-weight: 700;
    margin: 5px 0;
}

.hnnp-combo-card__price del {
    color: var(--combo-muted);
    font-size: 11px;
    font-weight: 400;
}

.hnnp-combo-card__price ins {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.hnnp-combo-card__combo-offer {
    color: #16803a;
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 3px;
}

.hnnp-combo-card__add {
    background: var(--combo-primary);
    border: 1px solid var(--combo-primary);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    min-height: 34px;
    padding: 6px 9px;
}

.hnnp-combo-card__add.is-selected {
    background: var(--combo-primary-soft);
    color: var(--combo-primary);
}

.hnnp-combo-modal__loading,
.hnnp-combo-modal__empty {
    color: var(--combo-muted);
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

.hnnp-combo-modal__pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding-top: 18px;
}

.hnnp-combo-modal__pagination button {
    background: #fff;
    border: 1px solid var(--combo-border);
    border-radius: 5px;
    cursor: pointer;
    height: 34px;
    width: 34px;
}

.hnnp-combo-modal__pagination button.active {
    background: var(--combo-primary);
    border-color: var(--combo-primary);
    color: #fff;
}

@media (max-width: 767px) {
    .hnnp-combo {
        margin: 12px 0;
        width: 100%;
    }

    .hnnp-combo__header {
        align-items: flex-start;
        border-radius: 10px;
        display: block;
        padding: 16px;
    }

    .hnnp-combo__header h1 {
        font-size: 23px;
    }

    .hnnp-combo__estimate {
        border-top: 1px solid var(--combo-border);
        margin-top: 14px;
        padding-top: 12px;
        text-align: left;
    }

    .hnnp-combo__group {
        align-items: stretch;
        gap: 10px;
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .hnnp-combo__choose {
        width: 100%;
    }

    .hnnp-combo-product {
        grid-template-columns: 48px minmax(0, 1fr) 28px;
    }

    .hnnp-combo-product__image {
        height: 48px;
        width: 48px;
    }

    .hnnp-combo-product__quantity {
        grid-column: 2 / 3;
        width: max-content;
    }

    .hnnp-combo-product__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .hnnp-combo__bottom {
        align-items: flex-start;
        display: block;
    }

    .hnnp-combo__bottom p {
        font-size: 12px;
        margin-top: 10px;
    }

    .hnnp-combo-modal__dialog {
        border-radius: 0;
        height: 100%;
        left: 0;
        max-width: none;
        top: 0;
        transform: translateY(12px);
        width: 100%;
    }

    .hnnp-combo-modal.is-open .hnnp-combo-modal__dialog {
        transform: translateY(0);
    }

    .hnnp-combo-modal__searchbar {
        align-items: stretch;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px;
    }

    .hnnp-combo-modal__sort {
        display: block;
    }

    .hnnp-combo-modal__sort > span {
        display: none;
    }

    .hnnp-combo-modal__sort select {
        max-width: 136px;
        width: 136px;
    }

    .hnnp-combo-modal__body {
        display: block;
        min-height: 0;
        position: relative;
    }

    .hnnp-combo-modal__filters {
        background: #fff;
        border: 0;
        bottom: 0;
        box-shadow: 8px 0 24px rgba(15, 23, 42, .18);
        left: 0;
        max-width: 330px;
        position: absolute;
        top: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        width: 88%;
        z-index: 3;
    }

    .hnnp-combo-modal__filters.is-mobile-open {
        transform: translateX(0);
    }

    .hnnp-combo-modal__filter-close {
        color: var(--combo-text) !important;
        display: inline-block;
        font-size: 24px !important;
        line-height: 1;
        padding: 2px 4px;
    }

    .hnnp-combo-modal__results {
        height: 100%;
        padding: 8px 9px 18px;
    }

    .hnnp-combo-modal__mobile-filter {
        display: inline-flex;
    }

    .hnnp-combo-modal__products {
        grid-template-columns: 1fr;
    }

    .hnnp-combo-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 150px;
        padding: 8px;
    }

    .hnnp-combo-card__media img {
        height: 104px;
        width: 104px;
    }
}

@container (max-width: 760px) {
    .hnnp-combo__group {
        align-items: stretch;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr);
        padding: 13px;
    }

    .hnnp-combo__choose {
        justify-self: stretch;
        width: 100%;
    }

    .hnnp-combo__bottom {
        align-items: flex-start;
        display: block;
    }

    .hnnp-combo__bottom p {
        margin-top: 10px;
    }
}

/* ============================================================
   HNNP Combo - UI polish và khóa giao diện khỏi CSS của theme
   ============================================================ */
.hnnp-combo {
    font-size: 14px;
}

.hnnp-combo__toolbar {
    background: #fff;
    border: 1px solid var(--combo-border);
    border-radius: 10px;
    gap: 16px;
    padding: 10px 12px;
}

.hnnp-combo__progress {
    align-items: flex-end;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hnnp-combo__progress-track {
    background: #e9edf5;
    border-radius: 999px;
    display: block;
    height: 5px;
    max-width: 280px;
    overflow: hidden;
    width: 100%;
}

.hnnp-combo__progress-track > span {
    background: linear-gradient(90deg, #2b5acd, #4b7bec);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .3s ease;
    width: 0;
}

.hnnp-combo__section {
    background: #fff;
    box-shadow: 0 2px 10px rgba(26, 44, 82, .035);
}

.hnnp-combo__section > h2 {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hnnp-combo__section > h2 small {
    background: #e9edf5;
    border-radius: 999px;
    color: #626b7b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 9px;
}

.hnnp-combo__section.has-selection > h2 small {
    background: var(--combo-primary-soft);
    color: var(--combo-primary);
}

.hnnp-combo__group {
    position: relative;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.hnnp-combo__group:hover {
    background: #fbfcff;
    box-shadow: inset 3px 0 0 #cbd8f8;
}

.hnnp-combo__group.has-selection {
    background: #fcfdff;
    box-shadow: none;
}

.hnnp-combo__group-name {
    padding-left: 34px;
    position: relative;
}

.hnnp-combo__group-name::before {
    align-items: center;
    background: #f0f2f6;
    border: 1px solid #dce1ea;
    border-radius: 9px;
    color: #7a8392;
    content: counter(hnnpComboGroup);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 1px;
    transition: all .2s ease;
    width: 26px;
}

.hnnp-combo__group.has-selection .hnnp-combo__group-name::before {
    background: var(--combo-primary);
    border-color: var(--combo-primary);
    color: #fff;
    content: counter(hnnpComboGroup);
    font-size: 12px;
}

.hnnp-combo-product {
    animation: hnnpComboItemIn .2s ease both;
    background: #fff;
    border-color: #dfe5f0;
    box-shadow: 0 2px 8px rgba(33, 55, 99, .05);
}

.hnnp-combo-product__name:hover,
.hnnp-combo-card__title:hover {
    color: var(--combo-primary);
}

body .hnnp-combo button.hnnp-combo__choose,
body .hnnp-combo button.hnnp-combo__reset,
body .hnnp-combo-modal button.hnnp-combo-card__add,
body .hnnp-combo-modal button[data-combo-done] {
    box-shadow: none !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

body .hnnp-combo button.hnnp-combo__choose {
    background-color: #2b5acd !important;
    border-color: #2b5acd !important;
    color: #fff !important;
}

body .hnnp-combo button.hnnp-combo__choose:hover {
    background-color: #204bac !important;
    border-color: #204bac !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body .hnnp-combo .hnnp-combo__group.has-selection button.hnnp-combo__choose {
    background-color: #eef4ff !important;
    border-color: #b9caf3 !important;
    color: #2b5acd !important;
}

body .hnnp-combo .hnnp-combo__group.has-selection button.hnnp-combo__choose:hover {
    background-color: #dfe9ff !important;
    border-color: #8facf0 !important;
    color: #204bac !important;
}

body .hnnp-combo button.hnnp-combo__reset {
    background-color: #fff !important;
    border-color: #cfd6e2 !important;
    color: #3f4a5a !important;
}

body .hnnp-combo button.hnnp-combo__reset:hover {
    background-color: #f5f7fa !important;
    border-color: #aeb8c8 !important;
    color: #1d1d20 !important;
}

body .hnnp-combo .hnnp-combo-product__quantity button {
    background-color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #344054 !important;
    line-height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    min-width: 28px !important;
    padding: 0 !important;
}

body .hnnp-combo .hnnp-combo-product__quantity button:hover {
    background-color: #eef4ff !important;
    color: #2b5acd !important;
}

body .hnnp-combo button.hnnp-combo-product__remove {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #c92a3a !important;
    line-height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
}

body .hnnp-combo button.hnnp-combo-product__remove:hover {
    background-color: #fff0f1 !important;
    color: #a71928 !important;
}

.hnnp-combo button:focus-visible,
.hnnp-combo a:focus-visible,
.hnnp-combo input:focus-visible,
.hnnp-combo select:focus-visible,
.hnnp-combo-modal button:focus-visible,
.hnnp-combo-modal a:focus-visible,
.hnnp-combo-modal input:focus-visible,
.hnnp-combo-modal select:focus-visible {
    outline: 3px solid rgba(43, 90, 205, .22) !important;
    outline-offset: 2px;
}

.hnnp-combo-modal__dialog {
    box-shadow: 0 24px 70px rgba(7, 17, 38, .3);
}

.hnnp-combo-modal__header {
    min-height: 64px;
}

body .hnnp-combo-modal button.hnnp-combo-modal__close {
    align-items: center;
    background-color: rgba(13, 48, 133, .36) !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #fff !important;
    display: flex;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .hnnp-combo-modal button.hnnp-combo-modal__close:hover {
    background-color: rgba(8, 35, 102, .62) !important;
}

.hnnp-combo-modal__searchbar {
    background: #fbfcfe;
    min-height: 62px;
}

.hnnp-combo-modal__search:focus-within {
    border-color: var(--combo-primary);
    box-shadow: 0 0 0 3px rgba(43, 90, 205, .1);
}

.hnnp-combo-modal__filters {
    background: #fbfcfe;
    scrollbar-color: #bdc5d2 transparent;
    scrollbar-width: thin;
}

body .hnnp-combo-modal button[data-filter-clear] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #2b5acd !important;
    margin: 0 !important;
    min-height: 28px !important;
    padding: 2px 5px !important;
}

body .hnnp-combo-modal button.hnnp-combo-filter-chip {
    background-color: #fff !important;
    border-color: #d7dae0 !important;
    box-shadow: none !important;
    color: #1d1d20 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 5px !important;
    text-transform: none !important;
}

body .hnnp-combo-modal button.hnnp-combo-filter-chip:hover,
body .hnnp-combo-modal button.hnnp-combo-filter-chip.active {
    background-color: #eef4ff !important;
    border-color: #2b5acd !important;
    color: #2b5acd !important;
}

.hnnp-combo-modal__result-head {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #edf0f5;
    margin: -12px -14px 8px;
    padding: 10px 14px 8px;
    position: sticky;
    top: -12px;
    z-index: 2;
}

body .hnnp-combo-modal button.hnnp-combo-modal__mobile-filter {
    background-color: #fff !important;
    border-color: #cfd6e2 !important;
    box-shadow: none !important;
    color: #2b5acd !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    text-transform: none !important;
}

.hnnp-combo-card {
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hnnp-combo-card:hover {
    border-color: #b9caf3;
    box-shadow: 0 8px 22px rgba(33, 55, 99, .09);
    transform: translateY(-1px);
}

body .hnnp-combo-modal button.hnnp-combo-card__add {
    background-color: #2b5acd !important;
    border-color: #2b5acd !important;
    color: #fff !important;
}

body .hnnp-combo-modal button.hnnp-combo-card__add:hover {
    background-color: #204bac !important;
    border-color: #204bac !important;
    color: #fff !important;
}

body .hnnp-combo-modal button.hnnp-combo-card__add.is-selected {
    background-color: #edf7f1 !important;
    border-color: #98d5ae !important;
    color: #18713a !important;
}

.hnnp-combo-modal__footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--combo-border);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 14px;
}

.hnnp-combo-modal__footer > span {
    color: var(--combo-muted);
    font-size: 13px;
}

body .hnnp-combo-modal button[data-combo-done] {
    background-color: #2b5acd !important;
    border: 1px solid #2b5acd !important;
    border-radius: 7px !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 700 !important;
    min-height: 40px;
    padding: 8px 18px !important;
}

body .hnnp-combo-modal button[data-combo-done]:hover {
    background-color: #204bac !important;
    border-color: #204bac !important;
    color: #fff !important;
}

body .hnnp-combo-modal .hnnp-combo-modal__pagination button {
    background-color: #fff !important;
    border-color: #d7dce5 !important;
    box-shadow: none !important;
    color: #344054 !important;
    line-height: 32px !important;
    margin: 0 !important;
    min-height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
}

body .hnnp-combo-modal .hnnp-combo-modal__pagination button:hover,
body .hnnp-combo-modal .hnnp-combo-modal__pagination button.active {
    background-color: #2b5acd !important;
    border-color: #2b5acd !important;
    color: #fff !important;
}

.hnnp-combo-card--skeleton {
    overflow: hidden;
    position: relative;
}

.hnnp-combo-card--skeleton::after {
    animation: hnnpComboShimmer 1.25s infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.hnnp-combo-card--skeleton > span {
    background: #edf0f5;
    border-radius: 7px;
    display: block;
    height: 120px;
    width: 120px;
}

.hnnp-combo-card--skeleton > div {
    background: linear-gradient(#edf0f5 0 0) 0 8px / 92% 13px no-repeat,
        linear-gradient(#edf0f5 0 0) 0 31px / 72% 11px no-repeat,
        linear-gradient(#edf0f5 0 0) 0 62px / 48% 15px no-repeat,
        linear-gradient(#e2e7ef 0 0) 0 105px / 100% 34px no-repeat;
    min-height: 140px;
}

@keyframes hnnpComboItemIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hnnpComboShimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 767px) {
    .hnnp-combo__toolbar {
        align-items: center;
        position: sticky;
        top: 6px;
        z-index: 8;
    }

    .hnnp-combo__progress {
        align-items: stretch;
    }

    .hnnp-combo__summary {
        font-size: 12px;
        text-align: right;
    }

    .hnnp-combo__progress-track {
        max-width: none;
    }

    .hnnp-combo-modal__footer {
        gap: 8px;
        min-height: 66px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .hnnp-combo-modal__footer > span {
        font-size: 11px;
        line-height: 1.3;
        max-width: 48%;
    }

    body .hnnp-combo-modal button[data-combo-done] {
        flex: 1;
        max-width: 190px;
    }

    .hnnp-combo-card:hover {
        transform: none;
    }

    .hnnp-combo-modal__result-head {
        margin: -8px -9px 8px;
        padding: 8px 9px;
        top: -8px;
    }
}

@media (max-width: 767px) {
    .hnnp-combo .hnnp-combo__group {
        align-items: center;
        gap: 8px;
        min-height: 68px;
        padding: 9px 10px;
    }

    .hnnp-combo .hnnp-combo__group:not(.has-selection) {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .hnnp-combo .hnnp-combo__group:not(.has-selection) .hnnp-combo__selected {
        display: none;
    }

    .hnnp-combo .hnnp-combo__group:not(.has-selection) .hnnp-combo__choose {
        grid-column: 2;
        min-height: 38px;
        padding: 7px 10px;
        width: 86px;
    }

    .hnnp-combo .hnnp-combo__group.has-selection {
        align-items: start;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
    }

    .hnnp-combo .hnnp-combo__group.has-selection .hnnp-combo__group-name {
        display: none;
    }

    .hnnp-combo .hnnp-combo__group.has-selection .hnnp-combo__selected {
        grid-column: 1;
        min-width: 0;
        width: 100%;
    }

    .hnnp-combo .hnnp-combo__group.has-selection .hnnp-combo__choose {
        align-self: stretch;
        flex-direction: row;
        gap: 4px;
        grid-column: 1;
        min-height: 40px;
        padding: 7px 12px;
        width: 100%;
    }

    .hnnp-combo .hnnp-combo__group.has-selection .hnnp-combo__choose [data-choose-label] {
        font-size: 0;
    }

    .hnnp-combo .hnnp-combo__group.has-selection .hnnp-combo__choose [data-choose-label]::after {
        content: "Thêm sản phẩm";
        font-size: 12px;
    }

    .hnnp-combo .hnnp-combo-product {
        align-items: start;
        gap: 7px 10px;
        grid-template-columns: 60px minmax(0, 1fr) 28px;
        grid-template-rows: auto auto;
        min-height: 88px;
        padding: 9px;
    }

    .hnnp-combo .hnnp-combo-product__image {
        grid-column: 1;
        grid-row: 1 / 3;
        height: 60px;
        margin-top: 2px;
        width: 60px;
    }

    .hnnp-combo .hnnp-combo-product__info {
        grid-column: 2;
        grid-row: 1;
    }

    .hnnp-combo .hnnp-combo-product__name {
        display: -webkit-box;
        font-size: 13px;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: initial;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .hnnp-combo .hnnp-combo-product__info small {
        display: none;
    }

    .hnnp-combo .hnnp-combo-product__info strong {
        font-size: 13px;
        margin-top: 3px;
    }

    .hnnp-combo .hnnp-combo-product__price {
        gap: 2px 7px;
    }

    .hnnp-combo .hnnp-combo-product__price del {
        font-size: 11px;
    }

    .hnnp-combo .hnnp-combo-product__price em {
        font-size: 11px;
        line-height: 1.3;
    }

    .hnnp-combo .hnnp-combo-product__quantity {
        grid-column: 2;
        grid-row: 2;
        width: 94px;
    }

    body .hnnp-combo .hnnp-combo-product__quantity button {
        min-width: 30px !important;
        width: 30px !important;
    }

    .hnnp-combo .hnnp-combo-product__quantity input[type="number"] {
        max-width: 34px;
        min-width: 34px;
        width: 34px;
    }

    body .hnnp-combo button.hnnp-combo-product__remove {
        align-self: start;
        grid-column: 3;
        grid-row: 1;
        min-width: 28px !important;
        width: 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hnnp-combo *,
    .hnnp-combo-modal * {
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Giao diện tĩnh: số thứ tự thuần văn bản, không hiệu ứng hover card. */
.hnnp-combo__group:hover,
.hnnp-combo__group.has-selection,
.hnnp-combo__group.has-selection:hover {
    box-shadow: none;
}

.hnnp-combo__group:hover {
    background: inherit;
}

.hnnp-combo__group-name {
    padding-left: 25px;
}

.hnnp-combo__group-name::before,
.hnnp-combo__group.has-selection .hnnp-combo__group-name::before {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    content: counter(hnnpComboGroup) ".";
    display: block;
    font-size: 12px;
    font-weight: 600;
    height: auto;
    line-height: 1.4;
    top: 1px;
    width: auto;
}

.hnnp-combo-card:hover {
    border-color: var(--combo-border);
    box-shadow: none;
    transform: none;
}

/* Không hiển thị focus ring xanh trên tìm kiếm và sắp xếp. */
.hnnp-combo-modal__search:focus-within {
    border-color: #cdd2dc;
    box-shadow: none;
}

.hnnp-combo-modal .hnnp-combo-modal__search input[type="search"]:focus,
.hnnp-combo-modal .hnnp-combo-modal__search input[type="search"]:focus-visible,
.hnnp-combo-modal .hnnp-combo-modal__sort select:focus,
.hnnp-combo-modal .hnnp-combo-modal__sort select:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Thanh thao tác cuối Combo. */
.hnnp-combo .hnnp-combo__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

body .hnnp-combo .hnnp-combo__actions button {
    align-items: center;
    background: #fff !important;
    border: 1px solid #2B5ACD !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #2B5ACD !important;
    display: flex;
    font-size: 14px !important;
    font-weight: 700 !important;
    gap: 7px;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 46px;
    padding: 10px 12px !important;
    text-transform: none !important;
}

.hnnp-combo .hnnp-combo__actions button > svg {
    color: inherit;
    flex: 0 0 19px;
    height: 19px;
    width: 19px;
}

.hnnp-combo .hnnp-combo__actions button > svg:not([fill="none"]) {
    fill: currentColor;
}

body .hnnp-combo .hnnp-combo__actions button.is-primary,
body .hnnp-combo .hnnp-combo__actions button.is-accent {
    background: #2B5ACD !important;
    color: #fff !important;
}

body .hnnp-combo .hnnp-combo__actions button.is-accent {
    background: #e78b22 !important;
    border-color: #e78b22 !important;
}

body .hnnp-combo .hnnp-combo__actions button:disabled {
    cursor: not-allowed !important;
    opacity: .48 !important;
}

/* Form thương lượng giá được đưa thẳng vào body để không dính overflow theme. */
.hnnp-combo-quote[hidden] {
    display: none !important;
}

.hnnp-combo-quote {
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .18s ease;
    visibility: hidden;
    z-index: 100000;
}

.hnnp-combo-quote.is-open {
    opacity: 1;
    visibility: visible;
}

.hnnp-combo-quote__backdrop {
    background: rgba(15, 23, 42, .58);
    inset: 0;
    position: absolute;
}

.hnnp-combo-quote__dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
    left: 50%;
    max-width: calc(100% - 30px);
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, calc(-50% + 15px));
    transition: transform .18s ease;
    width: 520px;
}

.hnnp-combo-quote.is-open .hnnp-combo-quote__dialog {
    transform: translate(-50%, -50%);
}

.hnnp-combo-quote__dialog > header {
    align-items: center;
    background: #2B5ACD;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 17px 20px;
}

.hnnp-combo-quote__dialog header small {
    display: block;
    font-size: 12px;
    opacity: .86;
}

.hnnp-combo-quote__dialog header h2 {
    color: #fff;
    font-size: 21px;
    margin: 2px 0 0;
}

body .hnnp-combo-quote__dialog header button {
    background: rgba(0, 0, 0, .12) !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 24px !important;
    height: 36px;
    min-width: 36px !important;
    padding: 0 !important;
    width: 36px;
}

.hnnp-combo-quote__dialog form {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 20px;
}

.hnnp-combo-quote__dialog form > label {
    align-items: initial !important;
    display: block !important;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
}

.hnnp-combo-quote__summary {
    background: #f3f6ff;
    border-left: 3px solid #2B5ACD;
    margin: 0;
    padding: 11px 13px;
}

.hnnp-combo-quote__summary strong {
    color: #e11d2e;
    font-size: 18px;
}

.hnnp-combo-quote__dialog label > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    height: auto !important;
    left: auto !important;
    line-height: 1.55 !important;
    margin-bottom: 6px;
    min-height: 20px;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
}

.hnnp-combo-quote__dialog label b {
    color: #e11d2e;
}

body .hnnp-combo-quote__dialog input,
body .hnnp-combo-quote__dialog textarea {
    background: #fff !important;
    border: 1px solid #cdd2dc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #111827 !important;
    font: inherit !important;
    margin: 0 !important;
    outline: none !important;
    padding: 10px 11px !important;
    resize: vertical;
    width: 100% !important;
}

.hnnp-combo-quote__status {
    display: none;
    font-size: 13px;
    margin: 0;
    padding: 10px 12px;
}

.hnnp-combo-quote__status.is-success,
.hnnp-combo-quote__status.is-error {
    display: block;
}

.hnnp-combo-quote__status.is-success {
    background: #ecfdf3;
    color: #166534;
}

.hnnp-combo-quote__status.is-error {
    background: #fff1f2;
    color: #b42318;
}

.hnnp-combo-quote__status a {
    color: #0878d1;
    font-weight: 700;
    text-decoration: underline;
}

.hnnp-combo-quote__buttons {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

body .hnnp-combo-quote__buttons button,
body .hnnp-combo-quote__buttons a {
    align-items: center;
    background: #2B5ACD !important;
    border: 1px solid #2B5ACD !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff !important;
    display: flex;
    font-size: 14px !important;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 44px;
    padding: 10px !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
}

body .hnnp-combo-quote__buttons button[type="submit"] {
    background: #2B5ACD !important;
    border-color: #2B5ACD !important;
    color: #fff !important;
}

body .hnnp-combo-quote__buttons a {
    background: #0878d1 !important;
    border-color: #0878d1 !important;
}

.hnnp-combo-toast {
    align-items: center;
    background: #101828;
    border-radius: 5px;
    bottom: 24px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
    color: #fff;
    display: flex;
    font-size: 14px;
    gap: 16px;
    left: 50%;
    max-width: calc(100% - 30px);
    opacity: 0;
    padding: 13px 16px;
    position: fixed;
    transform: translate(-50%, 12px);
    transition: .18s ease;
    z-index: 100001;
}

.hnnp-combo-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hnnp-combo-toast a {
    color: #8eb4ff;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hnnp-combo .hnnp-combo__actions {
        grid-template-columns: 1fr 1fr;
    }

    body .hnnp-combo .hnnp-combo__actions button {
        font-size: 12px !important;
        min-height: 44px;
        padding: 8px 6px !important;
    }

    .hnnp-combo-quote__dialog {
        border-radius: 12px 12px 0 0;
        bottom: 0;
        left: 0;
        max-height: 92vh;
        max-width: none;
        overflow: auto;
        top: auto;
        transform: translateY(30px);
        width: 100%;
    }

    .hnnp-combo-quote.is-open .hnnp-combo-quote__dialog {
        transform: translateY(0);
    }

    .hnnp-combo-quote__dialog form {
        padding: 16px;
    }
}
