.hbwf-offcanvas {
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: 95vw;
    max-height: 100vh;
    background: #111;
    color: #fff;
}

.hbwf-offcanvas--fallback {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    height: 100vh;
    visibility: hidden;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.hbwf-offcanvas--fallback.show {
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.hbwf-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbwf-offcanvas__title {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.hbwf-offcanvas__back {
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hbwf-offcanvas__search {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbwf-offcanvas__search-input {
    width: 100%;
    background: #1b1b1b;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
}

.hbwf-offcanvas__quick-links {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbwf-offcanvas__quick-link {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.hbwf-offcanvas__quick-link:last-child {
    border-bottom: 0;
}

.hbwf-offcanvas__quick-link:hover,
.hbwf-offcanvas__quick-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.hbwf-offcanvas__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.hbwf-offcanvas__buffer {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.hbwf-offcanvas__buffer--active {
    opacity: 1;
    pointer-events: auto;
}

.hbwf-offcanvas__buffer--forward {
    animation: hbwf-forward 220ms ease forwards;
}

.hbwf-offcanvas__buffer--back {
    animation: hbwf-back 220ms ease forwards;
}

.hbwf-offcanvas__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbwf-offcanvas__item-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.hbwf-offcanvas__item-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.hbwf-offcanvas__skeleton {
    height: 52px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1b1b1b 25%, #2b2b2b 50%, #1b1b1b 75%);
    background-size: 200% 100%;
    animation: hbwf-shimmer 1.2s infinite;
}

.hbwf-offcanvas__message {
    padding: 16px;
    border-radius: 6px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.hbwf-offcanvas__message--error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a95;
}

.hbwf-offcanvas__footer {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
}

.hbwf-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hbwf-offcanvas-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.hbwf-offcanvas-open {
    overflow: hidden;
}

.hbwf-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@keyframes hbwf-forward {
    from {
        transform: translate3d(25px, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes hbwf-back {
    from {
        transform: translate3d(-25px, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes hbwf-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hbwf-offcanvas__buffer--forward,
    .hbwf-offcanvas__buffer--back,
    .hbwf-offcanvas__skeleton,
    .hbwf-offcanvas--fallback {
        animation: none !important;
        transition: none !important;
    }
}
