/* The Shop component identifies the #1125 primary row. */
#colophon .site-primary-footer-wrap:has(.veles-footer-shop) {
    padding-inline: 20px;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 36px 32px;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) > .site-footer-section {
    display: block;
    min-width: 0;
    margin: 0;
    text-align: left;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) :is(.footer-widget-area, .widget_block) {
    width: 100%;
    margin: 0;
    text-align: left;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) #block-62 :is(.uagb-infobox__content-wrap, .uagb-ifb-content, .uagb-ifb-image-content) {
    margin: 0;
    padding: 0;
    text-align: left;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) #block-62 img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) #block-62 .uagb-ifb-separator {
    margin: 12px 0;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) #block-62 .uagb-ifb-desc {
    margin: 0;
    color: #bfbfbf !important;
    font-size: 15px;
    line-height: 1.55;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) :is(.wp-block-uagb-advanced-heading, .veles-footer-shop) {
    margin: 0;
    padding: 0;
    text-align: left;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) :is(.uagb-heading-text, .mailpoet-heading) {
    margin: 0 0 12px !important;
    padding: 0;
    color: #eee !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    letter-spacing: 0.04em !important;
    text-align: left !important;
    text-transform: uppercase;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .mailpoet-heading span {
    font-family: inherit !important;
}

/* The shortcode wrapper leaves empty paragraphs around the form. */
#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) #block-97 > p:empty {
    display: none;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) :is(.uagb-separator, .uagb-desc-text br) {
    display: none;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .uagb-desc-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .uagb-desc-text a {
    display: flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    color: #bfbfbf !important;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .uagb-desc-text a:is(:hover, :focus-visible) {
    color: var(--veles-accent, #fca004) !important;
    text-decoration: underline;
}

#colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .uagb-desc-text a:focus-visible {
    outline: 2px solid var(--veles-accent, #fca004);
    outline-offset: 2px;
}

@media (max-width: 1079px) {
    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) > .site-footer-primary-section-5 {
        grid-column: span 2;
    }

    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .site-footer-primary-section-5 > .footer-widget-area {
        max-width: 360px;
    }
}

@media (max-width: 679px) {
    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) > .site-footer-primary-section-5 {
        grid-column: auto;
    }

    #colophon .site-primary-footer-inner-wrap:has(.veles-footer-shop) .uagb-desc-text a {
        min-height: 44px;
    }
}
