/**
 * Cookie Consent Banner Styles
 * NDPR/GDPR compliant cookie notice
 */

/* Cookie Banner Container */
.pbc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid var(--pbc-purple, #6f42c1);
}

.pbc-cookie-banner.pbc-cookie-show {
    transform: translateY(0);
}

.pbc-cookie-banner.pbc-cookie-hide {
    transform: translateY(100%);
}

/* Banner Content */
.pbc-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Icon */
.pbc-cookie-icon {
    font-size: 2.5rem;
    color: var(--pbc-purple, #6f42c1);
    flex-shrink: 0;
}

/* Text Content */
.pbc-cookie-text {
    flex-grow: 1;
}

.pbc-cookie-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.pbc-cookie-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.pbc-cookie-description a {
    color: var(--pbc-purple, #6f42c1);
    text-decoration: underline;
}

.pbc-cookie-description a:hover {
    color: #5a32a3;
}

/* Buttons Container */
.pbc-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.pbc-cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.pbc-cookie-btn-accept {
    background: var(--pbc-purple, #6f42c1);
    color: #fff;
}

.pbc-cookie-btn-accept:hover {
    background: #5a32a3;
}

.pbc-cookie-btn-settings {
    background: transparent;
    color: var(--pbc-purple, #6f42c1);
    border: 1px solid var(--pbc-purple, #6f42c1);
}

.pbc-cookie-btn-settings:hover {
    background: rgba(111, 66, 193, 0.1);
}

.pbc-cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.pbc-cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Settings Panel */
.pbc-cookie-settings {
    display: none;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;
}

.pbc-cookie-settings.pbc-cookie-settings-show {
    display: block;
}

.pbc-cookie-settings-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.pbc-cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pbc-cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 200px;
}

.pbc-cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pbc-purple, #6f42c1);
    margin-top: 2px;
    flex-shrink: 0;
}

.pbc-cookie-option-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.pbc-cookie-option-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.pbc-cookie-option input[type="checkbox"]:disabled {
    opacity: 0.7;
}

/* Save Preferences Button */
.pbc-cookie-save {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .pbc-cookie-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }

    .pbc-cookie-icon {
        font-size: 2rem;
    }

    .pbc-cookie-title {
        font-size: 1rem;
    }

    .pbc-cookie-description {
        font-size: 0.85rem;
    }

    .pbc-cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .pbc-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .pbc-cookie-settings {
        padding: 15px 20px;
    }

    .pbc-cookie-options {
        flex-direction: column;
        gap: 15px;
    }

    .pbc-cookie-option {
        flex: 1 1 100%;
    }
}

/* Small screens - more compact */
@media (max-width: 480px) {
    .pbc-cookie-content {
        padding: 15px;
    }

    .pbc-cookie-icon {
        display: none;
    }

    .pbc-cookie-actions {
        gap: 8px;
    }

    .pbc-cookie-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
