/* Cookie Modal Overlay */
.roa-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Cookie Modal */
.roa-cookie-modal {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.roa-cookie-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.roa-cookie-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Tabs */
.roa-cookie-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.roa-tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roa-tab-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.roa-tab-btn.active {
    background: white;
    color: var(--roa-primary-color);
    border-bottom-color: var(--roa-primary-color);
}

/* Content */
.roa-cookie-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 250px);
}

.roa-tab-content {
    display: none;
}

.roa-tab-content.active {
    display: block;
}

.roa-cookie-description {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.roa-cookie-select-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Cookie Categories */
.roa-cookie-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.roa-category-item {
    text-align: center;
}

.roa-category-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Toggle Switch */
.roa-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.roa-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.roa-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .roa-toggle-slider {
    background-color: #4CAF50;
}

input:checked + .roa-toggle-slider:before {
    transform: translateX(30px);
}

input:disabled + .roa-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #333;
}

/* Details Section */
.roa-details-section {
    margin-bottom: 24px;
}

.roa-details-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.roa-details-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* About Tab */
#tab-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
}

#tab-about a {
    color: var(--roa-primary-color);
    text-decoration: underline;
}

.roa-powered-by {
    font-size: 12px;
    color: #999;
    margin-top: 24px !important;
    text-align: center;
}

/* Actions */
.roa-cookie-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.roa-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roa-btn-outline {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.roa-btn-outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.roa-btn-primary {
    background-color: var(--roa-primary-color);
    color: white;
    border: 2px solid var(--roa-primary-color);
}

.roa-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .roa-cookie-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .roa-cookie-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .roa-cookie-actions {
        flex-direction: column;
    }
    
    .roa-btn {
        width: 100%;
    }
    
    .roa-tab-btn {
        font-size: 11px;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .roa-cookie-header {
        padding: 20px;
    }
    
    .roa-cookie-header h2 {
        font-size: 20px;
    }
    
    .roa-cookie-content {
        padding: 20px;
    }
    
    .roa-cookie-actions {
        padding: 16px 20px;
    }
}
