/* ============================================
   COOKIE CONSENT BANNER
   - Bottom sheet on mobile, bottom-right card on desktop
   - Non-blocking (page is still scrollable)
   - Slides in from bottom on first visit
   ============================================ */

.mezi-cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mezi-cc-overlay.visible {
    opacity: 1;
}

.mezi-cc-banner {
    position: fixed;
    z-index: 99999;
    background: white;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1C1917;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    visibility: hidden;
}

.mezi-cc-banner.visible {
    transform: translateY(0);
    visibility: visible;
}

/* Mobile (default): bottom sheet */
.mezi-cc-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px 24px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Drag handle on mobile */
.mezi-cc-handle {
    width: 40px;
    height: 4px;
    background: #D6D3D1;
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* Desktop: bottom-right card */
@media (min-width: 768px) {
    .mezi-cc-banner {
        bottom: 24px;
        right: 24px;
        left: auto;
        width: 440px;
        max-width: calc(100vw - 48px);
        border-radius: 16px;
        padding: 24px 26px;
        max-height: calc(100vh - 48px);
    }
    .mezi-cc-handle {
        display: none;
    }
}

.mezi-cc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.mezi-cc-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mezi-cc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C1917;
    margin: 0;
    letter-spacing: -0.005em;
}

.mezi-cc-trust {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 14px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mezi-cc-trust-icon {
    color: #16A34A;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.mezi-cc-trust-text {
    font-size: 0.83rem;
    color: #065F46;
    line-height: 1.45;
    margin: 0;
}

.mezi-cc-trust-text strong {
    color: #064E3B;
    display: block;
    margin-bottom: 2px;
}

.mezi-cc-desc {
    font-size: 0.9rem;
    color: #57534E;
    line-height: 1.55;
    margin: 0 0 14px;
}

/* Categories (only visible when "Prilagodi" toggled) */
.mezi-cc-categories {
    display: none;
    border-top: 1px solid #F5F5F4;
    border-bottom: 1px solid #F5F5F4;
    padding: 10px 0;
    margin: 8px 0 14px;
}

.mezi-cc-banner.expanded .mezi-cc-categories {
    display: block;
}

.mezi-cc-cat {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: flex-start;
    border-bottom: 1px solid #F5F5F4;
}

.mezi-cc-cat:last-child {
    border-bottom: none;
}

.mezi-cc-cat-toggle {
    flex-shrink: 0;
    margin-top: 2px;
}

.mezi-cc-cat-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #B91C1C;
}

.mezi-cc-cat-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.mezi-cc-cat-body {
    flex: 1;
    min-width: 0;
}

.mezi-cc-cat-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1C1917;
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mezi-cc-cat-pill {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #FEE2E2;
    color: #991B1B;
    padding: 2px 8px;
    border-radius: 999px;
}

.mezi-cc-cat-desc {
    font-size: 0.82rem;
    color: #78716C;
    line-height: 1.5;
    margin: 0;
}

/* Action buttons */
.mezi-cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mezi-cc-actions-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mezi-cc-btn {
    appearance: none;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.mezi-cc-btn-primary {
    background: #1C1917;
    color: white;
}

.mezi-cc-btn-primary:hover {
    background: #292524;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mezi-cc-btn-secondary {
    background: #F5F5F4;
    color: #44403C;
    border: 1px solid #E7E5E4;
}

.mezi-cc-btn-secondary:hover {
    background: #E7E5E4;
}

.mezi-cc-btn-link {
    background: transparent;
    color: #57534E;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.mezi-cc-btn-link:hover {
    color: #B91C1C;
}

.mezi-cc-policy-link {
    color: #57534E;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.82rem;
}

.mezi-cc-policy-link:hover {
    color: #B91C1C;
}

/* Footer reopen button (mounted in site footer) */
.mezi-cc-reopen {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mezi-cc-reopen:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
