/* CookieGuard Banner Styles */

#cookieguard-root {
    /* Container for the banner - styles are inline for flexibility */
}

/* Button hover effects */
#cookieguard-root .cg-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#cookieguard-root .cg-btn:active {
    transform: translateY(0);
}

#cookieguard-root .cg-btn {
    transition: all 0.15s ease;
}

/* Animation for banner entrance */
#cookieguard-root .cg-banner {
    animation: cgSlideIn 0.3s ease;
}

@keyframes cgSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal animation */
#cookieguard-root .cg-prefs-modal {
    animation: cgFadeIn 0.2s ease;
}

@keyframes cgFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Overlay fade */
#cookieguard-root .cg-overlay {
    animation: cgOverlayIn 0.2s ease;
}

@keyframes cgOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Gradient border shimmer animation */
@keyframes cgGradientShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Checkbox styling */
#cookieguard-root input[type="checkbox"] {
    accent-color: #2563eb;
}

/* Link styling */
#cookieguard-root a {
    color: inherit;
}

#cookieguard-root a:hover {
    text-decoration: underline;
}

/* Split screen two-column layout */
#cookieguard-root .cg-banner.cg-type-split_screen {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

#cookieguard-root .cg-banner.cg-type-split_screen .cg-split-accent {
    flex: 0 0 80px !important;
    min-width: 80px !important;
}

#cookieguard-root .cg-banner.cg-type-split_screen .cg-inner {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    #cookieguard-root .cg-banner {
        padding: 16px !important;
    }

    /* Stack split screen on mobile */
    #cookieguard-root .cg-banner.cg-type-split_screen {
        flex-direction: column !important;
    }

    #cookieguard-root .cg-banner.cg-type-split_screen .cg-split-accent {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 12px !important;
        flex-direction: row !important;
        gap: 10px;
    }

    #cookieguard-root .cg-buttons {
        flex-direction: column;
    }

    #cookieguard-root .cg-btn {
        width: 100%;
        text-align: center;
    }

    #cookieguard-root .cg-prefs-modal {
        width: 95% !important;
        padding: 16px !important;
    }
}
