/* Final storefront footer dark-mode layer. Loaded after all page-local styles. */
[data-theme="dark"] .amz-footer {
    background: linear-gradient(180deg, #0d1422 0%, #080c16 100%) !important;
    color: var(--theme-text) !important;
    border-top: 1px solid rgba(148, 163, 184, .14) !important;
}

[data-theme="dark"] .amz-footer-links {
    border-bottom-color: rgba(148, 163, 184, .14) !important;
}

[data-theme="dark"] .amz-footer-col h5 {
    color: var(--theme-text-strong) !important;
}

[data-theme="dark"] .amz-footer-col a,
[data-theme="dark"] .amz-footer-bottom a {
    color: var(--theme-text-muted) !important;
}

[data-theme="dark"] .amz-footer-col a:hover,
[data-theme="dark"] .amz-footer-bottom a:hover,
[data-theme="dark"] .amz-footer-col a:focus-visible,
[data-theme="dark"] .amz-footer-bottom a:focus-visible {
    color: var(--theme-primary-hover) !important;
}

[data-theme="dark"] .amz-newsletter-label {
    color: var(--theme-text-muted) !important;
}

[data-theme="dark"] .amz-newsletter-input {
    background: #182338 !important;
    border: 1px solid var(--theme-border-strong) !important;
    color: var(--theme-text-strong) !important;
}

[data-theme="dark"] .amz-newsletter-input::placeholder {
    color: var(--theme-text-subtle) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .amz-newsletter-input:focus {
    background: #1d2a42 !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px var(--theme-focus) !important;
    outline: none;
}

[data-theme="dark"] .amz-newsletter-btn {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-on-primary) !important;
}

[data-theme="dark"] .amz-newsletter-btn:hover,
[data-theme="dark"] .amz-newsletter-btn:focus-visible {
    background: var(--theme-primary-hover) !important;
    border-color: var(--theme-primary-hover) !important;
    color: var(--theme-on-primary) !important;
}

[data-theme="dark"] .amz-newsletter-btn:disabled {
    background: var(--theme-surface-muted) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-subtle) !important;
}

[data-theme="dark"] .amz-newsletter-message {
    background: var(--theme-surface-muted) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] #newsletter-error-v2 {
    color: #fda4af !important;
}

[data-theme="dark"] .amz-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 6px;
    border: 1px solid var(--theme-border) !important;
    border-radius: 50%;
    background: var(--theme-surface) !important;
    color: var(--theme-text-muted) !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

[data-theme="dark"] .amz-social-link:hover,
[data-theme="dark"] .amz-social-link:focus-visible {
    background: rgba(225, 170, 163, .14) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary-hover) !important;
    transform: translateY(-2px);
}

[data-theme="dark"] .amz-back-to-top {
    background: #111c30 !important;
    color: var(--theme-text-muted) !important;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
}

[data-theme="dark"] .amz-back-to-top:hover,
[data-theme="dark"] .amz-back-to-top:focus-visible {
    background: #1a2940 !important;
    color: var(--theme-text-strong) !important;
}

[data-theme="dark"] .amz-footer-bottom {
    background: #080c16 !important;
    border-top: 1px solid rgba(148, 163, 184, .1);
    color: var(--theme-text-subtle) !important;
}

[data-theme="dark"] .amz-footer-bottom .amz-logo {
    background: transparent !important;
}

[data-theme="dark"] .amz-footer-bottom .amz-logo-img {
    max-width: min(100%, 180px);
    object-fit: contain;
}

[data-theme="dark"] .amz-footer-bottom .amz-payment-methods {
    opacity: .82;
    filter: brightness(.9) saturate(.85);
}

[data-theme="dark"] .amz-footer-bottom .text-danger,
[data-theme="dark"] .amz-footer-bottom .text-muted,
[data-theme="dark"] .amz-footer-bottom small {
    color: var(--theme-text-muted) !important;
}

@media (max-width: 767.98px) {
    [data-theme="dark"] .amz-footer-links {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    [data-theme="dark"] .amz-footer-col {
        margin-bottom: 24px;
    }

    [data-theme="dark"] .amz-footer-col:last-child {
        margin-bottom: 4px;
    }

    [data-theme="dark"] #newsletter-form-v2 {
        display: flex !important;
    }

    [data-theme="dark"] .amz-footer-bottom {
        padding: 24px 12px !important;
    }

    [data-theme="dark"] .amz-footer-bottom a {
        display: inline-block;
        margin: 3px 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-theme="dark"] .amz-social-link {
        transition-duration: .01ms;
    }
}
