/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.3
 Text Domain:  woodmart
*/

/* ------------------------------------------------------------------
   Footer rebuild — axismelt.com — 2026-05-23
   ------------------------------------------------------------------ */

/* Make the footer-1 column actually span the row at all breakpoints */
.wd-footer .footer-column-1 {
    --wd-col-xs: 12 !important;
    --wd-col-sm: 12 !important;
    --wd-col-md: 12 !important;
    --wd-col-lg: 12 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* The cms_block 1033 already lays out Info | About | payments as flex columns,
   give it the full width and a sensible inner max-width for desktop. */
.wd-footer .footer-column-1 > .wd-widget {
    width: 100%;
    max-width: 100%;
}
.wd-footer .footer-column-1 .elementor-1033 {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings -> white on dark navy bg, real contrast */
.wd-footer .footer-column-1 .elementor-widget-heading .elementor-heading-title,
.wd-footer .footer-widget h1,
.wd-footer .footer-widget h2,
.wd-footer .footer-widget h3,
.wd-footer .footer-widget h4,
.wd-footer .footer-widget h5,
.wd-footer .footer-widget h6,
.wd-footer .footer-widget .widget-title {
    color: #ffffff !important;
    font-weight: 600;
}

/* Body text in footer -> light grey for readability */
.wd-footer .footer-widget,
.wd-footer .footer-widget p,
.wd-footer .footer-widget .elementor-text-editor,
.wd-footer .footer-widget .elementor-icon-list-text {
    color: #d6d8e5;
}
.wd-footer .footer-widget a {
    color: #d6d8e5;
}
.wd-footer .footer-widget a:hover {
    color: #ffffff;
}

/* Payment cards row -> kill any leftover top border, ensure white pill */
.wd-footer .elementor-element[data-id="eab6d5d"] {
    border: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
}

/* Each payment card image wrapper -> white pill */
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-widget-image {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px;
}
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-widget-image .elementor-widget-container {
    background: transparent !important;
    line-height: 0;
}
.wd-footer .elementor-element[data-id="eab6d5d"] img {
    background: transparent !important;
    max-height: 24px;
    width: auto !important;
    height: auto !important;
}

/* Hide woodmart default payments PNG in copyright bar (the duplicate row) */
.wd-copyrights .wd-col-end img[src*="/themes/woodmart/images/payments.png"],
.wd-copyrights .wd-col-end > img:only-child {
    display: none !important;
}

/* Kill the thin border on the copyrights wrapper (the visible white-ish bar) */
.wd-footer .wd-copyrights,
.wd-footer .wd-copyrights.copyrights-wrapper {
    border-top: 0 !important;
}

/* Copyrights text -> light, centered */
.wd-footer .wd-copyrights {
    color: #9fa3b8;
    text-align: center;
}
.wd-footer .wd-copyrights .container {
    justify-content: center !important;
}
.wd-footer .wd-copyrights .wd-col-end,
.wd-footer .wd-copyrights .wd-col-start {
    text-align: center;
    justify-content: center;
}

/* Logo center on tablet/mobile */
@media (max-width: 1024px) {
    .wd-footer .footer-column-1 .elementor-widget-wd_image_or_svg .wd-image {
        text-align: center !important;
    }
}

/* ---- MOBILE (<=767) — centre everything, stack columns ---- */
@media (max-width: 767px) {
    .wd-footer .footer-column-1,
    .wd-footer .footer-widget,
    .wd-footer .footer-widget * {
        text-align: center !important;
    }
    .wd-footer .footer-column-1 .elementor-icon-list-items {
        align-items: center !important;
    }
    .wd-footer .footer-column-1 .elementor-icon-list-item {
        justify-content: center !important;
    }
    .wd-footer .footer-column-1 .wd-image,
    .wd-footer .footer-column-1 .elementor-widget-wd_image_or_svg .wd-image,
    .wd-footer .footer-column-1 .elementor-widget-image {
        text-align: center !important;
    }
    .wd-footer .footer-column-1 .elementor-widget-wd_image_or_svg img,
    .wd-footer .footer-column-1 .elementor-widget-image img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Stack two-col Info+About */
    .wd-footer .footer-column-1 .elementor-element[data-id="row_two_col"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    .wd-footer .footer-column-1 .elementor-element[data-id="row_two_col"] > .elementor-element {
        width: 100% !important;
        max-width: 360px;
    }
}

/* ----- Two-column Info | About — force 50/50 layout (Elementor `--width:100%` override) ----- */
.wd-footer .footer-column-1 .elementor-element[data-id="row_two_col"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
    align-items: flex-start !important;
}
.wd-footer .footer-column-1 .elementor-element[data-id="col_info"],
.wd-footer .footer-column-1 .elementor-element[data-id="col_about"] {
    --width: auto !important;
    flex: 1 1 0 !important;
    min-width: 240px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* ----- Heading style baseline ----- */
.wd-footer .footer-column-1 .elementor-widget-heading .elementor-heading-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.3px;
}

/* ----- Payment cards: enforce row, white pills, image rendering ----- */
.wd-footer .elementor-element[data-id="eab6d5d"] {
    --width: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 20px !important;
    margin-top: 12px !important;
}
.wd-footer .elementor-element[data-id="eab6d5d"] > .elementor-element {
    --width: auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
}
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-widget-image {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: 64px !important;
    box-sizing: border-box !important;
    /* Kill the qa-trust-signals mu-plugin translateX shift on these widgets — they're inside a centered row */
    transform: none !important;
}
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-widget-image .elementor-widget-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-widget-image img {
    background: transparent !important;
    max-height: 24px !important;
    height: 24px !important;
    width: auto !important;
    display: inline-block !important;
    object-fit: contain !important;
}
/* Per-card sizing — width fixed so wrapper isn't dependent on image-natural-size during lazy load */
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(1) { min-width: 72px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(1) img { max-height: 22px !important; height: 22px !important; width: 48px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(2) { min-width: 60px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(2) img { max-height: 26px !important; height: 26px !important; width: 36px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(3) { min-width: 110px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(3) img { max-height: 22px !important; height: 22px !important; width: 86px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(4) { min-width: 60px !important; }
.wd-footer .elementor-element[data-id="eab6d5d"] .elementor-element:nth-child(4) img { max-height: 26px !important; height: 26px !important; width: 32px !important; }

/* Insurance: hide any leftover Useful Links widget (shouldn't render anymore) */
.wd-footer .widget_nav_menu .widget-title:first-letter,
.wd-footer .menu-footer-menu-useful-links-container { /* defensive */
}
.wd-footer aside ~ .widget_nav_menu,
.wd-footer .footer-widget.widget_nav_menu {
    display: none !important;
}
