.hubpet-sidebar-widget {
    position: relative;
    display: inline-flex;
}

.hubpet-sidebar-trigger {
    border: 0;
    background: transparent;
    color: #173f3f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
}

.hubpet-sidebar-trigger i,
.hubpet-sidebar-trigger svg {
    width: 26px;
    height: 26px;
    font-size: 26px;
}

.hubpet-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 22, 22, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

.hubpet-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hubpet-sidebar-panel {
    width: 312px;
    max-width: 88vw;
    min-height: 100dvh;
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    padding: 14px 12px 20px;
    box-shadow: 12px 0 28px rgba(12, 43, 43, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateX(-100%);
    opacity: 1;
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.hubpet-sidebar-overlay.is-open .hubpet-sidebar-panel {
    transform: translateX(0);
}

.hubpet-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hubpet-sidebar-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hubpet-sidebar-brand-logo img {
    width: 34px;
    height: auto;
    display: block;
}

.hubpet-sidebar-brand {
    margin: 0;
    color: #173f3f;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
}

.hubpet-sidebar-close {
    border: 0;
    background: transparent;
    color: #ea831d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.hubpet-sidebar-close i,
.hubpet-sidebar-close svg {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.hubpet-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.hubpet-sidebar-item-link {
    color: #173f3f;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 8px;
    font-size: 30px;
    font-weight: 500;
}

.hubpet-sidebar-item-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hubpet-sidebar-item-icon {
    color: #173f3f;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-sidebar-item-icon i,
.hubpet-sidebar-item-icon svg,
.hubpet-sidebar-item-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.hubpet-sidebar-item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.hubpet-sidebar-item-link:hover {
    color: #0f2e2e;
}

.hubpet-sidebar-section-title {
    margin: 12px 8px 15px;
    color: #5d6666;
    font-size: 20px;
    font-weight: 700;
}

.hubpet-sidebar-divider {
    border-bottom: 1px solid #e8ecec;
    margin: 8px 8px 10px;
}

.hubpet-sidebar-badge {
    --hubpet-badge-offset-x: 0px;
    --hubpet-badge-offset-y: 0px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ea831d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transform: translate(var(--hubpet-badge-offset-x), var(--hubpet-badge-offset-y));
    margin-right: 10px;
}

.hubpet-sidebar-footer-row {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.hubpet-sidebar-footer-decor {
    text-align: right;
    pointer-events: none;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.hubpet-sidebar-footer-decor img {
    max-width: 180px;
    height: auto;
}

.hubpet-sidebar-bottom {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

body.hubpet-sidebar-open {
    overflow: hidden;
}

.hubpet-sidebar-empty {
    color: #777;
}

@media (max-width: 767px) {
    .hubpet-sidebar-panel {
        width: 276px;
        max-width: 86vw;
        border-radius: 0 22px 22px 0;
    }

    .hubpet-sidebar-brand {
        font-size: 24px;
    }

    .hubpet-sidebar-item-link {
        font-size: 16px;
        padding: 9px 8px;
    }

    .hubpet-sidebar-section-title {
        font-size: 14px;
    }
}
