:root {
    --et-primary-color: #0073aa;
}

.et-consent-banner {
    position: fixed;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--et-primary-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px;
}

.et-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.et-consent-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.et-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.et-consent-text p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.et-consent-text a {
    color: #0073aa;
    text-decoration: underline;
}

.et-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.et-consent-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
    min-width: 200px;
    text-align: center;
}

.et-consent-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.et-consent-option small {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.et-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.et-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.et-btn-primary:hover, .et-btn-secondary:hover {
    opacity: 50%;
}

.et-btn-link {
    background: none;
    color: #0073aa;
    text-decoration: underline;
    padding: 0 !important;
}

.et-btn-link:hover {
    color: #005a87;
}

/* Checkbox styling with dynamic colors */
.et-consent-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.et-consent-option input[type="checkbox"]:checked {
    background-color: var(--et-primary-color) !important;
    border-color: var(--et-primary-color) !important;
}

.et-consent-option input[type="checkbox"]:focus {
    outline: 2px solid var(--et-primary-color);
    outline-offset: 2px;
    --tw-ring-color: var(--et-primary-color);
}

.et-consent-option input[type="checkbox"]:hover {
    border-color: var(--et-primary-color);
}

/* Cookie Modal Styles */
.et-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.et-cookie-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.et-cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.et-cookie-modal-header .et-cookie-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.et-cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
}

.et-cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.et-cookie-category {
    margin-bottom: 2rem;
}

.et-cookie-category-header {
    margin-bottom: 1rem;
}

.et-cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Cookie modal checkbox styling - same as consent banner */
.et-cookie-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.et-cookie-category-header input[type="checkbox"]:checked {
    background-color: var(--et-primary-color) !important;
    border-color: var(--et-primary-color) !important;
}

.et-cookie-category-header input[type="checkbox"]:focus {
    outline: 2px solid var(--et-primary-color);
    outline-offset: 2px;
    --tw-ring-color: var(--et-primary-color);
}

.et-cookie-category-header input[type="checkbox"]:hover {
    border-color: var(--et-primary-color);
}

.et-cookie-category-header input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.et-cookie-category-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.et-cookie-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.et-cookie-item {
    background: #f9fafb;
    border-radius: 6px;
    padding: 1rem;
}

.et-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.et-cookie-name {
    font-weight: 600;
}

.et-cookie-identifier {
    font-family: monospace;
    font-size: 0.75rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.et-cookie-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.et-cookie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

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

[dir="rtl"] .et-cookie-modal-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .et-cookie-modal-footer {
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .et-cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .et-cookie-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .et-cookie-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
