/* =========================================================
   VOUCHER - thẻ, carousel trang chủ, popup
   (dùng chung cho trang chủ và trang /voucher)
========================================================= */

/* ---------- Khối trang chủ ---------- */

.inh-vc-home {
    width: 100vw;
    padding: 12px 0 28px;
    box-sizing: border-box;

    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.inh-vc-container {
    width: 100%;
    max-width: 1445px;
    margin: 0 auto;
    padding: 0 20px 24px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-top: 2px solid var(--primary, #08265B);
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    .inh-vc-home {
        padding: 12px 4px 28px;
    }

    .inh-vc-container {
        max-width: 100%;
    }
}

.inh-vc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0 16px;
}

.inh-vc-title {
    margin: 0;
    color: #263550;
    font-size: 22px;
    font-weight: 600;
}

.inh-vc-title span {
    color: var(--primary, #08265B);
}

.inh-vc-all {
    color: var(--primary, #08265B);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.inh-vc-all:hover {
    text-decoration: underline;
}

/* ---------- Carousel ---------- */

.inh-vc-carousel {
    position: relative;
}

.inh-vc-track {
    display: flex;
    gap: 16px;
    padding: 8px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.inh-vc-track::-webkit-scrollbar {
    display: none;
}

.inh-vc-track>.inh-vc-card {
    flex: 0 0 275px;
    scroll-snap-align: start;
}

/* Mờ dần ở mép phải khi còn voucher phía sau */
.inh-vc-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}

.inh-vc-carousel.has-more::after {
    opacity: 1;
}

.inh-vc-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    color: #444;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
}

.inh-vc-arrow[hidden] {
    display: none;
}

.inh-vc-arrow--prev {
    left: -8px;
}

.inh-vc-arrow--next {
    right: -8px;
}

.inh-vc-arrow:hover {
    color: var(--primary, #08265B);
}

/* ---------- Thẻ voucher ---------- */

.inh-vc-card {
    --vc-bg: #08265b;
    --vc-fg: #ffffff;
    --vc-accent: #ffd54a;

    position: relative;
    display: flex;
    height: 116px;
    box-sizing: border-box;
    border-radius: 8px;
    background: var(--vc-bg);
    color: var(--vc-fg);
}

.inh-vc-card--yellow {
    --vc-bg: #fdc93c;
    --vc-fg: #061a42;
    --vc-accent: #061a42;
}

.inh-vc-card__left {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
}

.inh-vc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.inh-vc-card__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.inh-vc-card__name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inh-vc-card__right {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-left: 1px dashed currentColor;
}

/* Hai khuyết tròn trên/dưới đường chấm */
.inh-vc-card__right::before,
.inh-vc-card__right::after {
    content: "";
    position: absolute;
    left: -7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--vc-notch, #fff);
}

.inh-vc-card__right::before {
    top: -6px;
}

.inh-vc-card__right::after {
    bottom: -6px;
}

.inh-vc-card__value {
    color: var(--vc-accent);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.inh-vc-card__value--long {
    font-size: 17px;
}

.inh-vc-card__value--xl {
    font-size: 14px;
}

.inh-vc-card__exp {
    font-size: 10px;
    opacity: .9;
}

.inh-vc-card__btn {
    min-width: 72px;
    padding: 5px 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.inh-vc-card__btn:hover {
    background: #fff;
    color: var(--vc-bg);
}

/* ---------- Popup ---------- */

body.inh-vc-modal-open {
    overflow: hidden;
}

.inh-vc-modal[hidden] {
    display: none;
}

.inh-vc-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.inh-vc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 26, .5);
}

.inh-vc-modal__box {
    position: relative;
    width: 440px;
    max-width: 100%;
    padding: 24px 24px 22px;
    box-sizing: border-box;
    border-radius: 16px;
    background: linear-gradient(180deg, #e8f7ee 0%, #fff 38%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.inh-vc-modal__x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #777;
    font-size: 20px;
    line-height: 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    cursor: pointer;
}

.inh-vc-modal__title {
    margin: 0 36px 14px 0;
    color: #1f2d27;
    font-size: 18px;
    font-weight: 600;
}

.inh-vc-modal__codebox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed #d9e4f3;
    border-radius: 10px;
    background: #f1faf5;
}

.inh-vc-modal__codebox strong {
    color: var(--primary, #08265B);
    font-size: 20px;
    letter-spacing: .5px;
    word-break: break-all;
}

.inh-vc-modal__copy {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #c9d6cf;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 12px;
    cursor: pointer;
}

.inh-vc-modal__text {
    margin: 14px 0 18px;
    color: #4a4f4c;
    font-size: 14px;
    line-height: 1.6;
}

.inh-vc-modal__text b {
    color: var(--primary, #08265B);
    font-weight: 600;
}

.inh-vc-modal__actions {
    display: flex;
    gap: 12px;
}

.inh-vc-modal__btn {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid #d3d8d5;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.inh-vc-modal__btn--primary {
    border-color: var(--primary, #08265B);
    background: var(--primary, #08265B);
    color: #fff;
}

/* ---------- Thẻ đã lấy (đã lưu vào ví) ---------- */

.inh-vc-card.is-claimed::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, .55);
    pointer-events: none;
}

.inh-vc-card__btn:disabled {
    background: transparent;
    border-style: dashed;
    color: inherit;
    cursor: default;
}

.inh-vc-card__btn:disabled:hover {
    background: transparent;
    color: inherit;
}

/* ---------- Toast ---------- */

.inh-vc-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 99995;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(70, 74, 80, .96);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.inh-vc-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .inh-vc-title {
        font-size: 19px;
    }

    .inh-vc-track>.inh-vc-card {
        flex-basis: 252px;
    }

    .inh-vc-arrow {
        display: none !important;
    }
}