/* Estilo para o banner de cookies */
html body .cookie-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem !important;
    z-index: 9999 !important;
}

html body .cookie-consent-banner-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

html body .cookie-consent-banner-text {
    flex: 1 !important;
    min-width: 300px !important;
    padding-right: 1rem !important;
}

html body .cookie-consent-banner-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

html body .cookie-consent-btn {
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

html body .cookie-consent-btn-accept-all {
    background-color: #696cff !important;
    color: white !important;
    transition: background-color 0.15s ease-in-out !important;
}

html body .cookie-consent-btn-accept-all:hover {
    background-color: #5a67d8 !important;
    color: white !important;
}

html body .cookie-consent-btn-accept-necessary {
    background-color: transparent !important;
    border: 1px solid #d9dee3 !important;
    color: #6c757d !important;
    transition: all 0.15s ease-in-out !important;
}

html body .cookie-consent-btn-accept-necessary:hover {
    background-color: #f8f9fa !important;
    border-color: #696cff !important;
    color: #696cff !important;
}

html body .cookie-consent-btn-customize {
    background-color: transparent !important;
    border: 1px solid #d9dee3 !important;
    color: #6c757d !important;
    transition: all 0.15s ease-in-out !important;
}

html body .cookie-consent-btn-customize:hover {
    background-color: #f8f9fa !important;
    border-color: #696cff !important;
    color: #696cff !important;
}

/* Estilo para o modal de cookies */
html body .cookie-consent-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
}

html body .cookie-consent-modal[style*="display: flex"] {
    display: flex !important;
}

html body .cookie-consent-modal-content {
    background-color: white !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

html body .cookie-consent-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    border-bottom: 1px solid #e9ecef !important;
}

html body .cookie-consent-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
}

html body .cookie-consent-modal-body {
    padding: 1rem !important;
}

html body .cookie-consent-modal-footer {
    padding: 1rem !important;
    border-top: 1px solid #e9ecef !important;
    text-align: right !important;
}

html body .cookie-consent-group {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e9ecef !important;
}

html body .cookie-consent-group:last-child {
    border-bottom: none !important;
}

html body .cookie-consent-group-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Switch toggle */
html body .cookie-consent-switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}

html body .cookie-consent-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

html body .cookie-consent-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    border-radius: 34px !important;
    transition: .4s !important;
}

html body .cookie-consent-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 16px !important;
    width: 16px !important;
    left: 4px !important;
    bottom: 4px !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: .4s !important;
}

html body input:checked + .cookie-consent-slider {
    background-color: #696cff !important;
}

html body input:focus + .cookie-consent-slider {
    box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.25) !important;
}

html body .cookie-consent-switch:checked + .cookie-consent-slider:before {
    transform: translateX(26px) !important;
}

/* Estilos específicos para o tema escuro */
.dark-style html body .cookie-consent-banner {
    background-color: #30334e !important;
    color: #d7d5ec !important;
    border-top: 1px solid rgba(234, 234, 255, 0.12) !important;
}

.dark-style html body .cookie-consent-banner-text {
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-btn-accept-necessary {
    background-color: #46445b !important;
    color: #d7d5ec !important;
    border: 1px solid rgba(234, 234, 255, 0.22) !important;
}

.dark-style html body .cookie-consent-btn-accept-necessary:hover {
    background-color: #5a5875 !important;
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-btn-customize {
    background-color: transparent !important;
    color: #d7d5ec !important;
    border: 1px solid rgba(234, 234, 255, 0.22) !important;
}

.dark-style html body .cookie-consent-btn-customize:hover {
    background-color: rgba(234, 234, 255, 0.06) !important;
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-modal {
    background-color: rgba(16, 17, 33, 0.8) !important;
}

.dark-style html body .cookie-consent-modal-content {
    background-color: #30334e !important;
    color: #d7d5ec !important;
    border: 1px solid rgba(234, 234, 255, 0.12) !important;
}

.dark-style html body .cookie-consent-modal-header {
    border-bottom: 1px solid rgba(234, 234, 255, 0.12) !important;
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-modal-close {
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-modal-close:hover {
    color: #ffffff !important;
}

.dark-style html body .cookie-consent-modal-body {
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-modal-footer {
    border-top: 1px solid rgba(234, 234, 255, 0.12) !important;
}

.dark-style html body .cookie-consent-group {
    border: 1px solid rgba(234, 234, 255, 0.12) !important;
    background-color: rgba(234, 234, 255, 0.03) !important;
}

.dark-style html body .cookie-consent-group-header {
    color: #d7d5ec !important;
}

.dark-style html body .cookie-consent-slider {
    background-color: rgba(234, 234, 255, 0.1) !important;
}

.dark-style html body .cookie-consent-switch:checked + .cookie-consent-slider {
    background-color: #696cff !important;
}

.dark-style html body .cookie-consent-slider:before {
    background-color: #d7d5ec !important;
}

html body input:disabled + .cookie-consent-slider {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}
