/* Cookie Consent — clubs.studio Loi 25 / Quebec Privacy Law */

#cs-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(25,25,25,0.95);
    border-top: 3px solid #DC2328;
    color: #fff;
    font-family: "apotek", "Roboto Condensed", sans-serif;
    font-size: 13px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

#cs-banner p {
    margin: 0;
    color: #ccc;
    max-width: 680px;
    line-height: 1.5;
}

#cs-banner a {
    color: #DC2328;
    text-decoration: underline;
}

#cs-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cs-btn {
    padding: 8px 20px;
    font-size: 12px;
    font-family: "apotek", "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cs-btn:hover { opacity: 0.85; }

.cs-btn-accept {
    background: #DC2328;
    color: #fff;
}

.cs-btn-refuse {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.cs-btn-settings {
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 11px;
    padding: 4px 8px;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal */
#cs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#cs-modal {
    background: rgba(30,30,30,0.95);
    border: 1px solid #333;
    border-top: 3px solid #DC2328;
    color: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 2px;
    font-family: "apotek", "Roboto Condensed", sans-serif;
}

#cs-modal-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#cs-modal-header h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
}

#cs-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#cs-modal-body {
    padding: 16px 24px;
}

#cs-modal-body p {
    color: #bbb;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cs-category {
    border: 1px solid #333;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.cs-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #252525;
}

.cs-category-header span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-category-body {
    padding: 10px 16px;
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}

/* Toggle switch */
.cs-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

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

.cs-toggle-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.cs-toggle input:checked + .cs-toggle-slider {
    background: #DC2328;
}

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

.cs-toggle input:disabled + .cs-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

#cs-modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #333;
}

/* Reopen button */
#cs-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99998;
    background: rgba(25,25,25,0.95);
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 12px;
    font-size: 11px;
    font-family: "apotek", "Roboto Condensed", sans-serif;
    cursor: pointer;
    border-radius: 2px;
    display: none;
}

#cs-reopen:hover {
    border-color: #DC2328;
    color: #fff;
}

.hidden { display: none !important; }
