/* Footer media (admin: partners / providers / payments) + legacy helpers */

.layout-footer-holder-bc .sfm-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    box-sizing: border-box;
}

.layout-footer-holder-bc .sfm-title {
    width: 100%;
    margin: 0 0 14px !important;
    text-align: center !important;
}

.layout-footer-holder-bc .sfm-row {
    display: grid;
    grid-template-columns: repeat(var(--sfm-cols, 4), minmax(0, 1fr));
    gap: 14px 18px;
    align-items: center;
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Slider: horizontal wrap (desktop columns still guide density) */
.layout-footer-holder-bc .sfm-layout-slider .sfm-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
}

.layout-footer-holder-bc .sfm-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    line-height: 0;
}

.layout-footer-holder-bc .sfm-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 56px;
    object-fit: contain;
    filter: none;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.layout-footer-holder-bc .sfm-item:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.layout-footer-holder-bc .sfm-section--partners .sfm-item img {
    max-height: 64px;
    max-width: 160px;
}

.layout-footer-holder-bc .sfm-section--providers .sfm-item img {
    max-height: 48px;
    max-width: 110px;
    filter: grayscale(0.15) brightness(1.05);
    opacity: 0.85;
}

.layout-footer-holder-bc .sfm-section--providers .sfm-item:hover img {
    filter: none;
    opacity: 1;
}

.layout-footer-holder-bc .sfm-section--payments .sfm-item img {
    max-height: 44px;
    max-width: 150px;
    filter: none;
    opacity: 0.92;
}

.layout-footer-holder-bc .sfm-section--payments .sfm-item:hover img {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
}

.layout-footer-holder-bc .sfm-legal,
.layout-footer-holder-bc .ftr-copy-rights-bc {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
}

.layout-footer-holder-bc .ftr-copy-rights-bc p,
.layout-footer-holder-bc .sfm-legal p {
    margin: 0 0 8px;
}

.layout-footer-holder-bc .ftr-copy-rights-bc p:last-child,
.layout-footer-holder-bc .sfm-legal p:last-child {
    margin-bottom: 0;
}

html.is-web .layout-footer-holder-bc .sfm-layout-grid .sfm-row {
    grid-template-columns: repeat(var(--sfm-cols-desktop, var(--sfm-cols, 5)), minmax(0, 1fr));
}

html.is-mobile .layout-footer-holder-bc .sfm-layout-grid .sfm-row {
    grid-template-columns: repeat(var(--sfm-cols-mobile, var(--sfm-cols, 2)), minmax(0, 1fr));
    gap: 10px 12px;
}

html.is-mobile .layout-footer-holder-bc .sfm-item img {
    max-width: 120px;
    max-height: 48px;
}

.footerResponsibleBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0 4px;
}

.footerResponsibleBadge img {
    display: block;
    width: auto;
    height: 26px;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.75;
}

/* PC scroll/click: never trap wheel/clicks on the desktop shell */
html.is-web,
html.is-web body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100%;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
    pointer-events: auto !important;
}

html.is-web #root.layout-bc {
    overflow: visible !important;
    min-height: 100%;
    height: auto !important;
    max-height: none !important;
    pointer-events: auto !important;
}

html.is-web .layout-content-holder-bc,
html.is-web .layout-footer-holder-bc {
    overflow: visible !important;
    pointer-events: auto !important;
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
}

/* Home charcoal wash must never steal clicks */
html.is-web #root.is-home-page:has(#homeMainSliderRow)::before {
    pointer-events: none !important;
}
