/* AC Cookie Consent - Frontend Styles - Cookiebot Style */

/* CSS Variables */
:root {
    --accc-primary: #1032cf;
    --accc-primary-hover: #0c28a8;
    --accc-text: #1f2937;
    --accc-text-light: #6b7280;
    --accc-bg: #ffffff;
    --accc-border: #e5e7eb;
    --accc-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --accc-radius: 0;
    --accc-transition: all 0.2s ease;
}

/* Modal */
.accc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.accc-modal.accc-modal-visible {
    display: flex;
}

.accc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: accc-fade-in 0.3s ease-out;
}

.accc-modal-content {
    position: relative;
    background: var(--accc-bg);
    border-radius: 0;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--accc-shadow);
    animation: accc-scale-in 0.3s ease-out;
}

.accc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px 15px;
    background: var(--accc-bg);
}

.accc-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--accc-text);
    text-align: center;
}

/* Tabs - Cookiebot Style */
.accc-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--accc-border);
    background: var(--accc-bg);
    padding: 0;
}

.accc-modal-tab {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--accc-text);
    cursor: pointer;
    transition: var(--accc-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    text-align: center;
}

.accc-modal-tab:hover {
    color: #000;
}

.accc-modal-tab.active {
    color: var(--accc-primary);
    border-bottom-color: var(--accc-primary);
}

/* Tab Panels */
.accc-tab-panel {
    display: none;
}

.accc-tab-panel.active {
    display: block;
}

.accc-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
    max-height: 45vh;
}

.accc-modal-intro {
    margin: 0 0 15px 0;
    color: var(--accc-text);
    font-size: 13px;
    line-height: 1.6;
}

.accc-modal-intro-secondary {
    color: var(--accc-text-light);
    font-size: 12px;
}

.accc-modal-intro a {
    color: var(--accc-primary);
    text-decoration: underline;
}

.accc-modal-intro a:hover {
    text-decoration: none;
}

/* Footer - Cookiebot Style */
.accc-modal-footer {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 15px 25px 20px;
    border-top: 1px solid var(--accc-border);
    background: var(--accc-bg);
}

/* Buttons - Cookiebot Style */
.accc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--accc-transition);
    white-space: nowrap;
    flex: 1;
    text-align: center;
    background: #1032cf;
    color: #ffffff;
}

.accc-btn:hover {
    background: #0c28a8;
}

.accc-btn-primary {
    background: #1032cf;
    color: #ffffff;
}

.accc-btn-primary:hover {
    background: #0c28a8;
}

.accc-btn-secondary {
    background: #1032cf;
    color: #ffffff;
    border: none;
}

.accc-btn-secondary:hover {
    background: #0c28a8;
}

/* Categories */
.accc-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accc-category {
    padding: 15px;
    background: #f9fafb;
    border: 1px solid var(--accc-border);
}

.accc-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.accc-category-name {
    font-weight: 600;
    color: var(--accc-text);
    font-size: 14px;
}

.accc-required-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #dcfce7;
    color: #166534;
    font-weight: 500;
}

.accc-category-description {
    margin: 0;
    color: var(--accc-text-light);
    font-size: 12px;
    line-height: 1.5;
}

/* Toggle Switch - Cookiebot Style */
.accc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.accc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    transition: var(--accc-transition);
    border-radius: 24px;
}

.accc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: var(--accc-transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accc-toggle input:checked + .accc-toggle-slider {
    background: #1032cf;
}

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

.accc-toggle input:disabled + .accc-toggle-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.accc-toggle input:disabled:checked + .accc-toggle-slider {
    background: #1032cf;
}

/* Toggle Small Variant */
.accc-toggle-small {
    width: 36px;
    height: 20px;
}

.accc-toggle-small .accc-toggle-slider:before {
    height: 14px;
    width: 14px;
}

.accc-toggle-small input:checked + .accc-toggle-slider:before {
    transform: translateX(16px);
}

/* Details Tab Styles */
.accc-details-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accc-details-category {
    border: 1px solid var(--accc-border);
    border-bottom: none;
}

.accc-details-category:last-child {
    border-bottom: 1px solid var(--accc-border);
}

.accc-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9fafb;
    cursor: pointer;
    transition: var(--accc-transition);
}

.accc-details-header:hover {
    background: #f3f4f6;
}

.accc-details-header.expanded {
    border-bottom: 1px solid var(--accc-border);
}

.accc-details-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accc-details-arrow {
    color: var(--accc-text-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.accc-details-header.expanded .accc-details-arrow {
    transform: rotate(90deg);
}

.accc-details-name {
    font-weight: 600;
    color: var(--accc-text);
    font-size: 14px;
}

.accc-details-count {
    color: var(--accc-text-light);
    font-size: 12px;
}

.accc-details-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accc-details-body {
    padding: 15px;
    background: var(--accc-bg);
}

.accc-details-description {
    margin: 0 0 15px 0;
    color: var(--accc-text-light);
    font-size: 12px;
    line-height: 1.6;
}

/* Cookies List */
.accc-cookies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accc-cookie-item {
    padding: 12px;
    background: #f9fafb;
    border-left: 3px solid var(--accc-primary);
}

.accc-cookie-name {
    font-weight: 600;
    color: var(--accc-text);
    font-size: 13px;
    margin-bottom: 6px;
    font-family: monospace;
    background: #e5e7eb;
    display: inline-block;
    padding: 2px 6px;
}

.accc-cookie-description {
    color: var(--accc-text);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.accc-cookie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.accc-cookie-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.accc-cookie-meta-label {
    font-size: 10px;
    color: var(--accc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accc-cookie-meta-value {
    font-size: 12px;
    color: var(--accc-text);
    font-weight: 500;
}

.accc-no-cookies {
    color: var(--accc-text-light);
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 15px;
}

/* About Tab Styles */
.accc-about-content {
    color: var(--accc-text);
    line-height: 1.6;
}

.accc-about-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--accc-text);
}

.accc-about-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: var(--accc-text);
}

.accc-about-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--accc-text);
}

.accc-about-content a {
    color: var(--accc-primary);
    text-decoration: underline;
}

.accc-about-content a:hover {
    text-decoration: none;
}

.accc-consent-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid var(--accc-border);
}

.accc-consent-info h4 {
    margin-top: 0;
}

.accc-consent-id,
.accc-consent-date {
    margin: 6px 0;
    font-size: 12px;
    color: var(--accc-text-light);
}

.accc-consent-id strong,
.accc-consent-date strong {
    color: var(--accc-text);
    font-family: monospace;
    font-size: 11px;
}

/* Animations */
@keyframes accc-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes accc-scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
.accc-modal-header {
    display: flex;
    flex-direction: column;
}
.elementor-kit-7 h2 {
    font-size: 20px!important;
    margin-bottom: 25px;
}
    .accc-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .accc-modal-content {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
    }
    
    .accc-modal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .accc-modal-tab {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .accc-modal-body {
        padding: 15px;
        max-height: 40vh;
    }
    
    .accc-modal-footer {
        padding: 12px 15px 15px;
        flex-direction: column;
    }
    
    .accc-btn {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .accc-details-header {
        padding: 10px 12px;
    }
    
    .accc-details-body {
        padding: 12px;
    }
    
    .accc-cookie-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .accc-cookie-meta-item {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .accc-modal {
        display: none !important;
    }
}

/* Settings Trigger Button */
.accc-settings-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #1032cf;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--accc-transition);
}

.accc-settings-trigger:hover {
    background: #0c28a8;
}

button.accc-modal-tab.active {
    background: #fff!important;
    border-bottom: 1px solid #0c28a8!important;
    color: #0c28a8!important;
    font-weight: 500!important;
    border-radius: 0px!important;
}

button.accc-modal-tab.active:hover {
    background: #fff!important;
    color: #000;
    font-weight: 500!important;
    border-radius: 0px!important;
}

button.accc-modal-tab {
    background: #fff!important;
    color: #000!important;
    border: none!important;
    font-weight: 500!important;
    border-radius: 0px!important;
}

button.accc-modal-tab:hover {
    color: #0c28a8!important;
    border-bottom: 1px solid #0c28a8!important;
}

button#accc-accept-all-btn {
    background: #0c28a8;
    border: none;
}

button#accc-accept-selected-btn, button#accc-reject-all-btn {
    background: #fff;
    color: #000;
    border: solid 1px #0c28a8;
}

button#accc-accept-selected-btn:hover, button#accc-reject-all-btn:hover {
    background: #0c28a8;
    color: #fff;
    border: solid 1px #0c28a8;
}