/* =============================================================
   COOKIE NOTICE — floating bottom card, site-wide, dismissed once
   per visitor per N days (ACF, default 30).
   Markup: inc/cookie-notice.php · behaviour: assets/js/cookie-notice.js

   Esh design language: white rounded card on the gradient page,
   navy body copy, brand-blue title, gradient pill CTA (same as the
   "For more questions" button). Fonts come from the Elementor kit.
   ============================================================= */
.esh-cookie-notice {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 2147483000;

    padding: 0 24px 24px;
    pointer-events: none;

    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.esh-cookie-notice.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.esh-cookie-notice__card {
    pointer-events: auto;

    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 40px;

    display: flex;
    align-items: center;
    gap: 20px 40px;

    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(18, 26, 84, 0.25);

    font-family: var(--e-global-typography-text-font-family, "Ploni 1.1 AAA"), sans-serif;
    color: var(--e-global-color-e0004b9, #121A54);
}

.esh-cookie-notice__content {
    flex: 1 1 auto;
    min-width: 0;
}

.esh-cookie-notice__title {
    margin: 0 0 6px;

    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--e-global-color-3aa8a54, #2535A7);
}

.esh-cookie-notice__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
}

.esh-cookie-notice__text p {
    margin: 0;
}

.esh-cookie-notice__text p + p {
    margin-block-start: 6px;
}

.esh-cookie-notice__text a {
    color: var(--e-global-color-3aa8a54, #2535A7);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.esh-cookie-notice__text a:hover {
    color: #826CDD;
}

.esh-cookie-notice__button {
    flex: 0 0 auto;
    padding: 15px 40px;

    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;

    background-color: transparent;
    background-image: linear-gradient(90deg, #826CDD 0%, #2535A7 100%);
    border: 0;
    border-radius: 100px;
    cursor: pointer;
    transition: box-shadow 0.2s, filter 0.2s;

    -webkit-appearance: none;
    appearance: none;
}

/* Hello Elementor's reset.css paints button:hover/focus pink — override it. */
.esh-cookie-notice__button:hover,
.esh-cookie-notice__button:focus {
    color: #FFFFFF;
    background-color: transparent;
    background-image: linear-gradient(90deg, #826CDD 0%, #2535A7 100%);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(46, 66, 209, 0.3);
}

.esh-cookie-notice__button:focus-visible {
    outline: 2px solid #121A54;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .esh-cookie-notice__card {
        padding: 24px 28px;
        gap: 20px 28px;
    }
}

@media (max-width: 767px) {
    .esh-cookie-notice {
        padding: 0 12px 12px;
    }

    .esh-cookie-notice__card {
        padding: 20px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;

        /* Long legal copy — never let the card swallow the whole screen. */
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .esh-cookie-notice__title {
        font-size: 19px;
    }

    .esh-cookie-notice__text {
        font-size: 14px;
    }

    .esh-cookie-notice__button {
        width: 100%;
        font-size: 18px;
        padding: 13px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esh-cookie-notice {
        transition: none;
    }
}
