/**
 * Copyright © Caravel. All rights reserved.
 *
 * "Lista VIP" widget (Block\Widget\VipList, templates/widget/vip-list.phtml), after the "vip" section of the Black
 * Cassol mockup without its phone field: kicker, title and lead on the left, the "Entrar na lista" button (a link to
 * the WhatsApp group) and a note on the right, over a soft red glow. Loaded by the cassol_blackfriday_active layout
 * handle next to black-friday.css, whose tokens (--bf-*) it reuses. Plain CSS with its own class names (bf-vip__*);
 * fonts are the theme's.
 */

.bf-vip {
    --bf-vip-gutter: clamp(16px, 4vw, 48px);
    color: var(--bf-text);
    /* the mockup glow (rgba(232,17,45,.18)) with the theme red */
    background: radial-gradient(60% 120% at 80% 50%, rgba(189, 40, 33, .18), transparent 70%), var(--bf-bg);
    border-top: 1px solid var(--bf-line);
    padding: clamp(40px, 5.6vw, 77px) 0;
}

.bf-vip__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--bf-vip-gutter);
}

/* ---------- copy ---------- */
.bf-vip__kick {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bf-red);
    margin-bottom: 14px;
}

.bf-vip__kick::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--bf-red);
}

.bf-vip__title {
    margin: 0;
    font-weight: 900;
    /* the condensed display font of the mockup (84px) at about two thirds with the theme font */
    font-size: clamp(30px, 3.6vw, 54px);
    line-height: .95;
    text-transform: uppercase;
    color: var(--bf-text);
}

.bf-vip__lead {
    margin: 14px 0 0;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--bf-muted);
}

/* ---------- call to action ---------- */
/* the button and its note sit against the right edge of the wrap, the copy against the left one */
.bf-vip__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    text-align: right;
}

.bf-vip__btn,
.bf-vip__btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--bf-red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 28px -8px rgba(189, 40, 33, .7);
    transition: transform .2s, filter .2s;
}

.bf-vip__btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.12);
}

.bf-vip__btn:active {
    transform: scale(.97);
}

.bf-vip__btn:focus-visible {
    outline: 2px solid var(--bf-outline);
    outline-offset: 3px;
}

.bf-vip__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bf-vip__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--bf-muted);
}

/* ---------- breakpoints (the mockup's) ---------- */
@media (max-width: 860px) {
    .bf-vip__wrap {
        grid-template-columns: 1fr;
    }

    /* stacked under the copy, the call to action follows its left alignment */
    .bf-vip__cta {
        align-items: flex-start;
        justify-self: stretch;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .bf-vip__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bf-vip__btn {
        transition: none;
    }

    .bf-vip__btn:active {
        transform: none;
    }
}
