/* Minimal "Welcome back" bar inspired by the supplied reference image. */
#cwylo-notice {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    padding: 0 10px 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0;
    background: #fff;
    color: #252525;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transform: translate(-50%, -110%);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    font-family: inherit;
}

#cwylo-notice.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cwylo-notice__content {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.cwylo-notice__message {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
}

.cwylo-btn--continue {
    margin: 0;
    padding: 0;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.cwylo-btn--continue:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cwylo-notice__close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    transform: translateY(-50%);
    font: inherit;
    font-size: 18px;
    font-weight: 300;
    line-height: 24px;
}

.cwylo-notice__close:hover {
    color: #222;
}

.cwylo-btn--continue:focus-visible,
.cwylo-notice__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    /* Keep the same minimal horizontal style on phones. */
    #cwylo-notice {
        min-height: 36px;
        padding-left: 10px;
        padding-right: 38px;
    }

    .cwylo-notice__content {
        min-height: 36px;
        gap: 9px;
    }

    .cwylo-notice__message,
    .cwylo-btn--continue {
        font-size: 11px;
    }

    .cwylo-notice__message {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cwylo-btn--continue {
        flex-shrink: 0;
    }

    .cwylo-notice__close {
        right: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cwylo-notice {
        transition: none;
    }
}
