.gio-hang-noi-bang,
.gio-hang-noi-bang * {
    box-sizing: border-box;
}

.gio-hang-noi-bang {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.gio-hang-noi-bang[hidden] {
    display: none;
}

body.gio-hang-noi-bang-dang-mo {
    overflow: hidden;
}

.gio-hang-noi-bang__hop {
    position: relative;
    width: min(1120px, calc(100vw - 48px));
    height: min(720px, calc(100dvh - 48px));
    min-height: 560px;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    color: #111111;
    outline: 0;
}

.gio-hang-noi-bang__cuon {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gio-hang-noi-bang__bo-cuc {
    display: grid;
    grid-template-columns: minmax(0, 61%) minmax(340px, 39%);
    width: 100%;
    height: 100%;
}

.gio-hang-noi-bang__dong {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f2f5;
    box-shadow: none;
    color: #4b5563;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    appearance: none;
}

.gio-hang-noi-bang__dong:hover,
.gio-hang-noi-bang__dong:focus-visible {
    background: #e5e7eb;
    color: #050505;
    outline: 0;
}

.gio-hang-noi-bang__dong:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.22);
}

.gio-hang-noi-bang__danh-sach {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 48px 38px 36px;
    background: #f6f7fb;
}

.gio-hang-noi-bang__thanh-dau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 32px;
    padding: 0 10px 0 38px;
}

.gio-hang-noi-bang__thanh-dau h2,
.gio-hang-noi-tom-tat h2 {
    margin: 0;
    color: #111111;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
    text-transform: none;
}

.gio-hang-noi-bang__chon-tat-ca,
.gio-hang-noi-dong__chon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111111;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.gio-hang-noi-bang__chon-tat-ca {
    align-self: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-height: 32px;
    color: #5f6368;
    white-space: nowrap;
}

.gio-hang-noi-bang__chon-tat-ca input,
.gio-hang-noi-dong__chon input {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    margin: 0;
    padding: 0;
    accent-color: #050505;
    box-shadow: none;
    cursor: pointer;
}

.gio-hang-noi-bang__cac-dong {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 18px 6px 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, 0.2) transparent;
}

.gio-hang-noi-bang__cac-dong[hidden] {
    display: none;
}

.gio-hang-noi-dong {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.gio-hang-noi-dong[hidden] {
    display: none;
}

.gio-hang-noi-dong__chon {
    justify-content: center;
}

.gio-hang-noi-bang__rong {
    display: grid;
    place-content: center;
    gap: 8px;
    min-height: 260px;
    color: #6b7280;
    text-align: center;
}

.gio-hang-noi-bang__rong[hidden] {
    display: none;
}

.gio-hang-noi-bang__rong strong {
    color: #111111;
    font-size: 17px;
}

.gio-hang-noi-bang__rong span {
    font-size: 14px;
}

.gio-hang-noi-bang__tom-tat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 48px 32px 32px;
    background: #ffffff;
    text-transform: none;
}

.gio-hang-noi-tom-tat {
    display: grid;
    gap: 18px;
    padding: 0 0 22px;
    border-bottom: 1px solid #d8dbe1;
}

.gio-hang-noi-tom-tat h2 {
    padding-right: 46px;
}

.gio-hang-noi-tom-tat dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.gio-hang-noi-tom-tat dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
}

.gio-hang-noi-tom-tat dt,
.gio-hang-noi-tom-tat dd {
    margin: 0;
    color: #23262b;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
}

.gio-hang-noi-tom-tat dd {
    max-width: 190px;
    color: #5f636b;
    text-align: right;
}

.gio-hang-noi-tom-tat__tong {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid #d8dbe1;
}

.gio-hang-noi-tom-tat__tong span {
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.gio-hang-noi-tom-tat__tong strong {
    color: #fb5b20;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.gio-hang-noi-tom-tat__vat {
    margin: -10px 0 0;
    color: #7a7f87;
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
    text-align: right;
}

.gio-hang-noi-voucher {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.gio-hang-noi-voucher > label {
    margin: 0;
    color: #111111;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

.gio-hang-noi-voucher > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.gio-hang-noi-voucher input,
.gio-hang-noi-voucher button {
    height: 44px;
    min-height: 44px;
    margin: 0;
    line-height: 1;
    appearance: none;
}

.gio-hang-noi-voucher input {
    min-width: 0;
    padding: 0 14px;
    border: 1px solid #9ca3af;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    color: #111111;
    font-size: 14px;
}

.gio-hang-noi-voucher input::placeholder {
    color: #7a7f87;
    font-size: 13px;
    opacity: 1;
}

.gio-hang-noi-voucher input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
    outline: 0;
}

.gio-hang-noi-voucher button {
    min-width: 92px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: #fb5b20;
    box-shadow: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
}

.gio-hang-noi-voucher button:hover,
.gio-hang-noi-voucher button:focus-visible {
    background: #e94d16;
    color: #ffffff;
    outline: 0;
}

.gio-hang-noi-bang__thong-bao {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.35;
}

.gio-hang-noi-bang__thong-bao[hidden] {
    display: none;
}

.gio-hang-noi-bang__tiep-tuc {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: auto 0 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    box-shadow: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1;
    text-transform: none;
    appearance: none;
}

.gio-hang-noi-bang__tiep-tuc:hover,
.gio-hang-noi-bang__tiep-tuc:focus-visible {
    background: #1d1d1f;
    color: #ffffff;
    outline: 0;
}

.gio-hang-noi-bang__tiep-tuc:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.26);
}

.gio-hang-noi-bang__tiep-tuc:disabled {
    background: #c9ccd2;
    color: #ffffff;
    cursor: default;
}

@media (max-width: 959px) {
    .gio-hang-noi-bang {
        align-items: start;
        overflow: hidden;
        padding: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .gio-hang-noi-bang__hop {
        width: min(720px, calc(100vw - 24px));
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        border-radius: 24px;
    }

    .gio-hang-noi-bang__cuon {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
    }

    .gio-hang-noi-bang__bo-cuc {
        display: block;
        height: auto;
        min-height: 100%;
    }

    .gio-hang-noi-bang__danh-sach {
        display: grid;
        grid-template-rows: auto auto;
        overflow: visible;
        padding: 54px 24px 28px;
    }

    .gio-hang-noi-bang__thanh-dau {
        padding-left: 32px;
    }

    .gio-hang-noi-bang__cac-dong {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .gio-hang-noi-bang__tom-tat {
        min-height: 520px;
        padding: 32px 24px 24px;
    }

    .gio-hang-noi-bang__tiep-tuc {
        margin-top: 42px;
    }
}

@media (max-width: 599px) {
    .gio-hang-noi-bang {
        padding: 0;
    }

    .gio-hang-noi-bang__hop {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .gio-hang-noi-bang__dong {
        position: absolute;
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
    }

    .gio-hang-noi-bang__danh-sach {
        gap: 18px;
        padding: 18px 14px 24px;
    }

    .gio-hang-noi-bang__thanh-dau {
        padding: 0 4px 0 28px;
    }

    .gio-hang-noi-bang__thanh-dau h2 {
        font-size: 16px;
    }

    .gio-hang-noi-bang__chon-tat-ca {
        font-size: 13px;
    }

    .gio-hang-noi-dong {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
    }

    .gio-hang-noi-bang__tom-tat {
        min-height: 500px;
        padding: 28px 18px calc(18px + env(safe-area-inset-bottom));
    }

    .gio-hang-noi-bang__tiep-tuc {
        margin: 21px 0;
    }

    .gio-hang-noi-tom-tat dl > div {
        gap: 12px;
    }

    .gio-hang-noi-tom-tat dd {
        max-width: 155px;
    }

    .gio-hang-noi-tom-tat__tong strong {
        font-size: 20px;
    }

    .gio-hang-noi-voucher > div {
        grid-template-columns: minmax(0, 1fr) 84px;
        gap: 8px;
    }

    .gio-hang-noi-voucher button {
        min-width: 84px;
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .gio-hang-noi-bang {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        background: rgb(5 5 5 / calc(var(--bang-keo-lop-phu, 1) * 58%));
        transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .gio-hang-noi-bang.is-dang-keo-lop-phu {
        transition: none;
    }

    .gio-hang-noi-bang__hop.bang-keo-di-dong--dai {
        width: 100%;
        height: 88svh;
        max-height: 88svh;
        min-height: 0;
        padding-top: 24px;
        border-radius: 24px 24px 0 0;
        background: #ffffff;
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.2);
    }

    .gio-hang-noi-bang__hop.bang-keo-di-dong--dai::before {
        background: #ffffff;
    }

    .gio-hang-noi-bang__hop > .tay-nam-bang {
        width: 42px;
        height: 4px;
        background: #d8d4ce;
    }

    .gio-hang-noi-bang__cuon.bang-keo-di-dong__than {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding-top: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .gio-hang-noi-bang__dong {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gio-hang-noi-bang,
    .gio-hang-noi-bang * {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
