/**
cookie_consent.css
 * Cookie Consent UI Styles
 * GDPR and PDPA Compliant Design
 */

/* Banner Styles */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

.cookie-consent-banner.cookie-consent-bottom {
    bottom: 0;
}

.cookie-consent-banner.cookie-consent-top {
    top: 0;
    transform: translateY(-100%);
}

.cookie-consent-banner.cookie-consent-show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-consent-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Button Styles */
.cookie-consent-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cookie-consent-accept-all {
    background: #56bad6;
    color: white;
    border-color: #56bad6;
}

.cookie-consent-accept-all:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.cookie-consent-reject {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.cookie-consent-reject:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.cookie-consent-settings {
    background: transparent;
    color: #374151;
    border-color: #374151;
}

.cookie-consent-settings:hover {
    background: #374151;
    color: white;
}

/* Modal Styles */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-consent-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-consent-modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    max-width: 600px;
    max-height: calc(100vh - 100px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-consent-modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.cookie-consent-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cookie-consent-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cookie-consent-modal-body {
    padding: 0 20px;
    flex: 1;
    overflow-y: auto;
}

.cookie-consent-category {
    padding: 10px;
    /*margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;*/
}

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

.cookie-consent-category-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-consent-category-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Switch Styles */
.cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cookie-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

.cookie-consent-switch input:checked + .cookie-consent-slider {
    background-color: #56bad6;
}

.cookie-consent-switch input:focus + .cookie-consent-slider {
    box-shadow: 0 0 1px #56bad6;
}

.cookie-consent-switch input:checked + .cookie-consent-slider:before {
    transform: translateX(20px);
}

.cookie-consent-switch input:disabled + .cookie-consent-slider {
    background-color: #e5e7eb;
    cursor: not-allowed;
}

.cookie-consent-switch input:disabled + .cookie-consent-slider:before {
    background-color: #9ca3af;
}

.cookie-consent-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.cookie-consent-save {
    background: #56bad6;
    color: white;
    border-color: #56bad6;
    min-width: 120px;
}

.cookie-consent-save:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Dark Theme */
.cookie-consent-banner.cookie-consent-dark {
    background: #1f2937;
    border-color: #374151;
    color: white;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-text h3 {
    color: white;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-text p {
    color: #d1d5db;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-modal-content {
    background: #1f2937;
    color: white;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-modal-header {
    border-color: #374151;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-modal-header h3 {
    color: white;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-category {
    background: #374151;
    border-color: #4b5563;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-category-info h4 {
    color: white;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-category-info p {
    color: #d1d5db;
}

.cookie-consent-modal.cookie-consent-dark .cookie-consent-modal-footer {
    border-color: #374151;
}

/* Responsive Design */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    
    .cookie-consent-actions {
        text-align: center;
        /*flex-direction: column;*/
		
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
            margin: 3px 0;
    }
    /*
    .cookie-consent-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }*/
    
    .cookie-consent-category-header {
        align-items: center;
    }
}
/*
@media (max-width: 480px) {
    .cookie-consent-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cookie-consent-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .cookie-consent-modal-header,
    .cookie-consent-modal-footer,
    .cookie-consent-modal-body {
        padding: 16px;
    }
}*/

/* Animation for better UX */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner.cookie-consent-bottom.cookie-consent-show {
    animation: slideInUp 0.3s ease;
}

.cookie-consent-banner.cookie-consent-top.cookie-consent-show {
    animation: slideInDown 0.3s ease;
}
