/* Bikram Cookie Consent Banner - Lightweight Cookie Banner Styles */

/* Base Banner Styles */
.bcz-banner {
    display: none;
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

.bcz-banner.bcz-visible {
    display: block;
}

/* The fullscreen template centers its content with flexbox, so its
   visible state needs `flex`, not the `block` default above. */
.bcz-banner.bcz-template-fullscreen.bcz-visible {
    display: flex;
}

.bcz-banner * {
    box-sizing: border-box;
}

.bcz-banner-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bcz-banner-message {
    margin: 0 0 15px 0;
    color: inherit;
}

.bcz-banner-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.bcz-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcz-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bcz-category label {
    cursor: pointer;
    user-select: none;
}

.bcz-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.bcz-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bcz-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bcz-btn-primary {
    background: #0073aa;
    color: #fff;
}

.bcz-btn-primary:hover {
    background: #005a87;
}

.bcz-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.bcz-btn-secondary:hover {
    background: #e0e0e0;
}

/* Position Variants */
.bcz-top {
    top: 0;
    left: 0;
    right: 0;
}

/* Sit below the WordPress admin bar instead of covering it. */
body.admin-bar .bcz-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bcz-top {
        top: 46px;
    }
}

.bcz-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.bcz-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
}

.bcz-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
}

/* Template 1: Minimal */
.bcz-template-minimal {
    background: #fff;
    color: #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Template 2: Card */
.bcz-template-card {
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Template 3: Glass */
.bcz-template-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #333;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Card and glass are meant to float above the page, not stretch
   edge-to-edge like the minimal/dark bars, so inset and center them
   whenever they're paired with a full-width top/bottom position. The
   bottom-left/bottom-right positions already float in a corner, so
   they're left as-is. */
.bcz-template-card.bcz-top,
.bcz-template-card.bcz-bottom,
.bcz-template-glass.bcz-top,
.bcz-template-glass.bcz-bottom {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.bcz-template-card.bcz-top,
.bcz-template-glass.bcz-top {
    margin-top: 20px;
}

.bcz-template-card.bcz-bottom,
.bcz-template-glass.bcz-bottom {
    margin-bottom: 20px;
}

/* Template 4: Dark */
.bcz-template-dark {
    background: #1a1a1a;
    color: #fff;
}

.bcz-template-dark .bcz-btn-secondary {
    background: #333;
    color: #fff;
}

.bcz-template-dark .bcz-btn-secondary:hover {
    background: #444;
}

/* Template 5: Fullscreen */
.bcz-template-fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.bcz-template-fullscreen .bcz-banner-content {
    background: #fff;
    color: #333;
    border-radius: 8px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .bcz-banner-categories {
        flex-direction: column;
        gap: 10px;
    }
    
    .bcz-banner-buttons {
        flex-direction: column;
    }
    
    .bcz-btn {
        width: 100%;
    }
    
    .bcz-bottom-left,
    .bcz-bottom-right {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .bcz-template-card.bcz-top,
    .bcz-template-card.bcz-bottom,
    .bcz-template-glass.bcz-top,
    .bcz-template-glass.bcz-bottom {
        margin-left: 10px;
        margin-right: 10px;
        max-width: none;
    }

    .bcz-template-fullscreen .bcz-banner-content {
        padding: 24px;
        border-radius: 0;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }
}

/* Avoid the iOS home-indicator area covering the buttons on bottom-pinned banners. */
.bcz-bottom,
.bcz-bottom-left,
.bcz-bottom-right {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Respect reduced-motion preferences for the button hover lift. */
@media (prefers-reduced-motion: reduce) {
    .bcz-btn {
        transition: none;
    }

    .bcz-btn:hover {
        transform: none;
    }
}

/* Consent Button Shortcode */
.bcz-consent-button {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.bcz-consent-button:hover {
    background: #005a87;
}