footer {
    --pb-footer-ink: #262b34;
    --pb-footer-muted: #505b68;
    --pb-footer-line: #dfe3e8;
    --pb-footer-accent: #8b2736;
}

footer > .footer-top,
footer > .footer-middle,
footer > #powered {
    border-top: 1px solid var(--pb-footer-line);
    color: var(--pb-footer-ink);
}

footer > .footer-top {
    padding: 24px 0;
    background: #f4f5f7;
}

footer > .footer-middle {
    padding: 22px 0;
    background: #fff;
}

footer > #powered {
    padding: 12px 0;
    background: #f4f5f7;
}

footer :is(.footer-top, .footer-middle, #powered) > .container > .row {
    display: grid;
    gap: 16px;
    margin: 0;
}

footer :is(.footer-top, .footer-middle, #powered) > .container > .row::before,
footer :is(.footer-top, .footer-middle, #powered) > .container > .row::after {
    display: none;
}

footer :is(.footer-top, .footer-middle, #powered) > .container > .row > div {
    width: auto;
    min-width: 0;
    margin: 0;
    float: none;
}

footer :is(.footer-top, .footer-middle, #powered) > .container > .row > div {
    padding: 0;
}

footer > .footer-top > .container > .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1.12fr);
    align-items: start;
}

footer > .footer-top > .container > .row > .socials {
    display: block !important;
    padding: 0;
}

footer .footer-top .socials > iframe {
    display: block;
    border: 1px solid var(--pb-footer-line) !important;
    border-radius: 14px;
    box-sizing: border-box;
}

footer :is(.footer-top, .footer-middle) .oct-footer-h3 {
    margin: 0 0 12px;
    padding: 0;
    color: var(--pb-footer-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

footer .footer-top :is(.oct-footer-text, p.subscribe, .contacts > ul) {
    color: var(--pb-footer-muted);
    line-height: 1.5;
}

footer .footer-top .oct-footer-text p {
    margin: 0 0 8px;
    color: inherit;
}

footer .footer-top .socials-box {
    margin: 14px 0 0;
}

footer .footer-top .contacts > ul {
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--pb-footer-line);
}

footer .footer-top .contacts > ul > li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: baseline;
    gap: 5px;
    padding: 0;
    margin: 0 0 8px;
    color: var(--pb-footer-muted);
    line-height: 1.5;
}

footer .footer-top .contacts > ul > li:last-child {
    margin-bottom: 0;
}

footer .footer-top .contacts > ul > li > span {
    width: auto;
    margin: 0;
    color: var(--pb-footer-accent);
    text-align: center;
}

footer .footer-top .contacts :is(a[href^="tel:"], a[href^="mailto:"]) {
    width: fit-content;
    max-width: 100%;
    color: var(--pb-footer-accent);
    font-weight: 600;
    overflow-wrap: anywhere;
}

footer #static-subscribe-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    row-gap: 8px;
}

footer #static-subscribe-form-footer > .input-box {
    height: 44px;
    margin: 0;
    background: transparent;
}

footer #static-subscribe-form-footer #newsletter {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--pb-footer-line);
    border-radius: 10px 0 0 10px;
    background: #f6f7f8;
    color: var(--pb-footer-ink);
    box-sizing: border-box;
    font-size: 16px;
    line-height: normal;
}

footer #static-subscribe-form-footer #newsletter::placeholder {
    color: var(--pb-footer-muted);
    font-size: 14px;
    opacity: 1;
}

footer #static-subscribe-form-footer > .actions {
    position: static;
    width: auto;
    height: 44px;
    margin: 0;
}

footer #static-subscribe-form-footer #static-subscribe-button-footer {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--pb-footer-accent) !important;
    color: #fff !important;
    line-height: 1;
}

footer #static-subscribe-button-footer i {
    color: inherit !important;
}

footer #static-subscribe-form-footer #static-subscribe-button-footer:hover {
    background: #6f1e2a !important;
}

footer #static-subscribe-form-footer .terms-footer-block {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--pb-footer-muted);
    font-size: 12px;
    line-height: 1.45;
}

footer #static-subscribe-form-footer .terms-footer-block a {
    color: var(--pb-footer-accent);
}

footer #static-subscribe-form-footer input[name="terms"] {
    margin: 0 0 0 4px;
    vertical-align: middle;
    accent-color: var(--pb-footer-accent);
}

footer #static-subscribe-wrapper-footer .output-message {
    color: var(--pb-footer-ink) !important;
}

footer > .footer-middle > .container > .row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

footer .footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-middle li {
    margin: 0 0 5px;
    padding: 0;
}

footer .footer-middle .container .row ul > li > a {
    display: inline-block;
    padding: 2px 0;
    color: var(--pb-footer-muted);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

footer .footer-middle .container .row ul > li > a:hover {
    color: var(--pb-footer-accent);
    text-decoration: underline;
}

footer > #powered > .container > .row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

footer #powered .payment {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

footer #powered .payment > span {
    margin: 0;
    opacity: 1;
}

footer #powered .copyright {
    margin: 0;
    color: var(--pb-footer-muted);
    font-size: 12px;
    line-height: 1.45;
}

footer > #powered .right .copyright a {
    color: var(--pb-footer-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer :is(.footer-top, .footer-middle) :is(a[href], button, input):focus-visible {
    outline: 2px solid var(--pb-footer-accent);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    footer > .footer-top > .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    footer > .footer-top > .container > .row > .socials {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    footer > .footer-top > .container > .row,
    footer > #powered > .container > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    footer > .footer-middle > .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    footer #powered .copyright {
        text-align: left;
    }
}

#back-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    margin: 0;
}

#back-top > a {
    display: block;
    width: 48px;
    height: 48px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    color: #8b2736;
    box-shadow: 0 3px 12px rgba(38, 43, 52, .12);
    box-sizing: border-box;
}

#back-top > a:hover {
    border-color: #dec2c8;
    background: #f8eef0;
    color: #6f1e2a;
}

#back-top > a:focus-visible {
    outline: 2px solid #8b2736;
    outline-offset: 2px;
}

#back-top > a > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: none !important;
}

#back-top > a > span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(2px) rotate(45deg);
}

@media (max-width: 991.98px) {
    #back-top > a {
        width: 44px;
        height: 44px;
    }
}
