/* DT4A-059: dismissible sticky CTA (StickyCta.ascx). Hidden until the control's JS adds
   .is-visible; sits below the mobile menu (z-index 10001) and above page content. */

.gs-sticky-cta {
    position: fixed;
    z-index: 10000;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
    /* white card backing so the pill separates from whatever page furniture it floats over;
       radius matches the gs-button token (250px) so the shapes nest consistently */
    background-color: #fff;
    padding: 8px;
    border-radius: 250px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

    .gs-sticky-cta.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

.gs-sticky-cta-btn {
    flex: 1 1 auto;
    text-align: center;
}

.gs-sticky-cta-dismiss {
    /* styled like the site's gs-button outline look (2px #333 border, 250px radius) */
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 250px;
    border: solid 2px #333;
    background-color: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

    .gs-sticky-cta-dismiss:hover {
        background-color: #f2f2f2;
    }

/* Conversion-design variant (Variant="conversion"): mirrors the gs-conv-cta buttons on the
   /book-theory-test landing (dark, 14px radius, Plus Jakarta Sans) instead of the gs-button
   pill. Styled here in full rather than reusing .gs-conv-cta, whose font rule is scoped
   under .gs-conv and whose hover colour is !important'd. */

.gs-sticky-cta--conversion {
    border-radius: 20px;
}

.gs-sticky-cta-btn--conversion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #14140F;
    /* !important matches .gs-conv-cta's own approach - the site's global green anchor
       colour outguns a plain class rule here */
    color: #fff !important;
    border: none;
    border-radius: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    padding: 14px 24px;
    text-decoration: none;
}

    .gs-sticky-cta-btn--conversion:hover,
    .gs-sticky-cta-btn--conversion:focus {
        color: #fff !important;
        filter: brightness(1.08);
        text-decoration: none;
    }

.gs-sticky-cta-arrow {
    margin-left: 10px;
    font-size: 14px;
}

.gs-sticky-cta--conversion .gs-sticky-cta-dismiss {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    color: #14140F;
}

@media (min-width: 768px) {
    .gs-sticky-cta {
        left: auto;
        right: 24px;
        bottom: 24px;
    }

    .gs-sticky-cta-btn {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-sticky-cta {
        transition: none;
        transform: none;
    }
}
