/**
 * Cookie Compliance Banner Styles
 * Aesthetic: Modern Glassmorphism
 */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    pointer-events: auto;
    /* Corregido: 'auto' es el valor estándar para HTML */
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-main-view {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

/* Settings Panel */
.cookie-settings-panel {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.settings-title {
    margin: 0 0 24px 0;
    font-size: var(--wp--preset--font-size--subtitle);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.cookie-options-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.cookie-option-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-name {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.option-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Switch Styling (Gutenberg/iOS Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    z-index: 1;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #3B82F6;
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

.toggle-slider.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #3B82F6;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* Typography & General */
.cookie-banner-content {
    flex: 1;
}

.cookie-title {
    margin: 0 0 8px 0;
    font-size: var(--wp--preset--font-size--subtitle);
    font-weight: 600;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--heading);
}

.cookie-text {
    margin: 0;
    font-size: var(--wp--preset--font-size--body-text);
    line-height: 1.6;
    color: #94a3b8;
    font-weight: 400;
}

.cookie-policy-link {
    color: #EC4899;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: var(--wp--preset--font-size--section-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--wp--preset--font-family--heading);
}

.cookie-btn.btn-primary {
    background: var(--wp--preset--gradient--main-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.cookie-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.4);
    filter: brightness(1.1);
}

.cookie-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .cookie-options-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .cookie-banner-container {
        padding: 24px;
    }

    .cookie-main-view {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}