.zhiroz-footer {
    margin-top: 40px;
    padding: 0 !important;
    text-align: initial !important;
    border-top: 0 !important;
    background: var(--zf-d-bg, var(--theme-footer-bg)) !important;
    color: var(--zf-d-text, var(--theme-footer-bg-text)) !important;
    font-size: var(--zf-d-body-size, 14px);
    font-weight: var(--zf-d-body-weight, 400);
}

.zhiroz-footer.footer-has-top-border {
    border-top: var(--zf-d-separator-width, 1px) solid var(--zf-d-content-border, var(--theme-footer-icon)) !important;
}

.zhiroz-footer-shell {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
    padding-block: 42px 24px;
}

.zhiroz-footer-layout-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--zf-d-column-gap, 36px);
    align-items: stretch;
    margin-bottom: var(--zf-d-row-gap, 28px);
}

.zhiroz-footer-layout-row:last-child { margin-bottom: 0; }
.zhiroz-footer-layout-row--divider {
    padding-bottom: calc(var(--zf-d-row-gap, 28px) / 2);
    margin-bottom: calc(var(--zf-d-row-gap, 28px) / 2);
    border-bottom: var(--zf-d-separator-width, 1px) solid color-mix(in srgb, var(--zf-d-separator, var(--theme-footer-icon)) 45%, transparent);
}
.zhiroz-footer-col-3 { grid-column: span 3; }
.zhiroz-footer-col-4 { grid-column: span 4; }
.zhiroz-footer-col-6 { grid-column: span 6; }
.zhiroz-footer-col-8 { grid-column: span 8; }
.zhiroz-footer-col-9 { grid-column: span 9; }
.zhiroz-footer-col-12 { grid-column: span 12; }

.zhiroz-footer-layout-column,
.zhiroz-footer-section { min-width: 0; }
.zhiroz-footer-layout-column { position: relative; }
.zhiroz-footer-align-right { text-align: right; }
.zhiroz-footer-align-center { text-align: center; }
.zhiroz-footer-align-left { text-align: left; }
.zhiroz-footer-align-right .zhiroz-footer-trust-content { justify-content: flex-start; }
.zhiroz-footer-align-center .zhiroz-footer-trust-content { justify-content: center; }
.zhiroz-footer-align-left .zhiroz-footer-trust-content { justify-content: flex-end; }
.zhiroz-footer-align-right .zhiroz-footer-list li { justify-content: flex-start; text-align: right; }
.zhiroz-footer-align-center .zhiroz-footer-list li { justify-content: center; text-align: center; }
.zhiroz-footer-align-left .zhiroz-footer-list li { justify-content: flex-end; text-align: left; }

.zhiroz-footer-block + .zhiroz-footer-block { margin-top: 20px; }
.zhiroz-footer-layout-column--item-dividers .zhiroz-footer-block + .zhiroz-footer-block {
    padding-top: 18px;
    border-top: var(--zf-d-separator-width, 1px) solid color-mix(in srgb, var(--zf-d-separator, var(--theme-footer-icon)) 35%, transparent);
}

@media (min-width: 992px) {
    .zhiroz-footer-layout-row--column-dividers > .zhiroz-footer-layout-column:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(var(--zf-d-column-gap, 36px) / -2);
        width: var(--zf-d-separator-width, 1px);
        background: color-mix(in srgb, var(--zf-d-separator, var(--theme-footer-icon)) 45%, transparent);
        pointer-events: none;
    }
}

.zhiroz-footer .footer-heading {
    margin: 0 0 12px;
    color: var(--zf-d-heading, var(--theme-footer-heading));
    font-size: var(--zf-d-heading-size, 16px);
    font-weight: var(--zf-d-heading-weight, 800);
    line-height: 1.7;
}

.zhiroz-footer-list,
.zhiroz-footer-page-list { margin: 0; padding: 0; }

.zhiroz-footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 8px;
    line-height: 1.9;
}
.zhiroz-footer-list li:last-child { margin-bottom: 0; }

.zhiroz-footer .footer-icon {
    flex: 0 0 auto;
    width: 18px;
    margin-top: .38em;
    color: var(--zf-d-icon, var(--theme-footer-icon));
    text-align: center;
}

.zhiroz-footer a {
    color: var(--zf-d-link, var(--theme-footer-heading));
    text-decoration: none;
}
.zhiroz-footer a:hover,
.zhiroz-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zhiroz-footer-page-list li { margin: 0 0 8px; line-height: 1.8; }
.zhiroz-footer-page-list li:last-child { margin-bottom: 0; }

.zhiroz-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.zhiroz-footer-trust-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.zhiroz-footer-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    min-height: 108px;
    padding: 8px;
    border: var(--zf-d-separator-width, 1px) solid color-mix(in srgb, var(--zf-d-separator, var(--theme-footer-icon)) 35%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--zf-d-text, var(--theme-footer-bg-text)) 3%, transparent);
}
.zhiroz-footer-logo {
    display: block;
    width: auto;
    height: var(--zhiroz-footer-logo-desktop-height, 78px);
    max-width: 96px;
    object-fit: contain;
}
.zhiroz-enamad-link,
.zhiroz-footer-optional-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.zhiroz-enamad-logo,
.zhiroz-footer-optional-badge-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 92px;
    max-height: 88px;
    object-fit: contain;
}
.zhiroz-enamad-logo { cursor: pointer; }
.zhiroz-footer-copyright { text-align: inherit; opacity: .78; }
.zhiroz-footer-mobile { display: none; }

@media (max-width: 991.98px) and (min-width: 768px) {
    .zhiroz-footer-layout-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .zhiroz-footer-col-3, .zhiroz-footer-col-4 { grid-column: span 3; }
    .zhiroz-footer-col-6, .zhiroz-footer-col-8, .zhiroz-footer-col-9, .zhiroz-footer-col-12 { grid-column: span 6; }
}

@media (max-width: 767.98px) {
    .zhiroz-footer {
        background: var(--zf-m-bg, var(--theme-footer-bg)) !important;
        color: var(--zf-m-text, var(--theme-footer-bg-text)) !important;
        font-size: var(--zf-m-body-size, 13px);
        font-weight: var(--zf-m-body-weight, 400);
    }
    .zhiroz-footer.footer-has-top-border {
        border-top: var(--zf-m-separator-width, 1px) solid var(--zf-m-content-border, var(--theme-footer-icon)) !important;
    }
    .zhiroz-footer-desktop { display: none !important; }
    .zhiroz-footer-mobile { display: block; }
    .zhiroz-footer-shell {
        width: min(100% - 28px, 680px);
        padding-block: 16px 14px;
    }
    .zhiroz-mobile-footer-rows {
        display: flex;
        flex-direction: column;
        gap: var(--zf-m-row-gap, 0px);
    }
    .zhiroz-mobile-footer-row {
        width: 100%;
        border-bottom: var(--zf-m-separator-width, 1px) solid color-mix(in srgb, var(--zf-m-separator, var(--theme-footer-icon)) 38%, transparent);
        color: inherit;
    }
    .zhiroz-mobile-footer-details > summary {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 2px 10px calc(var(--zf-m-chevron-size, 16px) + 20px);
        cursor: pointer;
        list-style: none;
        color: var(--zf-m-heading, var(--theme-footer-heading));
        font-size: var(--zf-m-heading-size, 14px);
        font-weight: var(--zf-m-heading-weight, 800);
        user-select: none;
    }
    .zhiroz-mobile-footer-details > summary::-webkit-details-marker { display: none; }
    .zhiroz-mobile-footer-details > summary::after {
        content: '';
        position: absolute;
        left: 7px;
        top: 50%;
        width: var(--zf-m-chevron-size, 16px);
        height: var(--zf-m-chevron-size, 16px);
        color: var(--zf-m-icon, var(--theme-footer-icon));
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-72%) rotate(45deg) scale(.62);
        transform-origin: 50% 50%;
        transition: transform .18s ease;
    }
    .zhiroz-mobile-footer-details[open] > summary::after {
        transform: translateY(-28%) rotate(225deg) scale(.62);
    }
    .zhiroz-mobile-footer-panel { padding: 0 2px 12px; }
    .zhiroz-mobile-footer-panel .zhiroz-footer-page-list a {
        display: block;
        padding: 7px 2px 7px var(--zf-m-submenu-indent, 16px);
        color: var(--zf-m-submenu-color, var(--zf-m-link, var(--theme-footer-heading)));
        font-size: var(--zf-m-submenu-size, 13px);
        font-weight: 600;
    }
    .zhiroz-mobile-footer-panel .zhiroz-footer-list li {
        font-size: var(--zf-m-body-size, 13px);
    }
    .zhiroz-mobile-footer-plain { padding: 12px 2px; }
    .zhiroz-mobile-footer-plain .footer-heading {
        color: var(--zf-m-heading, var(--theme-footer-heading));
        font-size: var(--zf-m-heading-size, 14px);
        font-weight: var(--zf-m-heading-weight, 800);
    }
    .zhiroz-mobile-footer-plain .footer-icon,
    .zhiroz-mobile-footer-panel .footer-icon { color: var(--zf-m-icon, var(--theme-footer-icon)); }
    .zhiroz-mobile-footer-plain a,
    .zhiroz-mobile-footer-panel a { color: var(--zf-m-link, var(--theme-footer-heading)); }
    .zhiroz-mobile-footer-plain--trust_badges .zhiroz-footer-trust-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
        gap: var(--zf-m-logo-gap, 9px);
        width: min(100%, 360px);
        margin-inline: auto;
    }
    .zhiroz-mobile-footer-plain--trust_badges .zhiroz-footer-trust-badge {
        width: auto;
        min-height: 96px;
        padding: 7px;
        border-color: color-mix(in srgb, var(--zf-m-separator, var(--theme-footer-icon)) 38%, transparent);
    }
    .zhiroz-mobile-footer-plain--trust_badges .zhiroz-footer-logo {
        height: min(var(--zhiroz-footer-logo-mobile-height, 64px), 76px);
        max-width: 92%;
    }
    .zhiroz-mobile-footer-plain--trust_badges .zhiroz-enamad-logo,
    .zhiroz-mobile-footer-plain--trust_badges .zhiroz-footer-optional-badge-image {
        max-width: 78px;
        max-height: 76px;
    }
    .zhiroz-mobile-footer-plain--social { text-align: center; }
    .zhiroz-mobile-footer-plain--copyright {
        border-bottom: 0;
        text-align: center;
        font-size: 11px;
        line-height: 1.7;
    }
}
