/**
 * Public CTA banner widget.
 * High-specificity selectors for WordPress theme compatibility.
 */

/* ---- Root ---- */

#etx-banner-widget.etx-b {
    all: unset;
    display: block;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #212529;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#etx-banner-widget.etx-b *,
#etx-banner-widget.etx-b *::before,
#etx-banner-widget.etx-b *::after {
    box-sizing: border-box;
}

/* ---- Card ---- */

#etx-banner-widget .etx-b__card {
    display: block;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
}

#etx-banner-widget .etx-b__card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Inner ---- */

#etx-banner-widget .etx-b__inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    padding: 2rem 2.25rem !important;
    position: relative;
    z-index: 1;
}

/* ---- Text ---- */

#etx-banner-widget .etx-b__text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

#etx-banner-widget .etx-b__title {
    all: unset;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    background: none !important;
    border: none !important;
}

#etx-banner-widget .etx-b__subtitle {
    all: unset;
    display: block;
    margin: 0.4rem 0 0 !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ---- Actions ---- */

#etx-banner-widget .etx-b__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.85rem !important;
    flex-shrink: 0;
}

/* ---- Call button ---- */

#etx-banner-widget a.etx-b__call {
    all: unset;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.7rem 3.8rem 0.7rem 4.1rem !important;
    background: #22c55e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

#etx-banner-widget a.etx-b__call:hover {
    background: #16a34a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}

#etx-banner-widget a.etx-b__call:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(34, 197, 94, 0.3);
}

#etx-banner-widget .etx-b__call-ico {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #ffffff;
    stroke-width: 2.2;
}

#etx-banner-widget .etx-b__call-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2;
}

#etx-banner-widget .etx-b__call-label {
    display: block;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85) !important;
}

#etx-banner-widget .etx-b__call-number {
    display: block;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

/* ---- Store badges ---- */

#etx-banner-widget .etx-b__badges {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

#etx-banner-widget a.etx-b__badge {
    all: unset;
    display: inline-block !important;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

#etx-banner-widget a.etx-b__badge:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

#etx-banner-widget .etx-b__badge-svg {
    display: block !important;
    width: 130px;
    height: auto;
}

/* ---- Responsive ---- */

@media screen and (max-width: 680px) {
    #etx-banner-widget .etx-b__inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 1.4rem !important;
        padding: 1.6rem 1.25rem !important;
    }

    #etx-banner-widget .etx-b__text {
        text-align: center;
    }

    #etx-banner-widget .etx-b__title {
        font-size: 1.25rem !important;
    }

    #etx-banner-widget .etx-b__subtitle {
        font-size: 0.88rem !important;
    }

    #etx-banner-widget .etx-b__actions {
        align-items: center !important;
        width: 100%;
    }

    #etx-banner-widget a.etx-b__call {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1.25rem !important;
    }

    #etx-banner-widget .etx-b__badges {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    #etx-banner-widget .etx-b__badge-svg {
        width: 120px;
    }
}
