/* ───────────────────────── BASE STYLES ───────────────────────── */

#cta {
    display: block;
    max-width: 60%;
    padding-bottom: 8px;
}

.lip-cta-button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 69px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    margin: 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow .3s ease, transform .32s cubic-bezier(.42,0,.34,1.26), opacity .26s cubic-bezier(.43,0,.34,1.26);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

.lip-cta-button:hover,
.lip-cta-button:active {
    box-shadow: 0 4px 8px rgba(0,0,0,.1), inset 0 0 0 1000px rgba(0,0,0,.1);
}

.lip-cta-button__logo {
    position: absolute;
    left: 0;
    width: 125px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.lip-cta-button__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 135px;
    padding-right: 20px;
    color: #000;
    overflow: hidden;
}

.lip-cta-button__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.lip-cta-button__description {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    width: 102%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lip-cta-button__arrow {
    width: 40px;
    height: 40px;
    background: #FF0000;
    border-radius: 50%;
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.lip-cta-button__arrow svg {
    fill: #fff;
    stroke: #fff;
    stroke-width: 1;
}

/* ─────────────────── 1024 px MEDIA QUERY ─────────────────── */
@media screen and (max-width: 1024px) {
    #cta { max-width: 90%; }
}

/* ─────────────────── 600 px MEDIA QUERY ─────────────────── */
@media screen and (max-width: 600px) {
    #cta {
        max-width: 100%;
        padding-bottom: 0;
        margin-left: -10px !important;
    }

    .overlay-no-scroll {
        overflow: hidden;
        padding-right: var(--scrollbar-width);
    }

    .lip-cta-button {
        width: 105%;
        max-width: 105%;
        max-height: 58px;
        box-sizing: border-box;
        margin-left: 0;
        transition: box-shadow .3s ease, transform .32s cubic-bezier(.42,0,.34,1.26), opacity .26s cubic-bezier(.43,0,.34,1.26);
    }

    .lip-cta-button__text { padding-left: 85px; overflow: hidden; }

    .lip-cta-button__title,
    .lip-cta-button__description {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lip-cta-button__title { font-size: 13px; width: 102%; }
    .lip-cta-button__description { font-size: 10px; width: 107%; }

    .lip-cta-button__logo {
        width: 80px;
        height: 100%;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .lip-cta-button__arrow { width: 40px; height: 40px; }
    .lip-cta-button__arrow svg { fill: #fff; stroke: #fff; }

    .lip-cta-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.25);
        backdrop-filter: blur(1px);
        opacity: 0;
        transition: opacity .25s ease;
        z-index: 999;
    }
    .lip-cta-backdrop.visible { opacity: 1; }

    .lip-cta-overlay-wrapper {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .cta-overlay {
        position: fixed;
        margin: 0 auto;
        width: 95vw;
        min-height: 220px;
        max-height: 90vh;
        -webkit-tap-highlight-color: transparent;
        overflow: auto;
        overscroll-behavior: contain;
        border-radius: 16px;
        box-shadow: 0 16px 50px rgba(0,0,0,.35);
        background: #fff;
        z-index: 1002;
        transform: scale(0.95);
        opacity: 0;
        transition: transform .32s cubic-bezier(.42,0,.34,1.26), opacity .26s cubic-bezier(.43,0,.34,1.26), box-shadow .3s;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 24px;
        bottom: 3%;
    }

    .cta-overlay:not(.animated-out) {
        transform: scale(1);
        opacity: 1;
    }
    .cta-overlay.animated-out {
        transform: scale(0.96);
        opacity: 0;
    }

    .cta-overlay .lip-cta-button__logo {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 120px !important;
        max-height: 180px !important;
        min-height: 72px !important;
        object-fit: cover;
        border-radius: 16px 16px 0 0 !important;
        margin: 0;
        display: block;
        left: auto;
        top: auto;
        transform: none;
    }

    .cta-overlay .lip-cta-content-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 2px;
        padding: 20px 18px 0 18px;
        box-sizing: border-box;
    }

    .cta-overlay .lip-cta-button__text {
        flex: 1 1 0%;
        padding: 0;
        overflow: visible;
    }

    .cta-overlay .lip-cta-button__title,
    .cta-overlay .lip-cta-button__description {
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }

    .cta-overlay .lip-cta-button__title {
        font-size: 20px;
        margin-bottom: 8px;
        font-weight: bold;
        line-height: 1.2;
        width: 100%;
    }

    .cta-overlay .lip-cta-button__description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 0;
        padding-bottom: 8px;
        width: 100%;
    }

    .cta-overlay .lip-cta-expanded-arrow {
        font-size: 2.3rem;
        color: #222;
        margin-left: 2px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 2px 2px;
        line-height: 1;
        user-select: none;
        display: flex;
        align-items: center;
        border-radius: 7px;
        transition: background .14s;
    }
    .cta-overlay .lip-cta-expanded-arrow:active {
        background: #eee;
    }

    /* Expanded overlay fade effect - match button */
    .cta-overlay.active {
        box-shadow: 0 4px 8px rgba(0,0,0,.1), inset 0 0 0 1000px rgba(0,0,0,.20);
    }
}

/* ────────────────── LINK STATE RESET ────────────────── */
a.lip-cta-button,
a.lip-cta-button:hover,
a.lip-cta-button:active,
a.lip-cta-button:visited {
    text-decoration: none;
    color: inherit;
}