﻿/* =========================================================
   PROMOTION AUTO - TABS RESPONSIVE
   ========================================================= */

.hh-promotion-auto__tabs-wrap {
    width: 100%;
    position: relative;
}

.hh-promotion-auto__tabs {
    width: 100%;
    overflow: hidden;
}

.hh-promotion-auto__tabs-track {
    display: flex;
    align-items: stretch;
    gap: 10px;

    width: max-content;
    min-width: 100%;
}

/* ================= TAB ITEM ================= */

.hh-promotion-auto__tab-item {
    flex: 0 0 auto;
    min-width: 0;
}

/* ================= TAB ================= */

.hh-promotion-auto__tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 180px;
    min-height: 64px;

    padding: 10px 18px;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    background: #fff;
    color: #333;

    cursor: pointer;

    text-align: left;
    white-space: nowrap;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

/* ================= TITLE ================= */

.hh-promotion-auto__tab-title {
    display: block;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;

    color: #222;
}

/* ================= DESCRIPTION ================= */

.hh-promotion-auto__tab-desc {
    display: block;

    margin-top: 3px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;

    color: #777;
}

/* ================= HOVER ================= */

.hh-promotion-auto__tab:hover {
    border-color: #d70018;
    color: #d70018;
}

.hh-promotion-auto__tab:hover .hh-promotion-auto__tab-title {
    color: #d70018;
}

/* ================= ACTIVE ================= */

.hh-promotion-auto__tab.active {
    border-color: #d70018;
    background: #d70018;
    color: #fff;

    box-shadow: 0 3px 10px rgba(215, 0, 24, .18);
}

.hh-promotion-auto__tab.active .hh-promotion-auto__tab-title,
.hh-promotion-auto__tab.active .hh-promotion-auto__tab-desc {
    color: #fff;
}


/* =========================================================
   TABLET
   768px - 991px
   ========================================================= */

@media (max-width: 991px) {

    .hh-promotion-auto__tabs-track {
        gap: 8px;
    }

    .hh-promotion-auto__tab {
        min-width: 165px;
        min-height: 60px;

        padding: 9px 14px;
    }

    .hh-promotion-auto__tab-title {
        font-size: 14px;
    }

    .hh-promotion-auto__tab-desc {
        font-size: 11px;
    }
}


/* =========================================================
   MOBILE
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .hh-promotion-auto__tabs {
        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .hh-promotion-auto__tabs::-webkit-scrollbar {
        display: none;
    }

    .hh-promotion-auto__tabs-track {
        gap: 6px;
        width: max-content;
    }

    .hh-promotion-auto__tab {
        min-width: 145px;
        min-height: 56px;

        padding: 8px 12px;

        border-radius: 7px;
    }

    .hh-promotion-auto__tab-title {
        font-size: 13px;
    }

    .hh-promotion-auto__tab-desc {
        margin-top: 2px;
        font-size: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
   <= 420px
   ========================================================= */

@media (max-width: 420px) {

    .hh-promotion-auto__tabs-track {
        gap: 6px;
    }

    .hh-promotion-auto__tab {
        min-width: 135px;
        min-height: 52px;

        padding: 7px 10px;
    }

    .hh-promotion-auto__tab-title {
        font-size: 12px;
    }

    .hh-promotion-auto__tab-desc {
        font-size: 10px;
    }
}