/* Original site cookie UI, scoped styles. */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.98), rgba(13, 13, 13, 0.98));
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--color-text-light);
}

.cc-banner.cc-visible {
    transform: translateY(0);
}

.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cc-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 168, 108, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.cc-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0 0 0.35rem 0;
    color: var(--color-primary);
}

.cc-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.cc-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cc-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cc-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cc-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

.cc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 108, 0.35);
}

.cc-btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border-color: rgba(201, 168, 108, 0.4);
}

.cc-btn-secondary:hover {
    background: rgba(201, 168, 108, 0.1);
    border-color: var(--color-primary);
}

.cc-btn-link {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    text-decoration: underline;
    padding: 0.55rem 0.5rem;
}

.cc-btn-link:hover {
    color: var(--color-primary);
}

/* Modal */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cc-modal.cc-visible {
    display: flex;
    opacity: 1;
}

.cc-modal-content {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 108, 0.3);
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--color-text-light);
    animation: cc-modal-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cc-modal-pop {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cc-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-primary);
}

.cc-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.cc-close:hover {
    background: rgba(201, 168, 108, 0.15);
    color: var(--color-primary);
}

.cc-modal-body {
    padding: 1.5rem;
}

.cc-intro {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.cc-category {
    background: rgba(201, 168, 108, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.18);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
}

.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cc-category strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.cc-required {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.15rem 0.55rem;
    background: rgba(201, 168, 108, 0.2);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cc-category p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.83rem;
    line-height: 1.5;
}

.cc-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    transition: 0.3s;
}

.cc-slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cc-toggle input:checked + .cc-slider {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.cc-toggle input:checked + .cc-slider:before {
    transform: translateX(22px);
}

.cc-toggle-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cc-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(201, 168, 108, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .cc-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    .cc-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .cc-btn { flex: 1 1 auto; min-width: 0; }
    .cc-btn-link { flex: 0 0 auto; }
    .cc-icon { display: none; }
    .cc-modal-footer { flex-direction: column-reverse; }
    .cc-modal-footer .cc-btn { width: 100%; }
}

