/* Footer alignment overrides, loaded after the main child stylesheet. */
.ow-footer .ow-shell {
    width: min(1540px, calc(100% - 72px));
    margin-right: auto;
    margin-left: auto;
}

.ow-footer-main {
    overflow: hidden;
    padding-bottom: 96px;
}

.ow-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.28fr) repeat(3, minmax(150px, .82fr)) minmax(250px, 1fr) !important;
    gap: clamp(34px, 4vw, 68px) !important;
    align-items: start !important;
    justify-content: center !important;
    padding-top: clamp(54px, 5vw, 78px) !important;
    padding-bottom: 54px !important;
}

.ow-footer-brand,
.ow-footer-links,
.ow-footer-contact {
    min-width: 0;
}

.ow-footer-brand {
    grid-column: auto !important;
}

.ow-footer-logo {
    display: inline-flex;
    justify-content: flex-start;
    margin-bottom: 22px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 16px;
}

.ow-footer-logo img {
    width: min(220px, 100%);
    height: auto;
    display: block;
}

.ow-footer-brand p {
    max-width: 340px;
}

.ow-footer-links h2,
.ow-footer-contact h2 {
    margin-bottom: 24px;
    text-align: left;
}

.ow-footer-links a {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    line-height: 1.25;
}

.ow-footer-links a::before {
    content: none !important;
}

.ow-footer-links a span {
    width: 14px;
    color: #ff6b12;
    font-size: 22px;
    line-height: 1;
}

.ow-footer-contact p {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    max-width: 300px;
}

.ow-footer-contact p > span {
    display: grid;
    width: 30px;
    place-items: start center;
}

.ow-footer-reviews {
    max-width: 300px;
}

.ow-footer-service-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.ow-footer-service-row article {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    justify-content: center !important;
    min-height: 134px;
    padding: 30px clamp(22px, 3vw, 42px) !important;
    border-top: 0 !important;
}

.ow-footer-service-row article + article {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.ow-footer-service-row article > span {
    display: grid;
    place-items: center;
}

.ow-footer-bottom {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, auto) minmax(340px, auto) !important;
    justify-content: center !important;
    gap: clamp(24px, 4vw, 56px) !important;
    text-align: left !important;
}

.ow-footer-legal {
    justify-content: center;
}

.ow-footer-payments {
    justify-content: flex-end;
}

.ow-footer-credit {
    text-align: left;
}

@media (max-width: 1100px) {
    .ow-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ow-footer-brand {
        grid-column: 1 / -1 !important;
    }

    .ow-footer-service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ow-footer-service-row article:nth-child(odd) {
        border-left: 0;
    }

    .ow-footer-service-row article:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .ow-footer-bottom {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .ow-footer-payments,
    .ow-footer-legal {
        justify-content: center;
    }

    .ow-footer-credit {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .ow-footer .ow-shell {
        width: min(100% - 28px, 720px);
    }

    .ow-footer-main {
        padding-bottom: 112px;
    }

    .ow-footer-benefits .ow-shell,
    .ow-footer-grid,
    .ow-footer-service-row {
        grid-template-columns: 1fr !important;
    }

    .ow-footer-grid {
        gap: 28px;
    }

    .ow-footer-brand p,
    .ow-footer-contact p,
    .ow-footer-reviews {
        max-width: none;
    }

    .ow-footer-links a {
        width: 100%;
    }

    .ow-footer-service-row article,
    .ow-footer-service-row article + article {
        min-height: 0;
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .ow-footer-service-row article:first-child {
        border-top: 0;
    }
}

/* Definitive mobile footer pass: keep every label readable and neatly aligned. */
@media (max-width: 760px) {
    .ow-footer,
    .ow-footer * {
        box-sizing: border-box;
        letter-spacing: 0 !important;
        text-shadow: none !important;
    }

    .ow-footer {
        margin-top: 36px !important;
        overflow: hidden;
        font-family: Manrope, Arial, sans-serif !important;
        background: #071a31 !important;
    }

    .ow-footer .ow-shell {
        width: min(100% - 28px, 520px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .ow-footer-benefits {
        padding: 16px 0 28px !important;
        background: #fff !important;
    }

    .ow-footer-benefits .ow-shell {
        display: grid !important;
        grid-template-columns: 1fr !important;
        border-radius: 10px !important;
    }

    .ow-footer-benefits article,
    .ow-footer-benefits article:nth-child(odd),
    .ow-footer-benefits article + article {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 14px !important;
        min-height: 0 !important;
        padding: 16px !important;
        border-left: 0 !important;
        border-top: 1px solid #e5ebf3 !important;
        text-align: left !important;
    }

    .ow-footer-benefits article:first-child {
        border-top: 0 !important;
    }

    .ow-footer-benefits span {
        width: 42px !important;
        height: 42px !important;
        color: #ff6b12 !important;
    }

    .ow-footer-benefits svg {
        width: 30px !important;
        height: 30px !important;
    }

    .ow-footer-benefits strong,
    .ow-footer-benefits small {
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .ow-footer-benefits strong {
        color: #071a37 !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        line-height: 1.25 !important;
    }

    .ow-footer-benefits small {
        color: #42536b !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }

    .ow-footer-main {
        padding-bottom: 96px !important;
        background: linear-gradient(135deg, #071a31 0%, #092442 100%) !important;
    }

    .ow-footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        padding: 34px 0 28px !important;
        text-align: center !important;
    }

    .ow-footer-brand,
    .ow-footer-links,
    .ow-footer-contact {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ow-footer-logo {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 18px !important;
    }

    .ow-footer-logo img {
        width: min(236px, 100%) !important;
        height: auto !important;
    }

    .ow-footer-brand p,
    .ow-footer-brand li,
    .ow-footer-links a,
    .ow-footer-contact,
    .ow-footer-contact p,
    .ow-footer-contact a {
        color: rgba(255, 255, 255, .96) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.55 !important;
        overflow: visible !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .ow-footer-brand p {
        max-width: 100% !important;
        margin: 0 auto 20px !important;
    }

    .ow-footer-brand ul,
    .ow-footer-links ul {
        gap: 10px !important;
        justify-items: center !important;
    }

    .ow-footer-brand li {
        justify-content: center !important;
    }

    .ow-footer-links h2,
    .ow-footer-contact h2 {
        margin: 0 0 14px !important;
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 950 !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .ow-footer-links a {
        display: flex !important;
        width: 100% !important;
        min-height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 0 0 8px !important;
        padding: 7px 10px !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, .045) !important;
    }

    .ow-footer-links a span {
        flex: 0 0 auto !important;
        width: auto !important;
        color: #ff7a1a !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .ow-footer-contact p {
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        gap: 10px !important;
        max-width: 100% !important;
        margin: 0 0 12px !important;
        padding: 12px !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, .045) !important;
        text-align: left !important;
    }

    .ow-footer-contact p > span {
        display: grid !important;
        width: 32px !important;
        place-items: start center !important;
        color: #ff7a1a !important;
    }

    .ow-footer-contact p svg {
        width: 22px !important;
        height: 22px !important;
    }

    .ow-footer-contact p a,
    .ow-footer-contact p:not(:has(a)) {
        text-align: left !important;
    }

    .ow-footer-reviews {
        max-width: 100% !important;
        margin-top: 16px !important;
        padding: 14px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, .06) !important;
        text-align: center !important;
    }

    .ow-footer-reviews strong {
        display: block !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        line-height: 1.35 !important;
    }

    .ow-footer-reviews strong span {
        display: block !important;
        margin-bottom: 4px !important;
        color: #ffb000 !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
    }

    .ow-footer-reviews small {
        display: block !important;
        color: rgba(255, 255, 255, .82) !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .ow-footer-service-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        border-top: 1px solid rgba(255, 255, 255, .12) !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    }

    .ow-footer-service-row article,
    .ow-footer-service-row article + article {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: center !important;
        min-height: 0 !important;
        padding: 18px 0 !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, .12) !important;
        text-align: left !important;
    }

    .ow-footer-service-row article:first-child {
        border-top: 0 !important;
    }

    .ow-footer-service-row span {
        color: rgba(255, 255, 255, .88) !important;
    }

    .ow-footer-service-row svg {
        width: 34px !important;
        height: 34px !important;
    }

    .ow-footer-service-row strong {
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        line-height: 1.25 !important;
    }

    .ow-footer-service-row small {
        color: rgba(255, 255, 255, .84) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
    }

    .ow-footer-bottom {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 22px 0 !important;
        color: rgba(255, 255, 255, .86) !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        text-align: center !important;
    }

    .ow-footer-bottom p {
        margin: 0 !important;
        color: rgba(255, 255, 255, .86) !important;
    }

    .ow-footer-legal,
    .ow-footer-payments {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 12px !important;
    }

    .ow-footer-legal a {
        color: rgba(255, 255, 255, .86) !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .ow-footer-payments span {
        min-width: 58px !important;
        min-height: 32px !important;
        color: #071a37 !important;
        font-size: 11px !important;
        font-weight: 900 !important;
    }

    .ow-footer-credit {
        padding: 0 0 24px !important;
        color: rgba(255, 255, 255, .78) !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .ow-footer .ow-shell {
        width: min(100% - 20px, 520px) !important;
    }

    .ow-footer-links a,
    .ow-footer-contact p {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }
}

/* Final footer readability lock: prevent theme/global text colors from bleeding into the dark footer. */
.ow-footer,
.ow-footer-main,
.ow-footer-grid,
.ow-footer-contact {
    color: #ffffff !important;
}

.ow-footer h1,
.ow-footer h2,
.ow-footer h3,
.ow-footer h4,
.ow-footer h5,
.ow-footer h6,
.ow-footer strong,
.ow-footer b {
    color: #ffffff !important;
    opacity: 1 !important;
}

.ow-footer p,
.ow-footer li,
.ow-footer a,
.ow-footer small,
.ow-footer em,
.ow-footer .ow-footer-brand p,
.ow-footer .ow-footer-brand li,
.ow-footer .ow-footer-links a,
.ow-footer .ow-footer-contact p,
.ow-footer .ow-footer-contact a,
.ow-footer .ow-footer-bottom,
.ow-footer .ow-footer-bottom p,
.ow-footer .ow-footer-legal a,
.ow-footer .ow-footer-credit {
    color: rgba(255, 255, 255, .92) !important;
    opacity: 1 !important;
}

.ow-footer .ow-footer-contact p span,
.ow-footer .ow-footer-contact svg,
.ow-footer .ow-footer-links a span,
.ow-footer .ow-footer-brand li::before {
    color: #ff7a1a !important;
    border-color: #ff7a1a !important;
    opacity: 1 !important;
}

.ow-footer .ow-footer-reviews strong,
.ow-footer .ow-footer-reviews small {
    color: #ffffff !important;
}

.ow-footer .ow-footer-reviews strong span {
    color: #ffb000 !important;
}

.ow-footer .ow-footer-service-row span,
.ow-footer .ow-footer-service-row svg {
    color: rgba(255, 255, 255, .86) !important;
}

.ow-footer .ow-footer-service-row small {
    color: rgba(255, 255, 255, .88) !important;
}

.ow-footer .ow-footer-payments span {
    color: #071a37 !important;
    background: #ffffff !important;
}

/* The benefits strip sits on a white background, so it needs dark text even inside .ow-footer. */
.ow-footer .ow-footer-benefits,
.ow-footer .ow-footer-benefits article,
.ow-footer .ow-footer-benefits div {
    color: #071a37 !important;
}

.ow-footer .ow-footer-benefits strong,
.ow-footer .ow-footer-benefits b {
    color: #071a37 !important;
    opacity: 1 !important;
}

.ow-footer .ow-footer-benefits small,
.ow-footer .ow-footer-benefits p,
.ow-footer .ow-footer-benefits a {
    color: #4b5f78 !important;
    opacity: 1 !important;
}

.ow-footer .ow-footer-benefits span,
.ow-footer .ow-footer-benefits svg {
    color: #ff6b12 !important;
    opacity: 1 !important;
}

/* 2026-11-27: categoriekaarten home niet meer afkappen op laptopbreedte (901-1500px) */
@media (min-width: 901px) and (max-width: 1500px) {
    .ow-home .ow-category-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
        padding: 16px 12px;
    }
    .ow-home .ow-category-card img {
        width: 96px;
        height: 96px;
    }
    .ow-home .ow-category-card > span {
        min-width: 0;
    }
}

/* 2026-11-27: privacytekst bij afrekenen even groot als overige kleine tekst */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 0 12px !important;
}

/* 2026-11-27: productkaart - 'Bekijk product' + 'Direct afrekenen' naast elkaar */
.ow-product-card .ow-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}
.ow-product-card .ow-card-actions > .ow-product-button:only-child {
    grid-column: 1 / -1;
}
.ow-product-card .ow-card-direct {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
}
.ow-product-card .ow-card-actions .ow-product-button {
    width: 100% !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    border: 0 !important;
    cursor: pointer;
    font-family: inherit !important;
    box-sizing: border-box;
}
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct {
    background: #1f8a3b !important;
}
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct:hover,
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct:focus {
    background: #176d2e !important;
}
@media (max-width: 1180px) {
    .ow-product-card .ow-card-actions {
        grid-template-columns: 1fr;
    }
}

/* 2026-11-27: meldingen (verwijderd / ongedaan maken) in de winkelwagen zelf tonen */
.ow-cart-notices:empty { display: none; }
.ow-cart-notices .woocommerce-message,
.ow-cart-notices .woocommerce-info,
.ow-cart-notices .woocommerce-error {
    margin: 0 0 14px !important;
    padding: 12px 16px !important;
    border: 1px solid #b7dfc1 !important;
    border-radius: 8px !important;
    background: #f1faf3 !important;
    color: #0b2545 !important;
    font-size: 14px !important;
    list-style: none !important;
}
.ow-cart-notices .woocommerce-error { border-color: #e7b4b4 !important; background: #fdf2f2 !important; }
.ow-cart-notices .woocommerce-message::before,
.ow-cart-notices .woocommerce-info::before,
.ow-cart-notices .woocommerce-error::before { display: none !important; }
.ow-cart-notices a { font-weight: 700; text-decoration: underline; }

/* 2026-11-28: knoppen in merkstijl - oranje = kopen, omlijnd navy = bekijken */
.ow-product-card .ow-card-actions .ow-product-button {
    background: #fff !important;
    color: #0b2545 !important;
    box-shadow: inset 0 0 0 1.5px #0b2545 !important;
}
.ow-product-card .ow-card-actions .ow-product-button:hover,
.ow-product-card .ow-card-actions .ow-product-button:focus {
    background: #0b2545 !important;
    color: #fff !important;
}
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct {
    background: #f28e00 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct:hover,
.ow-product-card .ow-card-actions .ow-product-button.ow-product-button--direct:focus {
    background: #d97b00 !important;
    color: #fff !important;
}

/* 2026-11-28: knoppen naast elkaar alleen als ze passen, anders onder elkaar */
.ow-product-card .ow-card-actions {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
    width: 100%;
    min-width: 0;
}
.ow-product-card .ow-card-actions > *,
.ow-product-card .ow-card-direct {
    min-width: 0;
}
