/* PimcorePrivacyBundle - Cookie Consent Modal Styles */

.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.cookie-consent-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cookie-consent-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cookie-consent-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cookie-consent-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-consent-intro {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-category {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.cookie-category:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.cookie-category-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.cookie-category-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cookie-consent-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 140px;
}

.btn-reject {
    background: #f3f4f6;
    color: #374151;
}

.btn-reject:hover {
    background: #e5e7eb;
}

.btn-accept-selected {
    background: #3b82f6;
    color: white;
}

.btn-accept-selected:hover {
    background: #2563eb;
}

.btn-accept-all {
    background: #10b981;
    color: white;
}

.btn-accept-all:hover {
    background: #059669;
}
