.block-announcement-banner-reshape {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 99999;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Ping L", "Helvetica Neue", Arial, sans-serif;
    color: #0d0d0d;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.mobile-open-menu .block-announcement-banner-reshape {
    z-index: 0;
}


/* In editor ramane in flux, altfel acopera canvas-ul. */
.editor-styles-wrapper .block-announcement-banner-reshape {
    position: relative;
    bottom: auto;
    z-index: auto;
    padding: 0;
}


.block-announcement-banner-reshape .announcement-banner-reshape-inner {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    box-sizing: border-box;
    pointer-events: auto;
}


.block-announcement-banner-reshape .announcement-banner-reshape-banner {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(13, 13, 13, 0.15);
    box-sizing: border-box;
    overflow: hidden;
}


/* =========================================================
 * DESKTOP
 * Icon + copy inline + CTA.
 * Title si text sunt span-uri in acelasi container si curg
 * natural unul dupa altul.
 * ======================================================= */

.block-announcement-banner-reshape .announcement-banner-reshape-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}


.block-announcement-banner-reshape .announcement-banner-reshape-icon {
    display: block;
    flex-shrink: 0;
}


.block-announcement-banner-reshape .announcement-banner-reshape-icon--desktop {
    width: 56px;
    height: 56px;
    margin-right: 8px;
}


.block-announcement-banner-reshape .announcement-banner-reshape-icon img,
.block-announcement-banner-reshape .announcement-banner-reshape-mobile-button-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.block-announcement-banner-reshape .announcement-banner-reshape-copy {
    flex: 0 1 auto;
    min-width: 0;
    line-height: 24px;
}


.block-announcement-banner-reshape .announcement-banner-reshape-title,
.block-announcement-banner-reshape .announcement-banner-reshape-text {
    display: inline;
    color: #0d0d0d;
    font-size: 16px;
    line-height: 24px;
}


.block-announcement-banner-reshape .announcement-banner-reshape-title {
    font-weight: 700;
}


.block-announcement-banner-reshape .announcement-banner-reshape-text {
    font-weight: 400;
}


.block-announcement-banner-reshape .announcement-banner-reshape-title + .announcement-banner-reshape-text {
    margin-left: 4px;
}


.block-announcement-banner-reshape .announcement-banner-reshape-cta {
    flex-shrink: 0;
    white-space: nowrap;
}


.block-announcement-banner-reshape .announcement-banner-reshape-cta--desktop {
    margin-left: 24px;
}


/* Desktop call: numarul ramane vizibil, iconul telefon nu. */
.block-announcement-banner-reshape.announcement-banner-reshape-type-call
.announcement-banner-reshape-cta--desktop::before {
    display: none;
}


/* Structurile mobile nu intra in layout pe desktop. */
.block-announcement-banner-reshape .announcement-banner-reshape-mobile-button-content,
.block-announcement-banner-reshape .announcement-banner-reshape-mobile-toggle-content {
    display: none;
}


/* ascuns cat footer-ul e pe ecran (announcement-banner-reshape.js) */
.block-announcement-banner-reshape.is-footer-hidden,
/* ...si cat e deschis meniul (desktop / mobil), cautarea, selectorul de limba
   (desktop / panoul de pe mobil = body.hr-no-scroll) sau un side panel */
body:has(
    .header-reshape.is-open,
    .header-reshape.is-mobile-open,
    .header-reshape.lang_opened,
    .header-reshape__search.active,
    .side-panel.is-open
) .block-announcement-banner-reshape,
body.hr-no-scroll .block-announcement-banner-reshape {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
}



/* Widgeturi flotante NUMAI cand exista Announcement Banner. */
body:has(.block-announcement-banner-reshape) {
    --ann-lift: calc(var(--announcement-h, 0px) + 16px);
    --recaptcha-gap: 0px;
}
body:has(.block-announcement-banner-reshape):has(.grecaptcha-badge) {
    --recaptcha-gap: 72px;
}
body:has(.block-announcement-banner-reshape.is-footer-hidden),
body:has(.block-announcement-banner-reshape):has(
    .header-reshape.is-open,
    .header-reshape.is-mobile-open,
    .header-reshape.lang_opened,
    .header-reshape__search.active,
    .side-panel.is-open
),
body.hr-no-scroll:has(.block-announcement-banner-reshape) {
    --ann-lift: 0px;
}
body:has(.block-announcement-banner-reshape) .grecaptcha-badge {
    z-index: 100 !important;
    transform: translateY(calc(-1 * var(--ann-lift)));
    transition: right .3s ease, transform .25s ease, opacity .25s ease !important;
    opacity: .8;
}
body:has(.block-announcement-banner-reshape) .uwy .userway_buttons_wrapper {
    transform: translate(-32px, calc(-1 * (var(--ann-lift) + var(--recaptcha-gap))));
    transition: transform .25s ease, opacity .25s ease;
    opacity: .8;
}
body:has(.block-announcement-banner-reshape) #ot-sdk-btn-floating {
    transform: translateY(calc(-1 * var(--ann-lift))) !important;
    transition: transform .25s ease;
}
/* Cand un overlay e deschis, widgeturile flotante coboara in stiva.
   Dialogul de preferinte OneTrust nu este inclus. */
body:has(.block-announcement-banner-reshape):has(
    .header-reshape.is-open,
    .header-reshape.is-mobile-open,
    .header-reshape.lang_opened,
    .header-reshape__search.active,
    .side-panel.is-open
) :is(.grecaptcha-badge, .uwy, .uwy .userway_buttons_wrapper, #ot-sdk-btn-floating),
body.hr-no-scroll:has(.block-announcement-banner-reshape) :is(.grecaptcha-badge, .uwy, .uwy .userway_buttons_wrapper, #ot-sdk-btn-floating) {
    z-index: 1 !important;
}
body:has(.block-announcement-banner-reshape) :is(.grecaptcha-badge, .uwy .userway_buttons_wrapper):is(:hover, :focus-within, :active) {
    opacity: 1;
}


/* =========================================================
 * MOBILE
 * ======================================================= */

@media (max-width: 800px) {

    .block-announcement-banner-reshape .announcement-banner-reshape-desktop {
        display: none;
    }


    /* =====================================================
     * MOBILE BUTTON
     * .announcement-banner-reshape-mobile-button-content ESTE CTA
     * =================================================== */

    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button
    .announcement-banner-reshape-banner {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button
    .announcement-banner-reshape-mobile-button-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        box-shadow: 0 2px 8px 0 rgba(13, 13, 13, 0.15);


    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button
    .announcement-banner-reshape-mobile-button-icon {
        display: block;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button
    .announcement-banner-reshape-mobile-button-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button
    .announcement-banner-reshape-cta-label {
        min-width: 0;
        font-size:16px;
        font-weight:700;
        line-height:24px;
    }


    /*
     * Call CTA.
     * Daca global-button-icon-before genereaza iconul de telefon,
     * il lasam vizibil pe mobile.
     */
    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-button.announcement-banner-reshape-type-call
    .announcement-banner-reshape-mobile-button-content::before {
        display: inline-block;
    }


    /*
     * Pe mobile nu afisam numarul dupa Call Description.
     * Ramane doar textul butonului.
     */
    .block-announcement-banner-reshape .announcement-banner-reshape-cta-phone {
        display: none;
    }



    /* =====================================================
     * MOBILE TOGGLE
     * =================================================== */

    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-banner {
        padding: 8px;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-mobile-toggle-content {
        display: block;
        width: 100%;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-head {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: none;
        box-shadow: none;
        color: inherit;
        font-family: inherit;
        text-align: center;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-head:focus {
        outline: none;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-head:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px #506FEE;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-icon--mobile {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-title {
        display: block;
        flex: 0 1 auto;
        min-width: 0;
        text-align: center;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-toggle-icon {
        display: inline-block;
        flex: 0 0 auto;
        font-size: 24px;
        color: #0d0d0d;
        transition: transform .2s ease;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle.active
    .announcement-banner-reshape-toggle-icon {
         transform:  rotate(180deg);
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-panel {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle.active
    .announcement-banner-reshape-panel {
        display: flex;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-panel
    .announcement-banner-reshape-text {
        display: block;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-mobile-toggle
    .announcement-banner-reshape-cta--mobile-toggle {
        display: flex;
        width: 100%;
        white-space: normal;
    }


    .block-announcement-banner-reshape.announcement-banner-reshape-type-call
    .announcement-banner-reshape-cta--mobile-toggle::before {
        display: inline-block;
    }
}