/*
 * LibreHost launch-offer bar: ONE source for libre.wtf, the advanced panel and webmail, like
 * css/header.css (the other two carry byte-for-byte copies and refuse to deploy if they differ).
 * A green bar above the header, same in light and dark; the ✕ hides it in all three apps.
 * Who sees it is decided by the server (lib/offer.php); js/offer.js only shows and hides it.
 * Exact pixels, one fixed-height line, so nothing below it can shift by a different amount.
 */

.lh-offer {
    position: relative;
    z-index: 60;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 56px;
    background: #157347;
    color: #ffffff;
    font-family: "LibreHost Header", "Manrope", sans-serif;
    font-size: 13.6px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.lh-offer[hidden] { display: none; }

.lh-offer p {
    margin: 0;
    overflow: hidden;
    color: inherit;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-offer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lh-offer a:hover,
.lh-offer a:focus { color: #ffffff; text-decoration: none; }

.lh-offer .lh-offer-short { display: none; }

.lh-offer .lh-offer-close {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font: 400 18px/1 "LibreHost Header", "Manrope", sans-serif;
    cursor: pointer;
}

.lh-offer .lh-offer-close:hover { background: rgba(255, 255, 255, .16); }
.lh-offer .lh-offer-close:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }

@media (max-width: 720px) {
    .lh-offer { padding: 0 48px 0 16px; font-size: 12.8px; }
    .lh-offer .lh-offer-long { display: none; }
    .lh-offer .lh-offer-short { display: inline; }
}
