/* Cookie Consent Overlay Styles */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent-content {
    background: #ffffff;
    /* border-radius: 12px; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* max-width: 500px; */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: cookieSlideIn 0.3s ease-out;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px 5px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    /* line-height: 1.2; */
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.cookie-consent-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.cookie-consent-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.cookie-consent-content-wrapper{
    display: flex;
    gap:30px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.cookie-consent-body {
    padding: 5px 24px;
}

.cookie-consent-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Link styling within cookie consent text */
.cookie-consent-text a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #2563eb;
}

.cookie-consent-text a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-consent-footer {
    padding: 10px 24px 10px 24px;
    /* border-top: 1px solid #e5e7eb; */
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.cookie-consent-accept {
    background-color: #3b82f6;
    color: white;
}

.cookie-consent-accept:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-consent-accept:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.cookie-consent-reject {
    background-color: #6b7280;
    color: white;
}

.cookie-consent-reject:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.cookie-consent-reject:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

@media (max-width: 1600px) {
    .cookie-consent-content-wrapper{
        flex-direction: column;
        gap:10px;
        align-items: unset;
    }
    .cookie-consent-buttons{
        width: 100%;
        justify-content: center;
        gap:15px
    }
}

/* Responsive Design */
/* @media (max-width: 640px) {
    .cookie-consent-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-consent-header {
        padding: 20px 20px 12px 20px;
    }
    
    .cookie-consent-title {
        font-size: 1.25rem;
    }
    
    .cookie-consent-body {
        padding: 16px 20px;
    }
    
    .cookie-consent-footer {
        padding: 12px 20px 20px 20px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-content {
        border: 2px solid #000000;
    }
    
    .cookie-consent-title {
        color: #000000;
    }
    
    .cookie-consent-text {
        color: #000000;
    }
    
    .cookie-consent-accept {
        background-color: #000000;
        border: 2px solid #000000;
    }
    
    .cookie-consent-reject {
        background-color: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-content {
        animation: none;
    }
    
    .cookie-consent-btn {
        transition: none;
    }
    
    .cookie-consent-btn:hover {
        transform: none;
    }
} */

/* RTL (Right-to-Left) language support */
[dir="rtl"] .cookie-consent-content {
    text-align: right;
}

[dir="rtl"] .cookie-consent-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-consent-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-consent-close {
    margin-left: 0;
    margin-right: auto;
}

/* Hebrew specific adjustments */
[lang="he"] .cookie-consent-content {
    direction: rtl;
    text-align: right;
}

[lang="he"] .cookie-consent-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[lang="he"] .cookie-consent-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

/* Russian specific adjustments */
[lang="ru"] .cookie-consent-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
