/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f2f2f2;
    border-top: 2px solid #e8e8e8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px 0;
    font-family: 'Assistant', sans-serif;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #66cccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 24px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 8px 0;
}

.cookie-consent-message {
    font-size: 14px;
    color: #333333;
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-link {
    color: #66cccc;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-link:hover {
    color: #4da3a3;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
    min-width: 100px;
}

.cookie-btn-accept {
    background-color: #008a99;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #036c77;
}

.cookie-btn-reject {
    background-color: #666666;
    color: #ffffff;
}

.cookie-btn-reject:hover {
    background-color: #555555;
}

.cookie-btn-settings {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #333333;
}

.cookie-btn-settings:hover {
    background-color: #f2f2f2;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-settings-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: #000000;
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-settings-description {
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 10px;
}

.cookie-category-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.cookie-category-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: #66cccc;
}

.cookie-category-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-name {
    flex: 1;
}

.cookie-category-status {
    font-size: 12px;
    color: #666666;
    font-weight: normal;
    margin-right: 5px;
}

.cookie-category-description {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
    margin-right: 30px;
}

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid #f2f2f2;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* RTL Support */
html[dir="rtl"] .cookie-consent-content {
    direction: rtl;
}

html[dir="rtl"] .cookie-consent-buttons {
    direction: rtl;
}

html[dir="rtl"] .cookie-settings-header {
    direction: rtl;
}

html[dir="rtl"] .cookie-settings-footer {
    direction: rtl;
}

html[dir="rtl"] .cookie-category-toggle {
    direction: rtl;
}

html[dir="rtl"] .cookie-category-toggle input[type="checkbox"] {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .cookie-category-description {
    margin-right: 0;
    margin-left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: auto;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}
