/**
 * Notification Bar · front
 * Σταθερό ύψος (καμία μετακίνηση της σελίδας), slide από κάτω προς τα πάνω.
 *
 * @author    codePresta.com
 * @copyright codePresta.com
 */
.ntf {
    --ntf-h: 38px;
    position: relative;
    height: var(--ntf-h);
    overflow: hidden;
    background: var(--ntf-bg, #1c3673);
    color: var(--ntf-color, #fff);
    font-size: 13px;
    line-height: 1.3;
}

.ntf-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 8px;
}

.ntf-track {
    position: relative;
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ntf-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .55s cubic-bezier(.22, .8, .3, 1), opacity .45s ease, visibility .55s;
}

.ntf-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ntf-item.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateY(-100%);
}

/* προς τα πίσω: αντίθετη κατεύθυνση */
.ntf.is-back .ntf-item:not(.is-active):not(.is-leaving) {
    transform: translateY(-100%);
}

.ntf.is-back .ntf-item.is-leaving {
    transform: translateY(100%);
}

.ntf-item span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ntf-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}

.ntf-item a:hover,
.ntf-item a:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ntf-item strong,
.ntf-item b {
    font-weight: 700;
}

.ntf svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ntf-arrow {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.ntf-item a:hover .ntf-arrow {
    transform: translateX(3px);
}

/* sticky header του theme: η μπάρα φεύγει με το scroll, το header μένει */
body:not(#checkout) #header:has(.ntf) {
    top: calc(-1 * var(--ntf-h-global, 38px));
}

@media (max-width: 575px) {
    .ntf {
        --ntf-h: 34px;
        font-size: 12px;
    }

    body:not(#checkout) #header:has(.ntf) {
        --ntf-h-global: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ntf-item {
        transition: opacity .2s ease;
        transform: none !important;
    }
}
