/* Townway V6 — UI-only header favourites and Flash Deal top banner */

.tw-header__favorites {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tw-header__favorite {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    color: #fff !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tw-header__favorite:hover,
.tw-header__favorite:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .55);
    transform: translateY(-1px);
    outline: none;
}

.tw-header__favorite svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tw-header__favorite > span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 20px;
    background: #3d70ff;
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}

.tw-flash-top-banner {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 240px;
    max-height: 420px;
    overflow: hidden;
    background: linear-gradient(120deg, #071769, #0007a3 62%, #394ff0);
}

.tw-flash-top-banner > a,
.tw-flash-top-banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.tw-flash-top-banner img {
    object-fit: cover;
    object-position: center;
}

.tw-flash-top-banner__fallback {
    padding: clamp(26px, 5vw, 74px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    background:
        radial-gradient(circle at 80% 50%, rgba(255,255,255,.15), transparent 24%),
        linear-gradient(120deg, #071769, #0007a3 62%, #394ff0);
}

.tw-flash-top-banner__fallback span {
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tw-flash-top-banner__fallback strong {
    max-width: 720px;
    color: #fff;
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.05;
}

.tw-flash-top-banner__fallback em {
    width: fit-content;
    margin-top: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: #fff;
    color: #0007a3;
    font-style: normal;
    font-weight: 850;
}

.tw-flash-top-banner.has-fallback::after {
    content: 'Townway';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.88);
    font-size: clamp(34px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -.04em;
}

@media (max-width: 1500px) {
    .tw-header__actions {
        gap: 10px;
    }

    .tw-header__favorites {
        gap: 6px;
    }

    .tw-header__favorite {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .tw-header__favorite svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 1199px) {
    .tw-header__favorite {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (max-width: 767px) {
    .tw-header__favorites {
        gap: 5px;
    }

    .tw-header__favorite {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
    }

    .tw-header__favorite svg {
        width: 17px;
        height: 17px;
    }

    .tw-header__favorite > span {
        top: -6px;
        right: -6px;
    }

    .tw-flash-top-banner {
        min-height: 210px;
        max-height: 300px;
    }
}

@media (max-width: 420px) {
    .tw-header__actions {
        gap: 6px !important;
    }

    .tw-header__favorite {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .tw-header__cart {
        font-size: 21px;
    }
}
