/* =========================================================
   BEROVIO — MOBILE FULL-WIDTH LAYOUT
   Keep the mobile layout nearly full-width, with a small 6px safety gutter
   on each side. Component-level internal paddings remain unchanged.
   ========================================================= */

@media (max-width: 689.98px) {
    :root {
        --theme-container-edge-spacing: calc(100vw - 12px) !important;
    }

    /* Add real inner spacing to the Blocksy footer rows, instead of
       relying on a footer-only container-width variable override. */
    .ct-footer [data-row] > div {
        box-sizing: border-box;
        padding-inline: 6px !important;
    }
}

/* =========================================================
   BEROVIO — MOBILE FOOTER ACCORDION
   Desktop/tablet footer remains controlled by Blocksy.
   ========================================================= */

.berovio-mobile-footer-accordion-trigger {
    display: none;
}

@media (max-width: 620px) {
    .ct-footer .berovio-mobile-footer-accordion {
        display: block !important;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid rgba(17, 17, 17, .12);
    }

    .ct-footer .berovio-mobile-footer-accordion-trigger {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .ct-footer .berovio-mobile-footer-accordion-trigger::after {
        content: '';
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        margin-right: 3px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transform-origin: center;
        transition: transform .18s ease;
        opacity: .72;
    }

    .ct-footer .berovio-mobile-footer-accordion.is-open .berovio-mobile-footer-accordion-trigger::after {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .ct-footer .berovio-mobile-footer-accordion-content {
        display: none;
        padding: 0 0 15px;
    }

    .ct-footer .berovio-mobile-footer-accordion.is-open .berovio-mobile-footer-accordion-content {
        display: block;
    }

    .ct-footer .berovio-mobile-footer-accordion-content > :first-child {
        margin-top: 0 !important;
    }

    .ct-footer .berovio-mobile-footer-accordion-content > :last-child {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 621px) {
    .ct-footer .berovio-mobile-footer-accordion-content {
        display: block !important;
    }
}
