/* Cookie Notice Multilang - Frontend Styles */

.cnm-cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: cnmSlideIn 0.4s ease-out;
}

.cnm-cookie-notice.cnm-position-bottom {
    bottom: 0;
}

.cnm-cookie-notice.cnm-position-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes cnmSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cnm-cookie-notice.cnm-hiding {
    animation: cnmSlideOut 0.3s ease-out forwards;
}

@keyframes cnmSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cnm-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cnm-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.cnm-learn-more {
    text-decoration: underline;
    margin-left: 10px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cnm-learn-more:hover {
    opacity: 0.8;
}

.cnm-buttons {
    flex-shrink: 0;
}

.cnm-accept-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cnm-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.cnm-accept-btn:active {
    transform: translateY(0);
}

.cnm-accept-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsywność */
@media (max-width: 768px) {
    .cnm-cookie-notice {
        padding: 15px;
    }
    
    .cnm-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cnm-message {
        font-size: 13px;
    }
    
    .cnm-accept-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .cnm-learn-more {
        display: block;
        margin: 10px 0 0 0;
    }
}

@media (max-width: 480px) {
    .cnm-cookie-notice {
        padding: 12px;
    }
    
    .cnm-message {
        font-size: 12px;
    }
    
    .cnm-accept-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ========================================
   OVERLAY - Półprzezroczysta warstwa blokująca
   ======================================== */

.cnm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* Fallback 50% */
    z-index: 99998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: all;
    transition: opacity 0.3s ease;
}

/* POPRAWKA: Opacity z inline style nadpisze, ale fallback OK */
.cnm-overlay.cnm-fade-out {
    opacity: 0;
}

/* Link do polityki prywatności MUSI być klikalny */
.cnm-learn-more {
    position: relative;
    z-index: 100000;
    pointer-events: auto !important;
}

/* Banner nad overlay */
.cnm-cookie-notice {
    z-index: 99999;
}

.cnm-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Fallback dla opacity */
}