/* Cookie Consent Banner - SoundCreation internal replacement for CookieYes */

/* Backdrop - shown with both banner and prefs */
#sc-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#sc-consent-backdrop.sc-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Centered popup card */
#sc-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 99999;
    background: rgba(20, 20, 20, 0.97);
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    max-width: 460px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
#sc-consent-banner.sc-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
#sc-consent-banner a {
    color: #7abaff;
    text-decoration: underline;
}

.sc-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.sc-banner-text {
    margin-bottom: 20px;
    color: #bbb;
}
.sc-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sc-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s, background 0.15s;
}
.sc-btn:hover {
    opacity: 0.85;
}
.sc-btn-accept {
    background: #1863dc;
    color: #fff;
    flex: 1;
}
.sc-btn-reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    flex: 1;
}
.sc-btn-prefs {
    background: transparent;
    color: #999;
    border: none;
    padding: 10px 14px;
    font-weight: 400;
    text-decoration: underline;
    font-size: 13px;
}

/* Preference Panel - also centered */
#sc-consent-prefs {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 100000;
    background: rgba(20, 20, 20, 0.98);
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    max-width: 520px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
#sc-consent-prefs.sc-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.sc-prefs-inner {
    max-width: 100%;
}
.sc-prefs-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}
.sc-prefs-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.sc-prefs-row:last-of-type {
    border-bottom: none;
}
.sc-prefs-label {
    flex: 1;
}
.sc-prefs-label strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}
.sc-prefs-label span {
    color: #999;
    font-size: 12px;
}
.sc-cookie-count {
    color: #888;
    font-weight: 400;
    font-size: 12px;
}
.sc-toggle-details {
    display: inline-block;
    margin-top: 4px;
    color: #7abaff;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}
.sc-toggle-details:hover {
    text-decoration: underline;
}

/* Cookie Detail Tables */
.sc-cookie-details {
    padding: 8px 0 4px;
}
.sc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    color: #aaa;
}
.sc-cookie-table th {
    text-align: left;
    color: #999;
    font-weight: 600;
    padding: 4px 8px 4px 0;
    border-bottom: 1px solid #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sc-cookie-table td {
    padding: 4px 8px 4px 0;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: top;
}
.sc-cookie-table td:first-child {
    color: #ccc;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    white-space: nowrap;
}
.sc-cookie-table td:nth-child(2) {
    white-space: nowrap;
    min-width: 70px;
}

/* Toggle Switch */
.sc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
    margin-top: 2px;
}
.sc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.sc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #555;
    border-radius: 24px;
    transition: background 0.2s;
}
.sc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.sc-toggle input:checked + .sc-toggle-slider {
    background: #4caf50;
}
.sc-toggle input:checked + .sc-toggle-slider::before {
    transform: translateX(20px);
}
.sc-toggle input:disabled + .sc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}
.sc-prefs-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 480px) {
    #sc-consent-banner {
        padding: 22px 20px;
    }
    .sc-banner-actions {
        flex-direction: column;
    }
    .sc-btn {
        width: 100%;
        text-align: center;
    }
    .sc-btn-prefs {
        width: auto;
        align-self: center;
    }
    #sc-consent-prefs {
        padding: 20px 16px;
    }
    .sc-prefs-actions {
        flex-direction: column;
    }
    .sc-prefs-actions .sc-btn {
        width: 100%;
        text-align: center;
    }
}
