/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 60px 20px 20px;
    background-color: var(--color-white);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-columns-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col-newsletter {
    flex: 1.5;
    min-width: 250px;
}

.footer-col-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-green);
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* Changed to pointer so it's clickable on mobile */
}

.footer-accordion-icon {
    display: none;
    width: 12px;
    transition: transform 0.3s ease;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--color-green);
}

/* Newsletter */
.footer-newsletter {
    margin-bottom: 20px;
}

.tnp-subscription {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 300px;
}

.footer-col-newsletter .footer-newsletter .footer-newsletter-input {
    width: 100%;
    border: 1px solid #D9D9D9;
    background-color: var(--color-white);
    border-radius: 17px;
    padding: 10px 45px 10px 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    outline: none;
    color: var(--color-black);
    background: transparent;
}

.footer-newsletter-input::placeholder {
    color: #999;
}

.footer-newsletter-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    border-radius: 100%;
    background-color: var(--color-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.footer-newsletter-submit img {
    width: 6px;
    /* Made smaller */
}

/* Newsletter Message */
#footer-newsletter-message {
    display: none;
    font-size: 12px;
    margin-top: 10px;
    color: var(--color-green);
}

/* Spinner Loader for Submit Button */
.footer-loader {
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-white);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: footer-rotation 1s linear infinite;
    vertical-align: middle;
}

@keyframes footer-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Lang and Socials */
.footer-lang-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align right on desktop */
    margin-top: 15px;
    width: 100%;
}

.footer-lang {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-muted);
    cursor: pointer;
}

/* Invisible "hover bridge" so moving into the dropdown gap doesn't close it. */
.footer-lang::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.footer-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-lang-current .lang-flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-lang-current .lang-chevron {
    width: 8px;
}

.footer-lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    background: var(--color-white);
    border: 1px solid #eee;
    padding: 10px;
    list-style: none;
    margin: 0;
    /* Dropdown is offset from trigger to avoid "too close" visuals. */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1000;
    min-width: 120px;
}

.footer-lang-dropdown.active {
    display: block;
}

.footer-lang-dropdown li {
    margin-bottom: 8px;
}

.footer-lang-dropdown li:last-child {
    margin-bottom: 0;
}

.footer-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    text-decoration: none;
}

.footer-lang-dropdown a:hover {
    color: var(--color-green);
}

/* TranslatePress [language-switcher] in footer */
/*.footer-lang .trp-language-switcher,*/
/*.footer-lang .trp-language-switcher-container {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 6px;*/
/*    font-size: 12px;*/
/*    color: var(--color-muted);*/
/*}*/

/*.footer-lang .trp-language-switcher a,*/
/*.footer-lang .trp-language-switcher button {*/
/*    color: inherit;*/
/*    text-decoration: none;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 6px;*/
/*    background: none;*/
/*    border: 0;*/
/*    padding: 0;*/
/*    cursor: pointer;*/
/*    font: inherit;*/
/*}*/

/*.footer-lang .trp-language-switcher img {*/
/*    width: 16px;*/
/*    height: 16px;*/
/*    border-radius: 50%;*/
/*    object-fit: cover;*/
/*}*/

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.desktop-socials {
    display: flex;
}

.footer-socials.mobile-socials {
    display: none;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials img {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.footer-socials a:hover img {
    opacity: 0.7;
}

/* Payment Wrap */
.footer-payment-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    margin-top: 0px;
    width: 100%;
}

/* Payment Logos */
.footer-payment-logos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 0;
    padding-bottom: 5px;
    scrollbar-width: none;
    max-width: 100%;
}

.footer-payment-logos::-webkit-scrollbar {
    display: none;
}

.payment-logo-item {
    flex-shrink: 0;
    width: fit-content;
    width: -moz-fit-content;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
}

.payment-logo-item img {
    max-height: 20px;
    /* ensure it fits properly */
    max-width: 60px;
    object-fit: contain;
}

/* Dummy grey boxes as per design for payment logas placeholders */
.payment-logo-item.placeholder {
    width: 45px;
    height: 25px;
    background-color: #D9D9D9;
}

/* Bottom elements */
.footer-bottom {
    text-align: center;
}

.footer-bottom .copyright {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-columns-wrap {
        flex-direction: column;
        gap: 0;
    }

    .footer-col {
        border-bottom: 1px solid var(--color-border);
    }

    .footer-col-1,
    .footer-col-2,
    .footer-col-3 {
        padding: 15px 0;
    }

    .footer-col-title {
        margin-bottom: 0;
        cursor: pointer;
    }

    .footer-accordion-icon {
        display: block;
    }

    .footer-col-content {
        display: none;
        padding-top: 15px;
        padding-bottom: 5px;
    }

    .footer-col.active .footer-col-content {
        display: block;
    }

    .footer-col.active .footer-accordion-icon {
        transform: rotate(180deg);
    }

    .footer-col-newsletter {
        padding-top: 30px;
        border-bottom: none;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Default align */
    }

    /* Mobile positioning overrides */
    .footer-lang-social-wrapper {
        flex-direction: row;
        /* Align horizontal on tablet/mobile */
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        width: 100%;
    }

    .footer-socials {
        margin-top: 0;
    }

    .desktop-socials {
        display: none !important;
    }

    .footer-socials.mobile-socials {
        display: flex !important;
        padding: 0;
        border: none;
    }

    .footer-payment-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .tnp-subscription {
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .footer-col-newsletter .footer-col-title {
        margin-bottom: 20px;
        cursor: default;
        /* Keep default cursor for newsletter title on mobile */
    }

    .footer-col-newsletter .footer-col-content {
        display: block;
        /* Always visible on mobile */
        padding-top: 0;
        width: 100%;
    }

    .footer-newsletter {
        margin-bottom: 30px;
    }

    .tnp-subscription,
    .footer-lang-social {
        max-width: 100%;
    }
}