/**
 * LMX Google Tracking - Cookie Consent Banner
 * 
 * @package LMX_Google_Tracking
 * @since 1.9.0
 */

.lmx-cookie-consent {
    position: fixed;
    top: var(--lmx-cc-top, auto);
    bottom: var(--lmx-cc-bottom, 0);
    left: var(--lmx-cc-left, 0);
    right: var(--lmx-cc-right, 0);
    max-width: var(--lmx-cc-max-width, none);
    width: var(--lmx-cc-width, auto);
    background: #222;
    color: #f0f0f0;
    padding: 20px;
    z-index: 2147483647;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
    transform: var(--lmx-cc-transform-hide, translateY(100%));
    transition: transform 0.3s ease-in-out;
    display: none;
    contain: content;
    will-change: auto;
}

.lmx-cookie-consent.show {
    transform: var(--lmx-cc-transform-show, translateY(0));
    will-change: auto;
}

.lmx-cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lmx-cookie-consent-content {
    flex: 1;
}

.lmx-cookie-consent-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #f0f0f0;
}

.lmx-cookie-consent-content a {
    color: #fff;
    text-decoration: underline;
}

.lmx-cookie-consent-content a:hover {
    opacity: 0.8;
}

.lmx-cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.lmx-cookie-consent-button {
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 90px;
    text-align: center;
}

.lmx-cookie-consent-accept {
    background-color: #fff;
    color: #222;
}

.lmx-cookie-consent-accept:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.lmx-cookie-consent-deny {
    background-color: transparent;
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.lmx-cookie-consent-deny:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .lmx-cookie-consent,
    .lmx-cookie-consent-button {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .lmx-cookie-consent {
        padding: 16px;
    }

    .lmx-cookie-consent-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .lmx-cookie-consent-content p {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .lmx-cookie-consent-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .lmx-cookie-consent-button {
        flex: 1;
        max-width: none;
        font-size: 13px;
        padding: 10px 8px;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .lmx-cookie-consent {
        padding: 14px;
    }

    .lmx-cookie-consent-container {
        gap: 10px;
    }

    .lmx-cookie-consent-content p {
        font-size: 12px;
        line-height: 1.2;
    }

    .lmx-cookie-consent-buttons {
        gap: 6px;
    }

    .lmx-cookie-consent-button {
        font-size: 12px;
        padding: 10px 6px;
        font-weight: 600;
    }
}
