/**
 * Cookie Consent Banner Styles
 * 
 * @package ASEPress
 */

/* Banner container */
.ase-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #000;
}

.ase-cookie-consent__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Content section */
.ase-cookie-consent__content {
    flex: 1 1 60%;
    min-width: 300px;
}

.ase-cookie-consent__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.ase-cookie-consent__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--wp--preset--color--contrast-2, #666);
    margin: 0 0 1rem;
}

/* Category checkboxes */
.ase-cookie-consent__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--wp--preset--color--base-2, #f5f5f5);
    border-radius: 0.5rem;
}

.ase-cookie-consent__category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.ase-cookie-consent__category input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #000;
}

.ase-cookie-consent__category input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ase-cookie-consent__category-label {
    font-size: 0.9375rem;
    font-weight: 500;
}

.ase-cookie-consent__required {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--wp--preset--color--contrast-2, #888);
}

/* Links */
.ase-cookie-consent__links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.ase-cookie-consent__links a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ase-cookie-consent__links a:hover {
    text-decoration: none;
}

/* Actions */
.ase-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ase-cookie-consent__btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ase-cookie-consent__btn--primary {
    background: #000;
    color: #fff;
}

.ase-cookie-consent__btn--primary:hover {
    background: #333;
}

.ase-cookie-consent__btn--secondary {
    background: transparent;
    color: #000;
    border: 1px solid currentColor;
}

.ase-cookie-consent__btn--secondary:hover {
    background: var(--wp--preset--color--base-2, #f5f5f5);
}

/* Alpine cloak */
[x-cloak] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ase-cookie-consent__container {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .ase-cookie-consent__content {
        width: 100%;
    }

    .ase-cookie-consent__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .ase-cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .ase-cookie-consent__categories {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Slide-up animation */
.ase-cookie-consent {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
