#wd-footer {
    --wd-primary: #d97706;
    --wd-primary-hover: #ff9927;
    --wd-ink: #22383d;
    --wd-soft: rgba(34, 56, 61, 0.74);
    --wd-muted: rgba(34, 56, 61, 0.56);
    --wd-line: rgba(34, 56, 61, 0.10);
    --wd-bg: #fdfbf8;
    --wd-card: rgba(255, 255, 255, 0.96);
    --wd-shadow: 0 18px 42px -30px rgba(34, 56, 61, 0.28);

    color: var(--wd-ink);
    background: linear-gradient(180deg, #fff 0%, var(--wd-bg) 100%);
    overflow: hidden;
}

#wd-footer,
#wd-footer * {
    box-sizing: border-box;
}

#wd-footer a {
    color: inherit;
    text-decoration: none;
}

#wd-footer img,
#wd-footer svg {
    display: block;
}

#wd-footer .wd-footer-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

#wd-footer .wd-footer-main {
    padding-top: 2.5rem;
}

#wd-footer .wd-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr 0.75fr 1fr;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    padding-bottom: 2.6rem;
}

#wd-footer .wd-footer-logo {
    max-width: 280px;
    margin-bottom: 1rem;
}

#wd-footer .wd-footer-logo img {
    width: auto;
    max-width: 100%;
    max-height: 84px;
    height: auto;
    object-fit: contain;
}

#wd-footer .wd-footer-brand-text,
#wd-footer .wd-footer-news-text {
    color: var(--wd-soft);
    line-height: 1.6;
}

#wd-footer .wd-footer-brand-text {
    max-width: 470px;
    margin: 0 0 1.25rem;
    font-size: 1rem;
}

#wd-footer .wd-footer-contact-card {
    max-width: 430px;
    padding: 1rem;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: var(--wd-card);
    box-shadow: var(--wd-shadow);
}

#wd-footer .wd-footer-contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
}

#wd-footer .wd-footer-contact-item:first-child {
    padding-top: 0;
}

#wd-footer .wd-footer-contact-item:last-child {
    padding-bottom: 0;
}

#wd-footer .wd-footer-contact-item + .wd-footer-contact-item {
    border-top: 1px solid var(--wd-line);
}

#wd-footer .wd-footer-contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--wd-primary);
    background: #fff7eb;
    border: 1px solid rgba(217, 119, 6, 0.16);
}

#wd-footer .wd-footer-contact-icon svg {
    width: 18px;
    height: 18px;
}

#wd-footer .wd-footer-contact-content strong {
    display: block;
    margin-bottom: 0.12rem;
    color: var(--wd-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

#wd-footer .wd-footer-contact-content span,
#wd-footer .wd-footer-contact-content a {
    display: block;
    color: var(--wd-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

#wd-footer .wd-footer-contact-content a:hover {
    color: var(--wd-primary);
}

#wd-footer .wd-footer-contact-meta {
    color: var(--wd-muted);
}

#wd-footer .wd-footer-col {
    padding-top: 0.35rem;
}

#wd-footer .wd-footer-col h3,
#wd-footer .wd-footer-social-wrap h4 {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    color: var(--wd-ink);
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

#wd-footer .wd-footer-col h3::after,
#wd-footer .wd-footer-social-wrap h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: var(--wd-primary);
}

#wd-footer .wd-footer-col > a {
    display: block;
    width: fit-content;
    margin-bottom: 0.7rem;
    color: var(--wd-soft);
    line-height: 1.4;
    transition: color 150ms ease, transform 150ms ease;
}

#wd-footer .wd-footer-col > a:hover,
#wd-footer .wd-footer-col > a:focus-visible {
    color: var(--wd-primary);
    transform: translateX(4px);
}

#wd-footer .wd-footer-news-text {
    max-width: 340px;
    margin: 0 0 1rem;
}

/* Hyvä Newsletter block im Walt-Deko Footer */
#wd-footer .wd-footer-col-news > .pr-4 {
    width: 100% !important;
    max-width: 390px;
    padding-right: 0 !important;
}

#wd-footer .wd-footer-col-news form.subscribe {
    margin: 0 0 1.5rem;
}

#wd-footer .wd-footer-col-news form.subscribe h2 {
    display: none;
}

#wd-footer .wd-footer-col-news form.subscribe > div.flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100%;
    max-width: 390px;
    padding: 0.42rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.15);
    box-shadow: var(--wd-shadow);
}

#wd-footer .wd-footer-col-news form.subscribe label {
    display: none;
}

#wd-footer .wd-footer-col-news form.subscribe .control {
    display: none;
}

#wd-footer .wd-footer-col-news form.subscribe input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 48px;
    padding: 0 1rem;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: var(--wd-ink);
    font-size: 0.96rem;
    line-height: 48px;
    box-shadow: none !important;
}

#wd-footer .wd-footer-col-news form.subscribe input[type="email"]::placeholder {
    color: var(--wd-muted);
}

#wd-footer .wd-footer-col-news form.subscribe input[type="email"]:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

#wd-footer .wd-footer-col-news form.subscribe button {
    flex: 0 0 auto;
    height: 48px;
    margin: 0 !important;
    padding: 0 1.15rem;
    border: 0 !important;
    border-radius: 999px;
    background: var(--wd-primary) !important;
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    line-height: 48px;
    box-shadow: none !important;
    transition: background-color 150ms ease;
}

#wd-footer .wd-footer-col-news form.subscribe button:hover,
#wd-footer .wd-footer-col-news form.subscribe button:focus-visible {
    background: var(--wd-ink) !important;
    color: #fff !important;
}

/* Hyvä Error Message */
#wd-footer .wd-footer-col-news form.subscribe > div:not(.flex) {
    margin-top: 0.75rem;
}

#wd-footer .wd-footer-col-news form.subscribe .text-red {
    margin: 0.75rem 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
    line-height: 1.4;
}

#wd-footer .wd-footer-col-news form.subscribe .text-red svg {
    width: 20px;
    height: 20px;
}

/* reCAPTCHA Legal Notice */
#wd-footer .wd-footer-col-news > .pr-4 > .w-full {
    max-width: 390px;
}

#wd-footer .wd-footer-col-news > .pr-4 > .w-full p {
    margin: 0.75rem 0 1.25rem;
    color: var(--wd-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

#wd-footer .wd-footer-col-news > .pr-4 > .w-full em {
    font-style: normal;
}

#wd-footer .wd-footer-col-news > .pr-4 > .w-full a {
    color: var(--wd-primary);
    text-decoration: underline;
}

#wd-footer .wd-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#wd-footer .wd-footer-social a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--wd-ink);
    background: #fff;
    border: 1px solid var(--wd-line);
    box-shadow: var(--wd-shadow);
    transition: color 150ms ease, transform 150ms ease;
}

#wd-footer .wd-footer-social a:hover {
    color: var(--wd-primary);
    transform: translateY(-2px);
}

#wd-footer .wd-footer-social svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

#wd-footer .wd-footer-bottom {
    border-top: 1px solid var(--wd-line);
    background: rgba(255, 255, 255, 0.7);
}

#wd-footer .wd-footer-bottom-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#wd-footer .wd-footer-bottom p {
    margin: 0;
    color: var(--wd-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

#wd-footer .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

@media (max-width: 1199px) {
    #wd-footer .wd-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #wd-footer .wd-footer-brand {
        grid-column: 1 / -1;
    }

    #wd-footer .wd-footer-brand-text,
    #wd-footer .wd-footer-contact-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #wd-footer .wd-footer-inner {
        padding: 0 1rem;
    }

    #wd-footer .wd-footer-main {
        padding-top: 2rem;
    }

    #wd-footer .wd-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    #wd-footer .wd-footer-logo {
        max-width: 230px;
    }

    #wd-footer .wd-footer-logo img {
        max-height: 72px;
    }

    #wd-footer .wd-footer-contact-card {
        border-radius: 18px;
    }

    #wd-footer .wd-footer-contact-item {
        grid-template-columns: 40px 1fr;
        align-items: start;
    }

    #wd-footer .wd-footer-contact-icon {
        width: 40px;
        height: 40px;
    }

    #wd-footer .wd-footer-col-news > .pr-4 {
        max-width: 100%;
    }

    #wd-footer .wd-footer-col-news form.subscribe > div.flex {
        flex-direction: column;
        align-items: stretch !important;
        max-width: 100%;
        border-radius: 22px;
        padding: 0.65rem;
    }

    #wd-footer .wd-footer-col-news form.subscribe input[type="email"],
    #wd-footer .wd-footer-col-news form.subscribe button {
        width: 100% !important;
    }
}