/* Banner de Cookies */
.cookie-consent-banner {
    position: fixed;
    z-index: 9999;
    background: #333;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.cookie-consent-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.cookie-consent-top {
    top: 0;
    left: 0;
    right: 0;
}

.cookie-consent-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    max-width: 400px;
    border-radius: 8px;
}

.cookie-consent-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    max-width: 400px;
    border-radius: 8px;
}

.cookie-consent-light {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.cookie-consent-dark {
    background: #333;
    color: white;
}

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #4285f4;
    text-decoration: underline;
}

.cookie-consent-light .cookie-consent-text a {
    color: #1a73e8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-settings {
    background: transparent;
    color: #4285f4;
    border: 1px solid #4285f4;
}

.cookie-consent-light .cookie-consent-settings {
    color: #1a73e8;
    border-color: #1a73e8;
}

.cookie-consent-reject {
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
}

.cookie-consent-light .cookie-consent-reject {
    color: #d93025;
    border-color: #d93025;
}

.cookie-consent-accept {
    background: #4285f4;
    color: white;
    border: 1px solid #4285f4;
}

.cookie-consent-light .cookie-consent-accept {
    background: #1a73e8;
    border-color: #1a73e8;
}

.cookie-consent-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal de Configurações */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cookie-consent-modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: cookieModalSlideIn 0.3s ease;
}

@keyframes cookieModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-consent-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-consent-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.cookie-consent-modal-close:hover {
    background: #f5f5f5;
}

.cookie-consent-modal-body {
    padding: 30px;
}

.cookie-consent-modal-body > p {
    margin: 0 0 20px 0;
    color: #666;
}

.cookie-consent-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-consent-option:last-child {
    border-bottom: none;
}

.cookie-consent-option-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent-option-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-consent-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
}

.cookie-consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-consent-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-consent-slider {
    background-color: #4285f4;
}

input:checked + .cookie-consent-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-consent-slider {
    background-color: #4285f4;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-consent-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

/* Shortcode Styles */
.cookie-settings-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cookie-settings-button:hover {
    background: #3367d6;
}

.cookie-preferences {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.cookie-preferences h4 {
    margin-top: 0;
    color: #333;
}

.cookie-preferences ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cookie-preferences li {
    margin-bottom: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-consent-bottom-left,
    .cookie-consent-bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .cookie-consent-modal {
        padding: 10px;
    }
    
    .cookie-consent-modal-content {
        margin: 0;
    }
    
    .cookie-consent-modal-body {
        padding: 20px;
    }
    
    .cookie-consent-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .cookie-consent-modal-footer {
        flex-direction: column;
    }
    
    .cookie-consent-modal-footer .cookie-consent-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-consent-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}