/* Keep the existing UX Block editable; scope every rule to its footer classes. */
.section:has(> .section-content > .fetishworld-footer-row) {
    padding: 72px 0 32px;
    background: #3a1830;
}

.fetishworld-footer-row,
.fw-footer-bottom {
    width: calc(100% - clamp(40px, 10vw, 160px));
    max-width: 1280px;
    margin-inline: auto !important;
    color: #f7f3ef;
    font-family: Inter, Arial, sans-serif;
}

.fetishworld-footer-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.05fr) minmax(0, 2.6fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

/* Flatsome's clearfix would otherwise become an empty grid item and extra gap. */
.fetishworld-footer-row::after,
.fw-footer-links::after,
.fw-footer-bottom .row::after {
    content: none;
}

/* Five equal link columns independent of Flatsome's twelve-column grid. */
.fetishworld-footer-row > .col,
.fw-footer-links > .col {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
}

/* The block outputs ID-specific padding rules after the theme's stylesheet. */
.fetishworld-footer-row > .col > .col-inner,
.fw-footer-links > .col > .col-inner {
    padding: 0 !important;
}

.fw-footer-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    align-items: start;
}

.fetishworld-footer-row .fw-footer-title {
    margin: 0;
    color: #f7f3ef;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.01em;
}

.fetishworld-footer-row .fw-footer-intro {
    max-width: 350px;
    margin: 14px 0 0;
    color: #d1c3cc;
    font-size: 14px;
    line-height: 1.7;
}

.fetishworld-footer-row .fw-footer-note {
    margin: 18px 0 0;
    color: #b9a7b2;
    font-size: 12px;
}

.fw-footer-links .fw-footer-heading {
    margin: 0 0 16px;
    min-height: 2.8em;
    color: #c38a58;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.fw-footer-links .fw-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.fw-footer-nav a {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding-block: 4px;
    color: #d1c3cc;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.fw-footer-nav .ux-menu-link__text {
    white-space: normal;
}

.fw-footer-nav a:hover {
    color: #f7f3ef;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fetishworld-footer-row a:focus-visible {
    outline: 2px solid #f7f3ef;
    outline-offset: 4px;
    border-radius: 3px;
}

.fw-footer-buttons {
    margin: 0 !important;
}

.fw-footer-buttons > .col {
    padding: 0;
}

.fw-footer-buttons > .col > .col-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 26px 0 0 !important;
}

.fw-footer-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.fw-footer-buttons .fw-footer-primary {
    background: #f7f3ef;
    color: #542b49;
}

.fw-footer-buttons .fw-footer-primary:hover {
    background: #e9dfe5;
    color: #3a1830;
}

.fw-footer-buttons .fw-footer-secondary {
    background: transparent;
    color: #f7f3ef;
    border-color: #8b7082;
}

.fw-footer-buttons .fw-footer-secondary:hover {
    background: #542b49;
    color: #fff;
    border-color: #d1c3cc;
}

.fw-footer-bottom {
    margin-top: 56px;
}

.fw-footer-bottom .col {
    padding: 0;
}

.fw-footer-bottom .is-divider {
    width: 100%;
    max-width: none;
    margin: 0 0 24px !important;
}

.fw-footer-bottom .row {
    margin: 0 !important;
    align-items: start;
}

.fw-footer-bottom .col-inner {
    padding: 0 !important;
}

.fw-footer-bottom p {
    margin: 0;
    color: #b9a7b2 !important;
    font-size: 12px;
    line-height: 1.7;
}

.fw-footer-bottom .row > .col:first-child {
    padding-right: 24px;
}

/* The block already contains copyright; suppress the duplicate theme credit only here. */
#footer:has(.fetishworld-footer-row) > .absolute-footer {
    display: none;
}

@media (max-width: 1099px) {
    .fetishworld-footer-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .fw-footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .section:has(> .section-content > .fetishworld-footer-row) {
        padding-block: 48px 28px;
    }

    .fw-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }

    .fw-footer-nav a {
        min-height: 44px;
        font-size: 14px;
    }

    .fw-footer-links .fw-footer-nav {
        gap: 0;
    }

    .fw-footer-bottom .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .fw-footer-bottom .row > .col {
        max-width: none;
        padding: 0;
    }

    .fw-footer-bottom .text-right {
        text-align: left;
    }
}
