/* ============================
   Sistema de Cookies e LGPD
   ============================ */

.cookie-consent {
    background-color: #f1f1f1;
    padding: 1em;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
}

#cookie-consent {
    background-color: rgba(255, 255, 255, 0.41);
    color: #fffdfd;
    padding: 0.7em;
    border-radius: 6px;
    margin: 1em auto 0 auto;
    max-width: 500px;
    font-size: 0.95em;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#cookie-consent button {
    background: #C01F25;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1em;
    font-weight: bold;
    transition: background 0.2s;
}

#cookie-consent button {
    margin: 0 6px;
}

#cookie-consent #decline-cookies {
    background: #bbb;
    color: #232526;
}

#cookie-consent #decline-cookies:hover {
    background: #888;
    color: #fff;
}

#cookie-consent button:hover {
    background: #C01F25;
}

/* Modal de cookies */
.cookie-modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100vw;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
    justify-content: center;
    align-items: end;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}

.cookie-modal-content,
.cookie-modal-window {
    background: #fff;
    color: #232526;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
    padding: 24px 28px 18px 28px;
    max-width: 600px;
    width: 90vw;
    margin-bottom: 18px;
    text-align: left;
    position: relative;
    animation: modalFadeIn 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(40px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.cookie-modal-window {
    background: #fff;
    color: #232526;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 28px 24px 28px;
    max-width: 420px;
    width: 96vw;
    text-align: left;
    position: relative;
    animation: modalFadeIn 0.4s;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cookie-modal-title {
    color: #C01F25;
    font-size: 1.45em;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
}

.cookie-modal-intro {
    font-size: 1.05em;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.5;
}

.cookie-option {
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 14px 12px;
    margin-bottom: 16px;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cookie-option-title {
    font-weight: 600;
    font-size: 1.08em;
    color: #C01F25;
}

.cookie-desc {
    font-size: 0.97em;
    color: #555;
    margin-top: 2px;
    line-height: 1.5;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-modal-link {
    margin-top: 18px;
    text-align: left;
    font-size: 0.97em;
}

.cookie-modal-link a {
    color: #C01F25;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #C01F25;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.cookie-modal-close:hover {
    color: #F71904;
}

/* Switch liga/desliga */
.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1em;
    color: #232526;
    gap: 18px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.switch input:checked + .slider {
    background-color: #FFD700;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #C01F25;
}

/* Botões de ação dos cookies */
.cookie-btn-accept {
    background: #C01F25;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.cookie-btn-accept:hover {
    background: #a01820;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: #bbb;
    color: #232526;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.cookie-btn-decline:hover {
    background: #888;
    color: #fff;
    transform: translateY(-1px);
}

.cookie-btn-preferences {
    background: #FFD700;
    color: #C01F25;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.cookie-btn-preferences:hover {
    background: #e6c200;
    transform: translateY(-1px);
}
