/* ============================================================
   GDPR Cookie Consent Banner
   ExpiredAuctions.com
   ============================================================ */

#ea-gdpr-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#ea-gdpr-bar.gdpr-bar--top {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
}

#ea-gdpr-bar.gdpr-bar--bottom {
    bottom: 0;
    top: auto;
}

#ea-gdpr-bar.gdpr-bar--visible {
    transform: translateY(0);
}

/* Dark mode */
[data-bs-theme="dark"] #ea-gdpr-bar {
    background: rgba(30, 33, 40, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] #ea-gdpr-bar.gdpr-bar--top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gdpr-bar__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdpr-bar__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #0d6efd;
    line-height: 1;
}

[data-bs-theme="dark"] .gdpr-bar__icon {
    color: #6ea8fe;
}

.gdpr-bar__text {
    flex: 1;
    min-width: 200px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #343a40;
    margin: 0;
}

[data-bs-theme="dark"] .gdpr-bar__text {
    color: #dee2e6;
}

.gdpr-bar__text a {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

[data-bs-theme="dark"] .gdpr-bar__text a {
    color: #6ea8fe;
}

.gdpr-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.gdpr-bar__accept {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

/* Reason: (hover:hover) guard prevents iOS Safari first-tap-hover trap — any
 * unguarded :hover rule on a button/link causes Safari to fire a visual state
 * change on the first tap, delaying the real action to the second tap. */
@media (hover: hover) {
    .gdpr-bar__accept:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
        color: #fff;
    }
}

.gdpr-bar__accept:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.gdpr-bar__decline {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

/* Reason: (hover:hover) guard — same rationale as .gdpr-bar__accept above. */
@media (hover: hover) {
    .gdpr-bar__decline:hover {
        color: #343a40;
        background-color: rgba(0, 0, 0, 0.05);
    }
}

[data-bs-theme="dark"] .gdpr-bar__decline {
    color: #adb5bd;
}

@media (hover: hover) {
    [data-bs-theme="dark"] .gdpr-bar__decline:hover {
        color: #dee2e6;
        background-color: rgba(255, 255, 255, 0.08);
    }
}

.gdpr-bar__decline:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* Mobile: stack layout */
@media (max-width: 575.98px) {
    .gdpr-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .gdpr-bar__icon {
        display: none;
    }

    .gdpr-bar__actions {
        width: 100%;
        justify-content: flex-end;
    }
}
