/* =====================================================
   Shortcode Block [btn_scroll]
   ===================================================== */

.btn-scroll-block {
    display: block;
    margin: 1.5em 0;
    text-align: center;
}

.btn-scroll-block__label {
    margin: 0 0 12px;
    font-size: 14px;
    font-style: italic;
    color: #444;
    line-height: 1.5;
}

.btn-scroll-block__btn {
    display: block;
    width: 100% !important;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.2px;
    background: #F5C518;
    color: #000;
    box-shadow: 0 0 1px 1px #dadada !important;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-scroll-block__btn:hover,
.btn-scroll-block__btn:focus {
    opacity: 0.88;
    box-shadow: 0 5px 20px rgba(0,0,0,0.22);
    text-decoration: none;
    outline: 3px solid rgba(0,0,0,0.25);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .btn-scroll-block__btn {
                font-size: 20px;
        line-height: 25px;
        padding-bottom: 12px;
        padding-top: 12px;
    }
}

/* =====================================================
   Sticky CTA — Wrap (dark bg) + Button
   ===================================================== */

/* Wrap — fixed, animates in/out */
#btn-scroll-wrap {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 99999;
    background-color: rgba(151, 151, 165, 0.84);
    padding: 5px 0;
    opacity: 0;
    transform: translateX(-50%) translateY(calc(100% + 28px));
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#btn-scroll-wrap.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* The link/button inside the wrap */
#btn-scroll-cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    white-space: nowrap;

    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;

    /* colors overridden by inline style from PHP */
    background: #F5C518;
    color: #000;

    transition: opacity 0.15s ease;
}

#btn-scroll-cta:hover,
#btn-scroll-cta:focus {
    opacity: 0.88;
    text-decoration: none;
    outline: 3px solid rgba(0,0,0,0.25);
    outline-offset: 2px;
}

/* Desktop — ẩn hoàn toàn */
@media (min-width: 768px) {
    #btn-scroll-wrap {
        display: none !important;
    }
}
