/* XClube Cookies v1.0.0 */

/* Banner container */
.xc-cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.xc-cookie-banner.xc-cookie-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay escuro */
.xc-cookie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Dialog */
.xc-cookie-dialog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 28px 32px;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 3px solid #B8860B;
}

.xc-cookie-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    font-family: "Montserrat", sans-serif;
}

.xc-cookie-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0 0 20px 0;
    max-width: 800px;
}

/* Botoes */
.xc-cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.xc-cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.5px;
}
.xc-cookie-btn:active {
    transform: scale(0.97);
}

.xc-cookie-btn-accept {
    background: #B8860B;
    color: #FFFFFF;
}
.xc-cookie-btn-accept:hover {
    background: #d4a017;
}

.xc-cookie-btn-reject {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #555;
}
.xc-cookie-btn-reject:hover {
    border-color: #888;
    background: rgba(255,255,255,0.05);
}

.xc-cookie-btn-settings {
    background: transparent;
    color: #B8860B;
    border: 1px solid #B8860B;
}
.xc-cookie-btn-settings:hover {
    background: rgba(184, 134, 11, 0.1);
}

/* Privacy link */
.xc-cookie-privacy-link {
    font-size: 12px;
    color: #888;
    text-decoration: underline;
}
.xc-cookie-privacy-link:hover {
    color: #B8860B;
}

/* Categorias / detalhe */
.xc-cookie-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.xc-cookie-category {
    margin-bottom: 16px;
}

.xc-cookie-cat-desc {
    font-size: 13px;
    color: #888;
    margin: 4px 0 0 60px;
}

/* Toggle switch */
.xc-cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.xc-cookie-toggle input {
    display: none;
}

.xc-cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    min-width: 44px;
    background: #444;
    border-radius: 24px;
    transition: background 0.2s;
}
.xc-cookie-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #999;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.xc-cookie-toggle input:checked + .xc-cookie-slider {
    background: #B8860B;
}
.xc-cookie-toggle input:checked + .xc-cookie-slider::after {
    transform: translateX(20px);
    background: #FFFFFF;
}

.xc-cookie-toggle input:disabled + .xc-cookie-slider {
    background: #555;
    opacity: 0.7;
}
.xc-cookie-toggle input:disabled + .xc-cookie-slider::after {
    background: #B8860B;
    transform: translateX(20px);
}

.xc-cookie-cat-name {
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
}


/* Responsive */
@media (max-width: 600px) {
    .xc-cookie-dialog {
        padding: 20px 16px;
    }
    .xc-cookie-actions {
        flex-direction: column;
    }
    .xc-cookie-btn {
        width: 100%;
        text-align: center;
    }
    .xc-cookie-cat-desc {
        margin-left: 0;
        margin-top: 8px;
    }
}
