/* PDN152 Compliance Plugin - Minimal Public Styles */

/* Cookie Consent Popup */
.pdn152-cookie-consent {
    position: fixed;
    z-index: 999999;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

/* Позиции popup */
.pdn152-cookie-consent.bottom {
    bottom: 0;
    left: 0;
}

.pdn152-cookie-consent.top {
    top: 0;
    left: 0;
    border-top: none;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pdn152-cookie-consent.bottom-left {
    bottom: 20px;
    left: 20px;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pdn152-cookie-consent.bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Темы оформления */
.pdn152-cookie-consent-light {
    background: #ffffff;
    color: #333333;
}

.pdn152-cookie-consent-dark {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #333333;
}

.pdn152-cookie-consent-dark .pdn152-cookie-text {
    color: #ffffff;
}

.pdn152-cookie-consent-dark .pdn152-cookie-policy-link {
    color: #66b3ff;
}

.pdn152-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pdn152-cookie-consent.bottom-left .pdn152-cookie-content,
.pdn152-cookie-consent.bottom-right .pdn152-cookie-content {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.pdn152-cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

.pdn152-cookie-policy-link {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 5px;
}

.pdn152-cookie-policy-link:hover {
    color: #005a87;
}

.pdn152-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pdn152-cookie-consent.bottom-left .pdn152-cookie-buttons,
.pdn152-cookie-consent.bottom-right .pdn152-cookie-buttons {
    width: 100%;
    justify-content: flex-start;
}

.pdn152-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pdn152-btn-accept {
    background: #0073aa;
    color: white;
}

.pdn152-btn-accept:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.pdn152-btn-reject {
    background: #dc3545;
    color: white;
}

.pdn152-btn-reject:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.pdn152-btn-settings {
    background: #6c757d;
    color: white;
}

.pdn152-btn-settings:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Consent Checkbox */
.pdn152-consent-checkbox {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.pdn152-consent-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.pdn152-consent-checkbox input[type="checkbox"] {
    margin: 3px 10px 0 0;
    flex-shrink: 0;
}

.pdn152-consent-text {
    flex: 1;
}

.pdn152-policy-link {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 3px;
}

.pdn152-policy-link:hover {
    color: #005a87;
}

/* Чекбокс в форме регистрации */
.pdn152-registration-consent {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.pdn152-registration-consent label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.pdn152-registration-consent input[type="checkbox"] {
    margin: 3px 10px 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pdn152-registration-consent .pdn152-consent-text {
    flex: 1;
}

.pdn152-registration-consent .pdn152-policy-link {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 500;
}

.pdn152-registration-consent .pdn152-policy-link:hover {
    color: #005a87;
}

/* Панель настроек cookie */
.pdn152-cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdn152-cookie-settings-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.pdn152-settings-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdn152-settings-header h3 {
    margin: 0;
    font-size: 20px;
}

.pdn152-settings-body {
    padding: 20px;
}

.pdn152-cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pdn152-cookie-category:last-child {
    border-bottom: none;
}

.pdn152-cookie-category h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.pdn152-cookie-category p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.pdn152-cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdn152-cookie-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.pdn152-settings-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdn152-btn-save-settings {
    background: #0073aa;
    color: white;
}

.pdn152-btn-accept-all {
    background: #28a745;
    color: white;
}

.pdn152-btn-reject-all {
    background: #dc3545;
    color: white;
}

/* Уведомления */
.pdn152-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 20px;
    z-index: 9999998;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pdn152-notification.success {
    border-left: 4px solid #28a745;
}

.pdn152-notification.error {
    border-left: 4px solid #dc3545;
}

.pdn152-notification.warning {
    border-left: 4px solid #ffc107;
}

.pdn152-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .pdn152-cookie-content {
        flex-direction: column;
        text-align: left;
    }
    
    .pdn152-cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .pdn152-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .pdn152-cookie-consent.bottom-left,
    .pdn152-cookie-consent.bottom-right {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .pdn152-cookie-settings-modal {
        max-width: 100%;
        margin: 0;
    }
    
    .pdn152-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}