/* ============================================
   Mobile Sticky Registration CTA Experiment
   ============================================ */

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.mobile-sticky-cta[hidden] {
    display: none;
}

.mobile-sticky-cta--visible {
    display: flex;
    transform: translateY(0);
}

.mobile-sticky-cta__button {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
}

/* Hide on desktop/tablet - mobile only */
@media only screen and (min-width: 769px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* Adjust body padding to prevent content from being hidden behind sticky CTA */
@media only screen and (max-width: 768px) {
    body:has(.mobile-sticky-cta--visible) {
        padding-bottom: 70px;
    }

    /* Fallback for browsers without :has() support */
    .mobile-sticky-cta-active {
        padding-bottom: 70px;
    }
}

/* RTL support */
:lang(ar) .mobile-sticky-cta {
    direction: rtl;
}
