#yp-top-banner {
    position: relative;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    gap: 12px;
    background: var(--ypbh-background, #1f392a);
    color: var(--ypbh-color, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-size: clamp(13px, 2.6vw, 15px);
    line-height: 1.45;
}

#yp-top-banner.yp-top-banner--sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
}

#yp-top-banner .yp-top-banner__inner {
    flex: 1;
    min-width: 0;
    margin: 0;
}

#yp-top-banner.yp-top-banner--align-left .yp-top-banner__inner {
    text-align: left;
}

#yp-top-banner.yp-top-banner--align-center .yp-top-banner__inner {
    text-align: center;
}

#yp-top-banner.yp-top-banner--align-right .yp-top-banner__inner {
    text-align: right;
}

#yp-top-banner a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

#yp-top-banner .yp-top-banner__link--pill,
#yp-top-banner .yp-top-banner__link--rectangle {
    display: inline-block;
    margin-left: 6px;
    padding: var(--ypbh-link-padding-vertical, 6px) var(--ypbh-link-padding-horizontal, 14px);
    border: var(--ypbh-link-border-width, 1px) solid var(--ypbh-link-border-color, #ffffff);
    background: var(--ypbh-link-background, #ffffff);
    color: var(--ypbh-link-color, #1f392a);
    line-height: 1.2;
    text-decoration: none;
}

#yp-top-banner .yp-top-banner__link--pill {
    border-radius: 999px;
}

#yp-top-banner .yp-top-banner__link--rectangle {
    border-radius: var(--ypbh-link-radius, 4px);
}

#yp-top-banner .yp-top-banner__link--pill:hover,
#yp-top-banner .yp-top-banner__link--rectangle:hover {
    filter: brightness(0.96);
}

#yp-top-banner .yp-top-banner__link--pill:focus-visible,
#yp-top-banner .yp-top-banner__link--rectangle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#yp-top-banner .yp-top-banner__close {
    align-self: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin-left: auto;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
}

#yp-top-banner .yp-top-banner__close:hover {
    opacity: 0.92;
}

#yp-top-banner .yp-top-banner__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#yp-top-banner .yp-top-banner__close--pill {
    width: auto;
    height: auto;
    padding: 6px 12px;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.22);
    line-height: 1;
}

#yp-top-banner .yp-top-banner__close--solid {
    width: auto;
    height: auto;
    padding: 6px 12px;
    border-color: #ffffff;
    background: #ffffff;
    color: #2c2c2c;
    line-height: 1;
}

@media (max-width: 767px) {
    #yp-top-banner {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 44px 10px 12px;
        font-size: 13px;
    }

    #yp-top-banner .yp-top-banner__inner {
        width: 100%;
    }

    #yp-top-banner .yp-top-banner__link--pill,
    #yp-top-banner .yp-top-banner__link--rectangle {
        margin-top: 6px;
    }

    #yp-top-banner .yp-top-banner__close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
        margin: 0;
        font-size: 17px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #yp-top-banner {
        padding: 11px 16px;
        gap: 10px;
        font-size: 14px;
    }

    #yp-top-banner .yp-top-banner__close {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
        line-height: 26px;
    }
}

@media (min-width: 1024px) {
    #yp-top-banner {
        padding: 14px 24px;
        gap: 14px;
        font-size: 15px;
    }

    #yp-top-banner .yp-top-banner__close {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        line-height: 28px;
    }
}
