/* wh_topbar — front.css */

.wh-topbar {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
    z-index: 1000;
    overflow: hidden;
    max-height: 200px;
    transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
}
.wh-topbar--hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
}

/* inner */
.wh-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 16px;
    min-height: 40px;
    position: relative;
}

/* swiper container */
.wh-topbar__swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.wh-topbar__swiper .swiper-wrapper { align-items: center; }
.wh-topbar__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* content */
.wh-topbar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    text-align: center;
}
.wh-topbar__content p { margin: 0; }
.wh-topbar__content a:not(.wh-topbar__cta) { color: inherit; text-decoration: underline; }
.wh-topbar__content a:not(.wh-topbar__cta):hover { opacity: .85; }

/* CTA */
.wh-topbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, opacity .2s;
}
.wh-topbar__cta:hover {
    background: rgba(255,255,255,.15);
    text-decoration: none;
    opacity: .9;
}

/* nav arrows */
.wh-topbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .6;
    transition: background .2s, opacity .2s;
    z-index: 2;
}
.wh-topbar__nav:hover { background: rgba(255,255,255,.2); opacity: 1; }
.wh-topbar__nav svg { display: block; }
.wh-topbar__nav.swiper-button-disabled { opacity: .2; cursor: default; pointer-events: none; }

/* close */
.wh-topbar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-left: 4px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .6;
    transition: background .2s;
}
.wh-topbar__close:hover { background: rgba(255,255,255,.2); opacity: 1; }
.wh-topbar__close svg { display: block; }

/* hide default swiper nav */
.wh-topbar .swiper-button-prev,
.wh-topbar .swiper-button-next { display: none; }

/* mobile */
@media (max-width: 768px) {
    .wh-topbar { font-size: 12px; }
    .wh-topbar p { display: inline; }
    .wh-topbar__inner { padding: 8px 10px; gap: 4px; min-height: 36px; }
    .wh-topbar__content { gap: 8px; display: block; }
    .wh-topbar__cta { font-size: 11px; padding: 3px 10px; margin-left: 3px; }
    .wh-topbar__nav { width: 24px; height: 24px; }
    .wh-topbar__nav svg { width: 12px; height: 12px; }
}
