/* ===== Modal flutuante de Consentimento de Cookies ===== */

.rb-cookie-modal {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: rbCookieSlideIn 0.38s cubic-bezier(.22,.68,0,1.2);
}

.rb-cookie-modal.rb-cookie-hide {
    animation: rbCookieSlideOut 0.3s ease forwards;
}

@keyframes rbCookieSlideIn {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

@keyframes rbCookieSlideOut {
    from { transform: translateY(0)    scale(1);    opacity: 1; }
    to   { transform: translateY(30px) scale(0.96); opacity: 0; }
}

/* --- Cabeçalho --- */
.rb-cookie-modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.6rem;
    background: #1a2e4a;
    color: #fff;
}

.rb-cookie-modal-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.rb-cookie-modal-header strong {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.rb-cookie-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    padding: 0 0.1rem;
    line-height: 1;
    font-size: 0.9rem;
    transition: color 0.15s;
}

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

/* --- Corpo --- */
.rb-cookie-modal-body {
    padding: 0.85rem 1rem 0.5rem;
}

.rb-cookie-modal-body p {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.55;
}

.rb-cookie-modal-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rb-cookie-modal-links a {
    font-size: 0.78rem;
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.rb-cookie-modal-links a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* --- Rodapé com botões --- */
.rb-cookie-modal-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid #e8edf3;
}

.rb-cookie-btn-rejeitar,
.rb-cookie-btn-aceitar {
    flex: 1;
    border: none;
    border-radius: 7px;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    white-space: nowrap;
}

.rb-cookie-btn-rejeitar {
    background: #edf2f7;
    color: #4a5568;
}

.rb-cookie-btn-rejeitar:hover {
    background: #e2e8f0;
}

.rb-cookie-btn-aceitar {
    background: #2e466e;
    color: #fff;
}

.rb-cookie-btn-aceitar:hover {
    background: #1a2e4a;
}

.rb-cookie-btn-rejeitar:active,
.rb-cookie-btn-aceitar:active {
    transform: scale(0.97);
}

/* --- Mobile: ocupa mais largura --- */
@media (max-width: 480px) {
    .rb-cookie-modal {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* ===== Checkbox de consentimento no cadastro ===== */

.rb-lgpd-consent {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.rb-lgpd-consent .form-check-label {
    font-size: 0.9rem;
    color: #2d3748;
}

.rb-lgpd-consent a {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: underline;
}

.rb-lgpd-consent a:hover {
    color: #1a365d;
}
