/* ===== ONLINE CONSENT MODAL ===== */
.consent-settings-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .consent-settings-overlay { align-items: center; } }

.consent-settings-popup {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) { .consent-settings-popup { border-radius: 20px; } }

.consent-settings-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.consent-settings-header h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: #1a1a1a; }
.consent-settings-subtitle { font-size: 13px; color: #888; margin: 0; line-height: 1.4; }
.consent-settings-header button { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 8px; color: #666; }

.consent-settings-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }

.consent-settings-toggle-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 20px;
}
.consent-settings-toggle-label { font-size: 14px; font-weight: 500; }
.consent-settings-toggle-hint { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.4; }

.client-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.client-toggle input { opacity: 0; width: 0; height: 0; }
.client-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .3s; border-radius: 26px; }
.client-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background: #fff; transition: .3s; border-radius: 50%; }
.client-toggle input:checked + .client-toggle-slider { background: #dd1847; }
.client-toggle input:checked + .client-toggle-slider:before { transform: translateX(22px); }

.consent-settings-text-block { opacity: 0.4; pointer-events: none; }
.consent-settings-text-block.enabled { opacity: 1; pointer-events: auto; }
.consent-settings-text-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.consent-settings-text-header span { font-size: 14px; font-weight: 600; }
.consent-settings-fill-btn {
    padding: 6px 12px; background: #fdf2f5; border: 1px solid #dd1847;
    border-radius: 8px; color: #dd1847; font-size: 12px; font-weight: 500;
    cursor: pointer; font-family: inherit;
}
.consent-settings-fill-btn:hover { background: #dd1847; color: #fff; }

.consent-settings-textarea {
    width: 100%; min-height: 200px; padding: 14px;
    border: 1px solid #e0e0e0; border-radius: 12px;
    font-size: 14px; line-height: 1.6; font-family: inherit;
    background: #f8f8f8; resize: vertical; box-sizing: border-box;
}
.consent-settings-textarea:focus { outline: none; border-color: #dd1847; background: #fff; }
.consent-settings-hint { font-size: 12px; color: #999; margin-top: 8px; }
.consent-settings-warning {
    font-size: 12px; color: #8b6914; background: #fff9e6;
    padding: 10px 14px; border-radius: 10px; margin-top: 10px; line-height: 1.4;
}

.consent-settings-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; }
.consent-settings-save-btn {
    width: 100%; padding: 16px; background: #dd1847; color: #fff;
    border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.consent-settings-save-btn:disabled { background: #ccc; cursor: not-allowed; }

.btn-spinner svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }