/* ========================================================================
   File:
   wp-content/plugins/cookie-notice-gdpr-multilang/assets/style.css

   Cookie Notice GDPR Multilang
   Optimized to prevent visual flash and layout shift
   ======================================================================== */

/* Banner hidden by default.
   JavaScript adds .is-visible only when consent was not saved. */
.cngm-cookie-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9999;

    display: none;

    width: auto;
    margin: 0;
    padding: 0;

    pointer-events: none;
}

/* Show banner only after JavaScript checks localStorage */
.cngm-cookie-notice.is-visible {
    display: block;
    pointer-events: auto;
}

/* Main cookie notice box */
.cngm-cookie-notice__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;

    box-sizing: border-box;

    background: #111;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Cookie text */
.cngm-cookie-notice__text {
    flex: 1 1 300px;

    margin: 0;
    padding: 0;

    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* Privacy Policy link */
.cngm-cookie-notice__text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cngm-cookie-notice__text a:hover {
    color: #fff;
    opacity: 0.9;
}

.cngm-cookie-notice__text a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Accept button */
.cngm-cookie-notice__button {
    flex: 0 0 auto;

    min-height: 42px;
    margin: 0;
    padding: 10px 18px;

    border: 0;
    border-radius: 8px;

    background: #fff;
    color: #111;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.cngm-cookie-notice__button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.cngm-cookie-notice__button:active {
    transform: translateY(0);
}

.cngm-cookie-notice__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Tablet and mobile */
@media (max-width: 600px) {
    .cngm-cookie-notice {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cngm-cookie-notice__content {
        gap: 12px;
        padding: 14px;
        border-radius: 8px;
    }

    .cngm-cookie-notice__text {
        flex-basis: 100%;
        font-size: 13px;
        line-height: 1.5;
    }

    .cngm-cookie-notice__button {
        width: 100%;
        min-height: 44px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .cngm-cookie-notice {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .cngm-cookie-notice__content {
        padding: 12px;
    }
}

/* Accessibility: reduce animations when requested */
@media (prefers-reduced-motion: reduce) {
    .cngm-cookie-notice__button {
        transition: none;
    }

    .cngm-cookie-notice__button:hover,
    .cngm-cookie-notice__button:active {
        transform: none;
    }
}