.custom-footer {
    background-color: #1f2937;
    /* สีเทาเข้ม Gray-800 */
    color: #f8f9fa;
}

.custom-footer a {
    text-decoration: none;
    color: #9ca3af;
    /* สีเทาอ่อน Gray-400 */
    transition: color 0.15s ease-in-out;
}

.custom-footer a:hover {
    color: #818cf8;
}

.footer-logo {
    color: #818cf8;
    font-weight: 700;
    font-size: 1.5rem;
}

@media (max-width: 991.98px) {
    .custom-footer.custom-footer {
        /* Keep footer controls above the fixed mobile navigation without a gap before the footer. */
        padding-bottom: calc(3rem + var(--mobile-bottom-bar-height) + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.footer-logo-img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
    color: #ffffff !important;
    filter: brightness(1.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-social-facebook {
    background: #1877f2;
}

.footer-social-line {
    background: #06c755;
}

.footer-social-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.border-top-gray {
    border-top: 1px solid #374151;
}
.footer-cookie-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: var(--bs-primary);
    text-decoration: underline;
}
