/* C12 Cookie Compliance Banner — minimal, non-specific styles */

.c12-cc-banner {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    z-index: 999999;
    position: fixed;
}

.c12-cc-banner *,
.c12-cc-banner *::before,
.c12-cc-banner *::after {
    box-sizing: border-box;
}

/* Position: corner popup (default) */
.c12-cc-position-corner {
    bottom: 16px;
    left: 16px;
    max-width: 400px;
    width: calc(100% - 32px);
}

/* Position: bottom bar */
.c12-cc-position-bar {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Position: center modal */
.c12-cc-position-modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.c12-cc-position-modal .c12-cc-banner-inner {
    max-width: 500px;
    width: 90%;
}

/* Banner inner container */
.c12-cc-banner-inner {
    background: var(--c12-cc-bg, #ffffff);
    color: var(--c12-cc-text, #333333);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 20px;
    overflow: hidden;
}

.c12-cc-position-bar .c12-cc-banner-inner {
    border-radius: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
}

.c12-cc-position-bar .c12-cc-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c12-cc-position-bar .c12-cc-message {
    flex: 1;
    margin: 0;
}

/* Message */
.c12-cc-message {
    margin: 0 0 16px;
    font-size: 13px;
    opacity: 0.9;
}

.c12-cc-position-bar .c12-cc-message {
    margin-bottom: 0;
}

/* Action buttons */
.c12-cc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.c12-cc-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.c12-cc-btn:hover {
    opacity: 0.85;
}

.c12-cc-btn-primary {
    background: var(--c12-cc-btn-primary, #4361ee);
    color: #ffffff;
}

.c12-cc-btn-secondary {
    background: var(--c12-cc-btn-secondary, #f0f0f0);
    color: var(--c12-cc-text, #333333);
}

/* Preferences panel */
.c12-cc-preferences {
    margin-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
}

.c12-cc-prefs-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 12px;
}

/* Category row */
.c12-cc-category {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.c12-cc-category:last-of-type {
    border-bottom: none;
}

.c12-cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c12-cc-category-name {
    font-weight: 600;
    font-size: 13px;
}

.c12-cc-category-desc {
    font-size: 12px;
    opacity: 0.7;
    margin: 4px 0 0;
}

.c12-cc-always-on {
    font-size: 11px;
    opacity: 0.6;
    font-style: italic;
}

/* Toggle switch */
.c12-cc-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.c12-cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.c12-cc-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.c12-cc-toggle input:checked + .c12-cc-toggle-slider {
    background: var(--c12-cc-btn-primary, #4361ee);
}

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

/* Preferences actions spacing */
.c12-cc-preferences .c12-cc-actions {
    margin-top: 14px;
}

/* CCPA footer link */
.c12-cc-ccpa-link {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    .c12-cc-position-corner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        max-width: none;
        width: auto;
    }

    .c12-cc-position-bar .c12-cc-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .c12-cc-position-bar .c12-cc-banner-content {
        flex-direction: column;
    }

    .c12-cc-actions {
        justify-content: stretch;
    }

    .c12-cc-btn {
        flex: 1;
        text-align: center;
    }
}
