.cpf-footer,
.cpf-footer * { box-sizing: border-box; }

.cpf-footer {
    width: 100%;
    background: var(--cpf-bg, #151714);
    color: var(--cpf-text, #f4f2ec);
    font: inherit;
    line-height: 1.5;
}

.cpf-shell {
    width: min(calc(100% - 48px), var(--cpf-max, 1440px));
    margin-inline: auto;
}

.cpf-kicker {
    color: var(--cpf-muted, #a8aca2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cpf-kicker--accent { color: var(--cpf-accent, #d9ff62); }

/* Compact manufacturer strip */
.cpf-partners {
    background: #f3f3ef;
    color: #151714;
    border-bottom: 1px solid rgba(21, 23, 20, .08);
}

.cpf-partners__bar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: stretch;
    min-height: 92px;
}

.cpf-partners__label {
    display: flex;
    align-items: center;
    padding-right: 24px;
    border-right: 1px solid rgba(21, 23, 20, .10);
}

.cpf-partners__label span {
    color: #5f625d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cpf-partners__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
}

.cpf-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 16px 22px;
    border-right: 1px solid rgba(21, 23, 20, .08);
    text-decoration: none !important;
    transition: background .2s ease;
}

.cpf-partner:last-child { border-right: 0; }
.cpf-partner:hover { background: rgba(255,255,255,.68); }

.cpf-partner img {
    display: block;
    width: auto;
    max-width: min(100%, 160px);
    height: 38px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .78;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.cpf-partner:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-1px);
}

/* Main compact footer */
.cpf-main {
    padding: 42px 0 36px;
}

.cpf-main__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(160px, .72fr) minmax(220px, .9fr) minmax(280px, 1.15fr);
    gap: 34px;
    align-items: start;
}

.cpf-footer__company {
    margin: 10px 0 8px !important;
    color: var(--cpf-text) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
    line-height: 1.15 !important;
}

.cpf-footer__tagline {
    max-width: 420px;
    margin: 0 0 10px !important;
    color: var(--cpf-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    line-height: 1.5 !important;
}

.cpf-footer__description {
    max-width: 440px;
    margin: 0 !important;
    color: var(--cpf-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.cpf-contact {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.cpf-contact__address {
    color: var(--cpf-muted);
    font-size: 12px;
    line-height: 1.5;
}

.cpf-contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.cpf-contact__links a,
.cpf-links a,
.cpf-legal a {
    color: var(--cpf-text) !important;
    text-decoration: none !important;
}

.cpf-contact__links a {
    font-size: 12px;
    line-height: 1.45;
}

.cpf-contact__links a:hover,
.cpf-links a:hover,
.cpf-legal a:hover { color: var(--cpf-accent) !important; }

.cpf-footer__linkscol,
.cpf-footer__hourscol,
.cpf-footer__newslettercol {
    min-width: 0;
}

.cpf-links {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.cpf-links a {
    width: fit-content;
    font-size: 13px;
    line-height: 1.45;
    transition: color .18s ease, transform .18s ease;
}

.cpf-links a:hover { transform: translateX(2px); }

.cpf-hours__text {
    margin: 14px 0 0 !important;
    color: var(--cpf-muted) !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
}

/* Compact newsletter */
.cpf-footer__newslettercol {
    padding: 18px 18px 16px;
    background: color-mix(in srgb, var(--cpf-card) 72%, transparent);
    border: 1px solid var(--cpf-border);
    border-radius: min(var(--cpf-radius), 16px);
}

.cpf-newsletter__title {
    margin: 9px 0 7px !important;
    color: var(--cpf-text) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
    line-height: 1.2 !important;
}

.cpf-newsletter__desc {
    margin: 0 !important;
    color: var(--cpf-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.cpf-newsletter__embed {
    min-height: 48px;
    margin-top: 14px;
}

.cpf-newsletter__embed input[type="email"],
.cpf-newsletter__embed input[type="text"] {
    min-height: 44px !important;
    border-radius: 8px !important;
}

.cpf-newsletter__embed button,
.cpf-newsletter__embed input[type="submit"] {
    min-height: 44px !important;
    border-radius: 8px !important;
}

.cpf-newsletter__helper {
    margin: 10px 0 0 !important;
    color: var(--cpf-muted) !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    opacity: .8;
}

.cpf-bottom {
    border-top: 1px solid var(--cpf-border);
}

.cpf-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    color: var(--cpf-muted);
    font-size: 11px;
}

.cpf-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.cpf-legal a { color: var(--cpf-muted) !important; }

.cpf-footer a:focus-visible {
    outline: 2px solid var(--cpf-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (max-width: 1180px) {
    .cpf-main__grid {
        grid-template-columns: minmax(260px, 1.25fr) minmax(160px, .75fr) minmax(250px, 1fr);
    }

    .cpf-footer__hourscol {
        grid-column: 2;
        grid-row: 2;
    }

    .cpf-footer__newslettercol {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 900px) {
    .cpf-partners__bar {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }

    .cpf-partners__label {
        padding: 0 0 10px;
        border-right: 0;
    }

    .cpf-partners__grid {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .cpf-partner {
        min-height: 58px;
        padding: 10px 18px;
    }

    .cpf-partner img {
        max-width: 130px;
        height: 32px;
    }

    .cpf-main__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .cpf-footer__newslettercol,
    .cpf-footer__hourscol {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .cpf-shell { width: min(calc(100% - 28px), var(--cpf-max, 1440px)); }

    .cpf-partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .cpf-partner {
        min-height: 56px;
        border-right: 1px solid rgba(21, 23, 20, .08);
        border-bottom: 1px solid rgba(21, 23, 20, .08);
    }

    .cpf-partner:nth-child(2n) { border-right: 0; }
    .cpf-partner:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

    .cpf-main { padding: 34px 0 28px; }

    .cpf-main__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cpf-footer__company { font-size: 20px !important; }
    .cpf-footer__newslettercol { padding: 16px; }

    .cpf-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 70px;
        padding: 14px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpf-footer *,
    .cpf-footer *::before,
    .cpf-footer *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* v1.2 light footer treatment */
.cpf-footer {
    background: var(--cpf-bg, #e9e9e5);
    color: var(--cpf-text, #171717);
}

.cpf-main {
    background: var(--cpf-bg, #e9e9e5);
}

.cpf-kicker,
.cpf-footer__description,
.cpf-contact__address,
.cpf-hours__text,
.cpf-newsletter__desc,
.cpf-newsletter__helper,
.cpf-bottom__inner,
.cpf-legal a {
    color: var(--cpf-muted, #666861) !important;
}

.cpf-footer__company,
.cpf-footer__tagline,
.cpf-contact__links a,
.cpf-links a,
.cpf-newsletter__title {
    color: var(--cpf-text, #171717) !important;
}

.cpf-footer__newslettercol {
    background: var(--cpf-card, #f6f6f2);
    border-color: var(--cpf-border, #cdcec8);
    box-shadow: none;
}

.cpf-newsletter__fallback {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--cpf-border, #cdcec8);
    border-radius: 10px;
}

.cpf-newsletter__fallback input[type="email"] {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--cpf-text, #171717) !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 12px !important;
    outline: 0;
}

.cpf-newsletter__fallback input[type="email"]::placeholder {
    color: #85877f;
    opacity: 1;
}

.cpf-newsletter__fallback input[type="email"]:focus {
    outline: 2px solid rgba(23, 23, 23, .14);
    outline-offset: -2px;
}

.cpf-newsletter__fallback button {
    min-height: 40px;
    padding: 0 15px;
    margin: 0;
    background: #171717;
    color: #fff;
    border: 1px solid #171717;
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: default;
    white-space: nowrap;
}

.cpf-newsletter__embed {
    min-height: 0;
    margin-top: 0;
}

.cpf-newsletter__embed > div:empty {
    display: none;
}

.cpf-footer__newslettercol:has(.cpf-newsletter__embed > div:not(:empty)) .cpf-newsletter__fallback {
    display: none;
}

.cpf-footer__newslettercol:has(.cpf-newsletter__embed > div:not(:empty)) .cpf-newsletter__embed {
    margin-top: 14px;
}

.cpf-bottom {
    background: color-mix(in srgb, var(--cpf-bg, #e9e9e5) 92%, #000 8%);
    border-top-color: var(--cpf-border, #cdcec8);
}

@media (max-width: 420px) {
    .cpf-newsletter__fallback {
        grid-template-columns: 1fr;
    }

    .cpf-newsletter__fallback button {
        width: 100%;
    }
}

/* v1.2.1 neutral grey + true black typography */
.cpf-footer,
.cpf-main {
    background: var(--cpf-bg, #f1f1f1);
    color: #000 !important;
}

.cpf-partners {
    background: var(--cpf-partner-bg, #fafafa);
    color: #000 !important;
    border-bottom-color: #d3d3d3;
}

.cpf-partners__label span,
.cpf-kicker,
.cpf-footer__company,
.cpf-footer__tagline,
.cpf-footer__description,
.cpf-contact__address,
.cpf-contact__links a,
.cpf-links a,
.cpf-hours__text,
.cpf-newsletter__title,
.cpf-newsletter__desc,
.cpf-newsletter__helper,
.cpf-bottom__inner,
.cpf-legal a {
    color: #000 !important;
}

.cpf-kicker {
    font-size: 12px;
    font-weight: 700;
}

.cpf-footer__company {
    font-size: 25px !important;
    font-weight: 700 !important;
}

.cpf-footer__tagline,
.cpf-footer__description {
    font-size: 15px !important;
}

.cpf-contact__address,
.cpf-contact__links a,
.cpf-hours__text,
.cpf-newsletter__desc {
    font-size: 14px !important;
}

.cpf-links a {
    font-size: 15px !important;
    font-weight: 500;
}

.cpf-newsletter__title {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.cpf-newsletter__helper,
.cpf-bottom__inner,
.cpf-legal a {
    font-size: 12px !important;
}

.cpf-footer__newslettercol {
    background: var(--cpf-card, #fff);
    border-color: var(--cpf-border, #d3d3d3);
}

.cpf-newsletter__fallback {
    border-color: var(--cpf-border, #d3d3d3);
}

.cpf-newsletter__fallback input[type="email"] {
    color: #000 !important;
    font-size: 14px !important;
}

.cpf-newsletter__fallback input[type="email"]::placeholder {
    color: #555;
}

.cpf-newsletter__fallback button {
    background: #000;
    color: #fff;
    border-color: #000;
    font-size: 13px;
}

.cpf-bottom {
    background: #e8e8e8;
    border-top-color: var(--cpf-border, #d3d3d3);
}

.cpf-contact__links a:hover,
.cpf-links a:hover,
.cpf-legal a:hover {
    color: #000 !important;
    opacity: .62;
}

@media (max-width: 767px) {
    .cpf-footer__company { font-size: 23px !important; }
    .cpf-footer__tagline,
    .cpf-footer__description,
    .cpf-links a { font-size: 15px !important; }
    .cpf-contact__address,
    .cpf-contact__links a,
    .cpf-hours__text,
    .cpf-newsletter__desc { font-size: 14px !important; }
}
