:root {
    --wcc-bg: #ffffff;
    --wcc-text: #374151;
    --wcc-primary: #1f2937;
    --wcc-secondary: #f3f4f6;
    --wcc-border: #e5e7eb;
    --wcc-radius: 12px;
}

/* Overlay */
.wcc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wcc-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Banner */
.wcc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wcc-banner.wcc-active {
    opacity: 1;
}

/* Positions */
.wcc-pos-bottom-left { bottom: 20px; left: 20px; max-width: 400px; }
.wcc-pos-bottom-right { bottom: 20px; right: 20px; max-width: 400px; }
.wcc-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 500px; width: calc(100% - 40px); }
.wcc-pos-top-center { top: 20px; left: 50%; transform: translateX(-50%); max-width: 600px; width: calc(100% - 40px); }

/* Container */
.wcc-container {
    background: var(--wcc-bg);
    border-radius: var(--wcc-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--wcc-border);
    overflow: hidden;
}

/* Main */
.wcc-main {
    padding: 20px;
}

.wcc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 8px;
}

.wcc-text {
    font-size: 13px;
    color: var(--wcc-text);
    margin: 0 0 16px;
    opacity: 0.85;
}

.wcc-links {
    display: block;
    margin-top: 8px;
}

.wcc-links a {
    color: var(--wcc-primary);
    text-decoration: underline;
    margin-right: 12px;
    font-size: 12px;
}

/* Buttons */
.wcc-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcc-btn {
    padding: 5px 15px !important;
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
	margin: 0 !important;
}

.wcc-btn-primary {
    background: var(--wcc-primary);
    color: #fff;
}

.wcc-btn-primary:hover {
    opacity: 0.9;
}

.wcc-btn-secondary {
    background: var(--wcc-secondary);
    color: var(--wcc-text);
    border: 1px solid var(--wcc-border);
}

.wcc-btn-secondary:hover {
    background: #e5e7eb;
}

.wcc-btn-link {
    background: transparent;
    color: var(--wcc-text);
}

.wcc-btn-link:hover {
    text-decoration: underline;
}

/* Settings Panel */
.wcc-settings {
    display: none;
    border-top: 1px solid var(--wcc-border);
    background: #fafafa;
}

.wcc-settings.open {
    display: block;
}

.wcc-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wcc-border);
}

.wcc-settings-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.wcc-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--wcc-text);
    opacity: 0.6;
    line-height: 1;
}

.wcc-close:hover {
    opacity: 1;
}

/* Categories */
.wcc-categories {
    max-height: 250px;
    overflow-y: auto;
}

.wcc-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wcc-border);
    gap: 16px;
}

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

.wcc-category-info {
    flex: 1;
}

.wcc-category-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.wcc-category-info span {
    font-size: 11px;
    opacity: 0.7;
}

.wcc-category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcc-always-on {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
}

/* Toggle Switch */
.wcc-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.wcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wcc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: 0.2s;
}

.wcc-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.wcc-switch input:checked + .wcc-slider {
    background: var(--wcc-primary);
}

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

/* Settings Footer */
.wcc-settings-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--wcc-border);
    background: var(--wcc-bg);
}

.wcc-settings-footer .wcc-btn {
    width: 100%;
}

/* Footer Link */
#wcc-footer-link {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 12px 20px;
}

#wcc-footer-link a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

#wcc-footer-link a:hover {
    color: #000;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .wcc-pos-bottom-left,
    .wcc-pos-bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .wcc-buttons {
        flex-direction: column;
    }
    
    .wcc-btn {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .wcc-banner, .wcc-overlay, #wcc-footer-link { display: none !important; }
}
