/* Simple Cookie Consent - Banner Styles */

.scc-hidden {
    display: none !important;
}

/* Banner */
.scc-banner {
    position: fixed;
    z-index: 999999;
    max-width: 420px;
    width: calc(100% - 32px);
    margin: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: scc-slide-in 0.3s ease-out;
}

.scc-banner.scc-bottom-left {
    bottom: 0;
    left: 0;
}

.scc-banner.scc-bottom-right {
    bottom: 0;
    right: 0;
}

/* Light theme */
.scc-banner.scc-light {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

/* Dark theme */
.scc-banner.scc-dark {
    background: #1a1a2e;
    color: #e5e5e5;
    border: 1px solid #2a2a4a;
}

.scc-banner-content {
    padding: 24px;
}

.scc-banner-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
}

.scc-banner-text {
    margin-bottom: 12px;
}

.scc-banner-privacy {
    margin-bottom: 16px;
}

.scc-banner-privacy a {
    font-size: 13px;
    text-decoration: underline;
}

.scc-light .scc-banner-privacy a {
    color: #4a6cf7;
}

.scc-dark .scc-banner-privacy a {
    color: #7b9cff;
}

.scc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.scc-banner .scc-btn,
.scc-preferences .scc-btn {
    padding: 0.375rem 0.75rem !important;
    margin: 0 !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.scc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scc-btn-accept {
    background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%) !important;
    color: #FFFFFF !important;
}

.scc-btn-accept:hover {
    color: #FFFFFF !important;
}

.scc-btn-reject {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

.scc-light .scc-btn-reject {
    color: #0C2E4E !important;
}

.scc-light .scc-btn-reject:hover {
    border-color: #FFFFFF !important;
    background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.scc-dark .scc-btn-reject {
    color: #cccccc !important;
    background-color: transparent !important;
    border-color: #444466 !important;
}

.scc-dark .scc-btn-reject:hover {
    background-color: #2a2a4a !important;
}

.scc-btn-customize {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

.scc-light .scc-btn-customize {
    color: #0C2E4E !important;
}

.scc-light .scc-btn-customize:hover {
    border-color: #FFFFFF !important;
    background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.scc-dark .scc-btn-customize {
    color: #cccccc !important;
    background-color: transparent !important;
    border-color: #444466 !important;
}

.scc-dark .scc-btn-customize:hover {
    background-color: #2a2a4a !important;
}

/* Preferences Modal */
.scc-preferences {
    position: fixed;
    z-index: 1000000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 520px;
    width: calc(100% - 32px);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: scc-fade-in 0.2s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scc-preferences.scc-light {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.scc-preferences.scc-dark {
    background: #1a1a2e;
    color: #e5e5e5;
    border: 1px solid #2a2a4a;
}

.scc-preferences-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.scc-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid;
}

.scc-light .scc-preferences-header {
    border-color: #e5e5e5;
}

.scc-dark .scc-preferences-header {
    border-color: #2a2a4a;
}

.scc-preferences-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.scc-preferences-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.scc-preferences-close:hover {
    opacity: 1;
}

.scc-light .scc-preferences-close {
    color: #000000;
}

.scc-dark .scc-preferences-close {
    color: #ffffff;
}

.scc-preferences-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.scc-category {
    padding: 16px 0;
    border-bottom: 1px solid;
}

.scc-light .scc-category {
    border-color: #f0f0f0;
}

.scc-dark .scc-category {
    border-color: #2a2a4a;
}

.scc-category:last-child {
    border-bottom: none;
}

.scc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.scc-category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.scc-category-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.scc-badge-required {
    background: #e8f5e9;
    color: #2e7d32;
}

.scc-dark .scc-badge-required {
    background: #1b3a1b;
    color: #66bb6a;
}

.scc-category-desc {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

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

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

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

.scc-dark .scc-toggle-slider {
    background-color: #444466;
}

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

.scc-toggle input:checked + .scc-toggle-slider {
    background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%);
}

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

/* Preferences Footer */
.scc-preferences-footer {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid;
}

.scc-light .scc-preferences-footer {
    border-color: #e5e5e5;
}

.scc-dark .scc-preferences-footer {
    border-color: #2a2a4a;
}

.scc-preferences-footer .scc-btn {
    flex: 1;
}

/* Reopen Button */
.scc-reopen {
    position: fixed;
    z-index: 999998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.scc-reopen:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.scc-reopen.scc-bottom-left {
    bottom: 16px;
    left: 16px;
}

.scc-reopen.scc-bottom-right {
    bottom: 16px;
    right: 16px;
}

.scc-reopen.scc-light {
    background: #ffffff;
    color: #555555;
    border: 1px solid #e5e5e5;
}

.scc-reopen.scc-dark {
    background: #1a1a2e;
    color: #cccccc;
    border: 1px solid #2a2a4a;
}

/* Overlay */
.scc-overlay {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    animation: scc-fade-in 0.2s ease-out;
}

/* Animations */
@keyframes scc-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scc-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .scc-banner {
        max-width: none;
        width: calc(100% - 16px);
        margin: 8px;
        border-radius: 10px;
    }
    
    .scc-banner-content {
        padding: 16px;
    }
    
    .scc-banner-actions {
        flex-direction: column;
    }
    
    .scc-btn {
        width: 100%;
    }
    
    .scc-preferences {
        max-width: none;
        width: calc(100% - 16px);
    }
}
