/* Cookie Banner Styles - Aligned with B2Solutions Design */
:root {
    --cb-primary: #6C2BFF; /* Electric Purple */
    --cb-accent: #FF4D9D; /* Soft Pink */
    --cb-bg: #FFFFFF; /* Pure White */
    --cb-text: #0D0D0D; /* Pure Black */
    --cb-text-muted: #585858;
    --cb-border: #EEEEEE;
    --cb-shadow: 10px 10px 0px rgba(108, 43, 255, 0.1);
    --cb-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#cookie-banner {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 400px;
    background: var(--cb-bg);
    color: var(--cb-text);
    padding: 30px;
    border-radius: 0 !important;
    box-shadow: var(--cb-shadow);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: var(--cb-transition);
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--cb-text); /* Black border for white banner */
}

#cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cb-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--cb-text);
}

.cb-content p {
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cb-text-muted);
}

.cb-content a {
    color: var(--cb-primary);
    text-decoration: underline;
    font-weight: 700;
}

.cb-content a:hover {
    color: var(--cb-accent);
}

.cb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 0 !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: var(--cb-transition);
    border: 2px solid transparent;
    outline: none;
}

.cb-btn-primary {
    background: var(--cb-text);
    color: white;
}

.cb-btn-primary:hover {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
}

.cb-btn-secondary {
    background: transparent;
    border: 2px solid var(--cb-text);
    color: var(--cb-text);
}

.cb-btn-secondary:hover {
    background: var(--cb-text);
    color: white;
}

.cb-btn-outline {
    background: transparent;
    color: var(--cb-text-muted);
    font-size: 0.75rem;
    padding: 10px;
    text-decoration: underline;
    border: none;
}

.cb-btn-outline:hover {
    color: var(--cb-primary);
}

/* Settings Panel */
#cb-settings {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#cb-settings.active {
    display: block;
}

.cb-category {
    margin-bottom: 20px;
}

.cb-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cb-category-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cb-category-desc {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
}

/* Custom Toggle Switch (Rectangular) */
.cb-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}

.cb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .3s;
    border: 1px solid #ccc;
}

.cb-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .cb-slider {
    background-color: var(--cb-primary);
    border-color: var(--cb-primary);
}

input:checked + .cb-slider:before {
    transform: translateX(18px);
}

input:disabled + .cb-slider {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Placeholder for Blocked Content */
.cb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
}

.cb-placeholder-content {
    max-width: 400px;
}

.cb-placeholder p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cb-placeholder .cb-btn {
    width: auto;
    display: inline-block;
    padding: 12px 25px;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    #cookie-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 25px;
    }
}
