/* ==========================================================================
   CB Laser Space - Cookie Consent Banner
   RGPD / Consent Mode v2 Compliant
   ========================================================================== */

/* Overlay */
.cblaser-cb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cblaser-cb-visible {
    opacity: 1;
}

.cblaser-cb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Container */
.cblaser-cb-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.15);
    animation: cblaser-cb-slideUp 0.4s ease;
}

@keyframes cblaser-cb-slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Main Banner */
.cblaser-cb-main {
    padding: 30px 32px;
}

.cblaser-cb-content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.cblaser-cb-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #faf8f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cblaser-cb-text h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 8px;
}

.cblaser-cb-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Buttons */
.cblaser-cb-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cblaser-cb-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.cblaser-cb-btn-primary {
    background: #c9a87c;
    color: #fff;
    border: 2px solid #c9a87c;
}

.cblaser-cb-btn-primary:hover {
    background: #b08d5e;
    border-color: #b08d5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 168, 124, 0.3);
}

.cblaser-cb-btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
    background: #9a7a4e;
    border-color: #9a7a4e;
}

.cblaser-cb-btn-outline {
    background: transparent;
    color: #2c2c2c;
    border: 2px solid #e8e2db;
}

.cblaser-cb-btn-outline:hover {
    border-color: #c9a87c;
    color: #c9a87c;
    transform: translateY(-1px);
}

.cblaser-cb-btn-outline:active {
    transform: translateY(1px);
    background: #faf8f5;
}

.cblaser-cb-btn-link {
    background: none;
    color: #c9a87c;
    padding: 12px 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cblaser-cb-btn-link:hover {
    color: #b08d5e;
}

.cblaser-cb-btn-link:active {
    color: #9a7a4e;
}

/* Settings Panel */
.cblaser-cb-settings {
    padding: 30px 32px;
}

.cblaser-cb-settings-header h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 8px;
}

.cblaser-cb-settings-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 24px;
}

/* Cookie Categories */
.cblaser-cb-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cblaser-cb-category {
    background: #faf8f5;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0ebe5;
}

.cblaser-cb-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cblaser-cb-cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cblaser-cb-cat-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
}

.cblaser-cb-cat-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.cblaser-cb-badge-required {
    background: #2c2c2c;
    color: #fff;
}

.cblaser-cb-badge-optional {
    background: #e8d5b7;
    color: #8a6d45;
}

.cblaser-cb-cat-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #888;
    margin: 0;
}

/* Toggle Switch */
.cblaser-cb-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cblaser-cb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cblaser-cb-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.3s;
    border-radius: 26px;
}

.cblaser-cb-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cblaser-cb-toggle input:checked + .cblaser-cb-toggle-slider {
    background-color: #c9a87c;
}

.cblaser-cb-toggle input:checked + .cblaser-cb-toggle-slider::before {
    transform: translateX(22px);
}

.cblaser-cb-toggle-locked {
    background-color: #c9a87c !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.cblaser-cb-toggle-locked::before {
    transform: translateX(22px);
}

/* Settings Footer */
.cblaser-cb-settings-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cblaser-cb-privacy-link {
    margin-top: 16px;
    text-align: center;
}

.cblaser-cb-privacy-link a {
    font-size: 13px;
    color: #c9a87c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cblaser-cb-privacy-link a:hover {
    color: #b08d5e;
}

/* Reopen Button */
.cblaser-cb-reopen {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: auto;
    height: auto;
    background: #ffffff;
    color: #2c2c2c;
    border: 1px solid #e8e2db;
    border-radius: 50px;
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cblaser-cb-reopen:hover {
    background: #faf8f5;
    border-color: #c9a87c;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.cblaser-cb-reopen:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cblaser-cb-reopen svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .cblaser-cb-main {
        padding: 24px 20px;
    }

    .cblaser-cb-settings {
        padding: 24px 20px;
    }

    .cblaser-cb-content {
        flex-direction: column;
        gap: 12px;
    }

    .cblaser-cb-icon {
        display: none;
    }

    .cblaser-cb-text h4 {
        font-size: 16px;
    }

    .cblaser-cb-text p {
        font-size: 13px;
    }

    .cblaser-cb-actions {
        flex-direction: column;
    }

    .cblaser-cb-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .cblaser-cb-btn-link {
        order: 3;
    }

    .cblaser-cb-settings-footer {
        flex-direction: column;
    }

    .cblaser-cb-settings-footer .cblaser-cb-btn {
        width: 100%;
        text-align: center;
    }

    .cblaser-cb-cat-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cblaser-cb-reopen {
        bottom: 90px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}

/* Desktop: wider layout */
@media (min-width: 768px) {
    .cblaser-cb-container {
        max-width: 680px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 24px;
        border-radius: 20px;
    }

    @keyframes cblaser-cb-slideUp {
        from {
            transform: translateX(-50%) translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }
}
