/* Cookie Consent Banner Styles - Modal Layout */
.cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cookie-consent-banner.cookie-banner-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-banner-modal-container {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.13);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cookie-banner-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-icon svg {
    width: 16px;
    height: 16px;
}

.cookie-banner-title-text {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
}

.cookie-banner-subtitle {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #6B7280;
    margin: 0;
}

.cookie-banner-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #6B7280;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner-main-actions {
    display: flex;
    gap: 12px;
}

.cookie-reject-all-btn,
.cookie-accept-all-btn {
    flex: 1;
    padding: 0 16px;
    height: 40px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cookie-settings-link {
    background: transparent;
    color: #3B82F6;
    border: none;
    text-decoration: none;
    padding: 8px 0;
    height: auto;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-settings-link:hover {
    text-decoration: underline;
}

.cookie-reject-all-btn {
    background: #FFFFFF;
    color: #6B7280;
    border-color: #D1D5DB;
}

.cookie-reject-all-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.cookie-accept-all-btn {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

.cookie-accept-all-btn:hover {
    background: #2563EB;
    border-color: #2563EB;
}

/* Cookie Settings Modal Styles */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cookie-settings-modal.cookie-modal-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.13);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-modal-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
    margin: 0;
}

.cookie-modal-subtitle {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #6B7280;
    margin: 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
}

.cookie-category.cookie-category-disabled {
    background: #F8FAFC;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cookie-category-name {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #111827;
    margin: 0;
}

.cookie-category-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2;
    color: #6B7280;
    margin: 0;
}

.cookie-category-details {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    color: #6B7280;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.cookie-toggle.cookie-toggle-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle.cookie-toggle-inactive {
    background: #E5E7EB;
    justify-content: flex-start;
}

.cookie-toggle.cookie-toggle-active {
    background: #3B82F6;
    justify-content: flex-end;
}

.cookie-toggle-button {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.cookie-toggle.cookie-toggle-disabled .cookie-toggle-button {
    background: #9CA3AF;
}

/* Modal Actions */
.cookie-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cookie-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-reject-all-btn,
.cookie-save-settings-btn,
.cookie-accept-all-btn {
    padding: 0 16px;
    height: 40px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-reject-all-btn {
    background: #FFFFFF;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.cookie-reject-all-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.cookie-save-settings-btn {
    background: #FFFFFF;
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.cookie-save-settings-btn:hover {
    background: #EFF6FF;
}

.cookie-accept-all-btn {
    background: #3B82F6;
    color: #FFFFFF;
    border: 1px solid #3B82F6;
}

.cookie-accept-all-btn:hover {
    background: #2563EB;
    border-color: #2563EB;
}

/* Body modifiers for modal states */
body.cookie-banner-active,
body.cookie-modal-active {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-banner-modal-container {
        max-height: 95vh;
        padding: 16px;
        gap: 16px;
    }
    
    .cookie-banner-main-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-reject-all-btn,
    .cookie-accept-all-btn {
        width: 100%;
        min-height: 44px; /* Better touch target */
        height: 44px;
    }
    
    .cookie-settings-modal {
        padding: 16px;
    }
    
    .cookie-modal-container {
        max-height: 95vh;
        padding: 16px;
        gap: 16px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .cookie-action-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-reject-all-btn,
    .cookie-save-settings-btn,
    .cookie-accept-all-btn {
        flex: 1;
        min-height: 44px; /* Better touch target */
        height: 44px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-title-text,
    .cookie-modal-title {
        font-size: 18px;
    }
    
    .cookie-category-name {
        font-size: 14px;
    }
    
    .cookie-action-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-reject-all-btn,
    .cookie-save-settings-btn,
    .cookie-accept-all-btn {
        width: 100%;
        min-height: 48px; /* Even better touch target on small screens */
        height: 48px;
    }
}
