.mcw-ait-shell,
.mcw-ait-shell * {
    box-sizing: border-box;
}

.mcw-ait-shell {
    position: relative;
    width: 100%;
}

/* DESKTOP */

.mcw-ait-wrap {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.mcw-ait-track {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 18px;
    overflow: hidden;
}

.mcw-ait-item {
    position: relative;
    flex: 0 0 86px;
    height: 100%;
    overflow: hidden;
    border-radius: 36px;
    background: #111;
    cursor: pointer;
    transition: flex 0.65s cubic-bezier(.22, .61, .36, 1), transform .35s ease;
}

.mcw-ait-item.is-active {
    flex: var(--mcw-ait-active-grow, 8) 1 0 !important;
}

.mcw-ait-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
}

.mcw-ait-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

.mcw-ait-item:hover .mcw-ait-bg {
    transform: scale(1.08);
}

.mcw-ait-item.is-active .mcw-ait-bg {
    transform: scale(1.05);
}

.mcw-ait-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.62) 0%,
        rgba(0,0,0,.22) 42%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
}

.mcw-ait-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.mcw-ait-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
}

.mcw-ait-icon i {
    font-size: 16px;
}

.mcw-ait-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.mcw-ait-text {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .35s ease, transform .35s ease;
    white-space: nowrap;
    overflow: hidden;
}

.mcw-ait-item.is-active .mcw-ait-text {
    opacity: 1;
    transform: translateX(0);
}

.mcw-ait-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcw-ait-subtitle {
    margin-top: 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 600;
    opacity: .92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcw-ait-item:not(.is-active) .mcw-ait-content {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    min-width: auto;
    gap: 0;
}

.mcw-ait-item:not(.is-active) .mcw-ait-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.mcw-ait-item:not(.is-active) .mcw-ait-text {
    display: none;
}

/* NAV */

.mcw-ait-nav {
    position: absolute;
    top: -62px;
    right: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
}

.mcw-ait-nav-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
    transition: all .25s ease;
}

.mcw-ait-nav-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

/* TABLET */

@media (max-width: 1024px) {
    .mcw-ait-wrap {
        height: 360px;
    }

    .mcw-ait-track {
        gap: 14px;
    }

    .mcw-ait-item {
        flex-basis: 74px;
        border-radius: 30px;
    }
}

/* MOBILE STYLE GIỐNG ẢNH THAM CHIẾU */

@media (max-width: 767px) {
    .mcw-ait-shell {
        width: 100%;
        overflow: hidden;
    }

    .mcw-ait-wrap {
        width: 100%;
        height: 330px !important;
        min-height: 330px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0 10px;
    }

    .mcw-ait-wrap::-webkit-scrollbar {
        display: none;
    }

    .mcw-ait-track {
        width: max-content !important;
        height: 320px !important;
        display: flex !important;
        align-items: stretch;
        gap: 10px !important;
        overflow: visible !important;
        padding: 0 12px;
    }

    .mcw-ait-item {
        flex: 0 0 82px !important;
        width: 82px !important;
        height: 320px !important;
        border-radius: 28px !important;
        scroll-snap-align: center;
        transition: width .45s ease, flex-basis .45s ease, transform .35s ease;
        box-shadow: 0 16px 40px rgba(0,0,0,.12);
    }

    .mcw-ait-item.is-active {
        flex: 0 0 178px !important;
        width: 178px !important;
    }

    .mcw-ait-bg {
        background-size: cover !important;
        background-position: center center !important;
        transform: scale(1.02);
    }

    .mcw-ait-overlay {
        background: linear-gradient(
            to top,
            rgba(0,0,0,.58) 0%,
            rgba(0,0,0,.26) 42%,
            rgba(0,0,0,.05) 100%
        ) !important;
    }

    .mcw-ait-content,
    .mcw-ait-item:not(.is-active) .mcw-ait-content {
        left: 10px !important;
        right: 10px !important;
        bottom: 12px !important;
        transform: none !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
    }

    .mcw-ait-icon,
    .mcw-ait-item:not(.is-active) .mcw-ait-icon {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.18);
    }

    .mcw-ait-icon i {
        font-size: 15px !important;
    }

    .mcw-ait-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .mcw-ait-text,
    .mcw-ait-item:not(.is-active) .mcw-ait-text {
        display: none !important;
    }

    .mcw-ait-item.is-active .mcw-ait-content {
        justify-content: flex-start;
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        gap: 8px !important;
    }

    .mcw-ait-item.is-active .mcw-ait-text {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        max-width: calc(100% - 52px);
        white-space: nowrap;
    }

    .mcw-ait-title {
        font-size: 13px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
    }

    .mcw-ait-subtitle {
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin-top: 2px !important;
    }

    .mcw-ait-nav {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-end;
        margin-bottom: 12px;
        padding-right: 12px;
        gap: 8px;
    }

    .mcw-ait-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* IPHONE NHỎ */

@media (max-width: 430px) {
    .mcw-ait-wrap {
        height: 310px !important;
        min-height: 310px !important;
    }

    .mcw-ait-track {
        height: 300px !important;
        gap: 8px !important;
        padding: 0 10px;
    }

    .mcw-ait-item {
        flex-basis: 74px !important;
        width: 74px !important;
        height: 300px !important;
        border-radius: 26px !important;
    }

    .mcw-ait-item.is-active {
        flex-basis: 165px !important;
        width: 165px !important;
    }

    .mcw-ait-icon,
    .mcw-ait-item:not(.is-active) .mcw-ait-icon {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    .mcw-ait-title {
        font-size: 12px !important;
    }

    .mcw-ait-subtitle {
        font-size: 9px !important;
    }
}