body.mvo-configurator-section-layout #colophon.site-footer {
    background-color: var(--child-color-footer-bg, #dbdbdb);
    border-top: 0;
}

body.child-checkout-minimal-footer #colophon.site-footer {
    padding: 1.25rem 0;
    background: var(--child-color-footer-bg, #fff);
    border-top: 1px solid var(--child-color-footer-border, #e8e8e8);
}

.child-checkout-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    font-size: .875rem;
    line-height: 1.5;
}

.child-checkout-footer-copyright {
    margin: 0;
}

.child-checkout-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.child-checkout-footer-links a {
    text-decoration: none;
}

.child-checkout-footer-links a:hover,
.child-checkout-footer-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .25em;
}

/* Company information takes half the footer; each menu takes a quarter. */
#colophon.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--child-color-footer-border, #e8e8e8);
}

.child-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.child-footer-inner.child-footer-three-menus {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.child-footer-company,
.child-footer-menu-column {
    overflow-wrap: anywhere;
}

#colophon .child-footer-heading {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.child-footer-widget {
    margin-bottom: 1.5rem;
}

.child-footer-company > :last-child,
.child-footer-widget > :last-child {
    margin-bottom: 0;
}

#colophon .child-footer-menu,
#colophon .child-footer-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#colophon .child-footer-menu ul {
    padding-left: 1rem;
}

.child-footer-menu a {
    display: inline-block;
    padding: 0.35rem 0;
    text-decoration: none;
}

.child-footer-menu a:hover,
.child-footer-menu a:focus-visible,
.child-footer-menu .current-menu-item > a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* WPML supplies menu markup and interaction; the theme supplies submenu visibility. */
#colophon .child-footer-wpml .child-footer-menu > .wpml-ls-menu-item.menu-item-has-children {
    position: relative;
    width: 100%;
    max-width: 14rem;
}

#colophon .child-footer-wpml .wpml-ls-menu-item.menu-item-has-children > a {
    display: block;
    position: relative;
    padding: .65rem 2rem .65rem .8rem;
    border: 1px solid var(--child-color-field-border, #ccc);
    border-radius: var(--child-radius-control, 4px);
    background: var(--child-color-field-bg, #fff);
    color: var(--child-color-footer-link, #333);
    text-decoration: none;
}

#colophon .child-footer-wpml .wpml-ls-menu-item.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    inset-inline-end: .8rem;
    top: 50%;
    width: .45rem;
    height: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-75%) rotate(45deg);
}

#colophon .child-footer-wpml .wpml-ls-menu-item > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 10;
    min-width: 100%;
    margin: 0;
    padding: .25rem 0;
    border: 1px solid var(--child-color-field-border, #ccc);
    border-radius: var(--child-radius-surface, 4px);
    background: var(--child-color-field-bg, #fff);
    box-shadow: 0 4px 12px rgb(var(--child-color-shadow-rgb, 0 0 0) / 12%);
}

#colophon .child-footer-wpml .wpml-ls-menu-item:hover > ul.sub-menu,
#colophon .child-footer-wpml .wpml-ls-menu-item:focus-within > ul.sub-menu {
    display: block;
}

#colophon .child-footer-wpml .wpml-ls-menu-item > ul.sub-menu a {
    display: block;
    padding: .5rem .8rem;
    color: var(--child-color-footer-link, #333);
}

#colophon .child-footer-wpml .wpml-ls-menu-item > ul.sub-menu a:hover,
#colophon .child-footer-wpml .wpml-ls-menu-item > ul.sub-menu a:focus-visible {
    background: var(--child-color-surface-hover, #f1f3f5);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .child-footer-inner.child-footer-three-menus {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .child-footer-three-menus .child-footer-company { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .child-footer-inner,
    .child-footer-inner.child-footer-three-menus {
        grid-template-columns: minmax(0, 1fr);
    }
}
