/* ========================================
   IP Blocker Lite - Opt-in Modal Styles
   ======================================== */

.ipcbl-optin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.ipcbl-optin-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ipcbl-optin-modal-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.ipcbl-optin-modal-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipcbl-optin-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #646970;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ipcbl-optin-modal-close:hover {
    background: #f1f1f1;
    color: #1d2327;
}

.ipcbl-optin-modal-body {
    padding: 0 24px 24px 24px;
}

.ipcbl-optin-modal-body p {
    margin: 0 0 16px 0;
    color: #646970;
    line-height: 1.6;
    font-size: 15px;
}

.ipcbl-optin-modal-body ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #646970;
    line-height: 1.6;
}

.ipcbl-optin-modal-body ul li {
    margin-bottom: 6px;
}

.ipcbl-optin-privacy-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #475569;
    font-style: italic;
}

.ipcbl-optin-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ipcbl-optin-checkbox-label:hover {
    border-color: #2271b1;
    background: #f0f8ff;
}

.ipcbl-optin-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ipcbl-optin-checkbox-label .checkbox-text {
    font-weight: 500;
    color: #1d2327;
    line-height: 1.5;
}

.ipcbl-optin-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.ipcbl-optin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.ipcbl-optin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ipcbl-optin-btn-accept {
    background: #2271b1;
    color: #fff;
}

.ipcbl-optin-btn-accept:hover:not(:disabled) {
    background: #1d5d99;
    transform: translateY(-1px);
}

.ipcbl-optin-btn-decline {
    background: #f1f1f1;
    color: #646970;
    border: 1px solid #d1d5db;
}

.ipcbl-optin-btn-decline:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

@media (max-width: 600px) {
    .ipcbl-optin-modal {
        width: 95%;
        margin: 20px;
    }

    .ipcbl-optin-modal-header h2 {
        font-size: 20px;
    }

    .ipcbl-optin-buttons {
        flex-direction: column;
    }

    .ipcbl-optin-btn {
        width: 100%;
    }
}

body.ipcbl-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}