footer {
    width: 100%;
    height: 447px;
    background-color: #efefef;
    margin-top: 120px;
}

.main-container {
    position: relative;
    width: 1440px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-section,
.webshop-section,
.policies-section,
.shop-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-section {
    position: absolute;
    top: 51px;
    left: 69px;
    width: 76px;
}

.webshop-section {
    width: 198px;
}

.policies-section {
    width: 199px;
    margin-left: 22px;
}

.shop-section {
    width: 199px;
    margin-left: 22px;
}

.about-section .footer-title,
.webshop-section .footer-title,
.policies-section .footer-title,
.shop-section .footer-title,
.newsletter-section .footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.about-section .footer-links,
.webshop-section .footer-links,
.policies-section .footer-links,
.shop-section .footer-links {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.about-section a,
.webshop-section a,
.policies-section a,
.shop-section a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
}

.about-section a:hover,
.webshop-section a:hover,
.policies-section a:hover,
.shop-section a:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.footer-right-section {
    position: absolute;
    top: 50.9px;
    left: 180.5px;
    width: 1074px;
    height: 267px;
    display: flex;
    flex-direction: row;
}

.multiline-link {
    white-space: normal !important;
    line-height: 1.4;
}

.newsletter-section {
    width: 412px;
    height: 136px;
    margin-left: 22px;
    display: flex;
    flex-direction: column;
}

.newsletter-section .footer-title {
    margin-bottom: 32px;
}

.newsletter-text {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    width: 412px;
    height: 48px;
    border: 1px solid #000000;
    background-color: #ffffff;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: transparent;
}

.newsletter-form button {
    width: 134px;
    height: 100%;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-form button:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.payment-icons {
    position: absolute;
    bottom: 73.1px;
    right: 0.5px;
    width: auto;
    height: auto;


    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.payment-icons img {
    width: 36px;
    height: 25px;
    object-fit: contain;
}

.copyright-text {
    position: absolute;
    top: 392.05px;
    left: 68px;
    width: 318px;
    height: 21.13px;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    line-height: 21.13px;
}

.footer-toggle {
    display: none;
}

.chevron-icon {
    display: none;
}

.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

/* Responsive desktop footer scaling for small desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    footer {
        width: 100%;
        overflow: hidden;
    }

    .main-container {
        width: 1440px !important;
        transform-origin: top left;
        margin: 0 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    .main-container {
        transform: scale(0.71) !important;
        margin-left: calc((100% - 1022.4px) / 2) !important;
    }

    footer {
        height: 317px !important;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .main-container {
        transform: scale(0.79) !important;
        margin-left: calc((100% - 1137.6px) / 2) !important;
    }

    footer {
        height: 353px !important;
    }
}

@media (min-width: 1201px) and (max-width: 1300px) {
    .main-container {
        transform: scale(0.86) !important;
        margin-left: calc((100% - 1238.4px) / 2) !important;
    }

    footer {
        height: 384px !important;
    }
}

@media (min-width: 1301px) and (max-width: 1439px) {
    .main-container {
        transform: scale(0.93) !important;
        margin-left: calc((100% - 1339.2px) / 2) !important;
    }

    footer {
        height: 416px !important;
    }
}

/* Responsive mobile/tablet footer styling (<= 1023px) */
@media (max-width: 1023px) {
    footer {
        width: 100%;
        height: auto;
        padding: 40px 14.5px 40px 14.5px !important;
        margin-top: 60px;
    }

    .main-container {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .about-section {
        position: static;
        width: 100%;
        margin-bottom: 8px;
    }

    .footer-right-section {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        margin-left: 0 !important;
        gap: 0 !important;
    }

    .webshop-section,
    .policies-section,
    .shop-section {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 8px;
        max-width: 100% !important;
    }

    /* Reset desktop vertical flex gaps so they don't space out collapsed accordions */
    .about-section,
    .webshop-section,
    .policies-section,
    .shop-section {
        gap: 0 !important;
    }

    /* Toggle texts for Policies / Policy */
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    /* Accordion Header styling */
    .about-section .footer-title,
    .webshop-section .footer-title,
    .policies-section .footer-title,
    .shop-section .footer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 700;
        color: #000;
        border-bottom: none;
        user-select: none;
    }

    /* Chevron icon display and animation */
    .chevron-icon {
        display: inline-block !important;
        width: 14px;
        height: 8px;
        transition: transform 0.3s ease;
    }

    .footer-toggle:checked~.footer-title .chevron-icon {
        transform: rotate(180deg);
    }

    /* Accordion links content smooth expansion */
    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding-top: 0;
        padding-bottom: 0;
        gap: 16px !important;
        /* space between list items */
        display: flex;
        flex-direction: column;
    }

    .footer-toggle:checked~.footer-links {
        max-height: 300px;
        padding-top: 8px;
        padding-bottom: 16px;
    }

    /* Always visible Newsletter section */
    .newsletter-section {
        width: 100% !important;
        height: auto;
        margin-left: 0 !important;
        margin-top: 16px;
        margin-bottom: 32px;
        display: flex;
        flex-direction: column;
    }

    .newsletter-form {
        width: 100% !important;
    }

    .newsletter-section .footer-title {
        margin-bottom: 24px;
        font-size: 16px;
        font-weight: 700;
        color: #000;
    }

    /* Payment icons section styling */
    footer .main-container .footer-right-section .payment-icons {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: 25px !important;
        margin: 40px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }

    footer .main-container .footer-right-section .payment-icons img {
        width: 36px !important;
        height: 25px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    /* Copyright text section styling */
    .copyright-text {
        position: static;
        width: 100% !important;
        height: auto;
        text-align: center;
        font-size: 13px;
        font-weight: 400;
        color: #000;
        line-height: 1.5;
        margin-top: 0;
    }
}