.shop-help {
    --sh-accent: #2563eb;
    --sh-border: #e2e8f0;
    --sh-muted: #64748b;
    --sh-panel: #f8fafc;

    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 24px;
    box-sizing: border-box;
    align-items: start;
}

.shop-help *,
.shop-help *::before,
.shop-help *::after {
    box-sizing: border-box;
}

.shop-help-sidebar {
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 20px;
    background: var(--sh-panel);
    border: 1px solid var(--sh-border);
    border-radius: 12px;
}

.shop-help-sidebar-heading h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.shop-help-nav-group {
    border-bottom: 1px solid var(--sh-border);
    padding: 8px 0;
}

.shop-help-nav-group summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
}

.shop-help .shop-help-nav-group ul {
    display: block !important;
    list-style: none !important;
    margin: 4px 0 10px !important;
    padding: 0 !important;
    width: 100%;
}

.shop-help .shop-help-nav-group ul > li {
    display: block !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shop-help .shop-help-nav-group ul > li > a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 9px 12px;
    box-sizing: border-box;
}

.shop-help-nav-group li {
    margin: 2px 0;
}

.shop-help-nav-group a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.shop-help-nav-group a:hover {
    background: #e2e8f0;
}

.shop-help-nav-group a.is-active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.shop-help-content {
    min-width: 0;
}

.shop-help-intro {
    padding-bottom: 35px;
    border-bottom: 1px solid var(--sh-border);
}

.shop-help-intro h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
}

.shop-help-intro p {
    color: var(--sh-muted);
    font-size: 16px;
}

.shop-help-category {
    margin-top: 45px;
}

.shop-help-category > h2 {
    font-size: 26px;
    margin-bottom: 25px;
}

.shop-help-topic {
    padding: 30px;
    margin-bottom: 25px;
    background: var(--sh-panel);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    scroll-margin-top: 100px;
    min-height: 170px;
}

.shop-help-topic h3 {
    margin: 0 0 15px;
    font-size: 22px;
}

.shop-help-topic p {
    margin: 0;
    line-height: 1.7;
}

.shop-help-mobile-toggle {
    display: none;
}

@media (max-width: 800px) {
    .shop-help {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .shop-help-sidebar {
        position: relative;
        top: auto;
        max-height: none;
    }

    .shop-help-sidebar-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .shop-help-sidebar-heading h2 {
        margin: 0;
    }

    .shop-help-mobile-toggle {
        display: inline-flex;
        gap: 10px;
        align-items: center;
        cursor: pointer;
    }

    .shop-help-nav {
        display: none;
        margin-top: 15px;
    }

    .shop-help-sidebar.is-open .shop-help-nav {
        display: block;
    }

    .shop-help-topic {
        padding: 20px;
    }
}

/* Help sidebar topic rows */

.shop-help .shop-help-topic-links {
    display: block;
    width: 100%;
    margin: 4px 0 10px;
}

.shop-help .shop-help-topic-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.shop-help .shop-help-topic-link > a {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
}

.shop-help .shop-help-topic-link > a:hover {
    background: #e2e8f0;
}

.shop-help .shop-help-topic-link > a.is-active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

/* Main topic titles */
.shop-help .shop-help-topic > h3 {
    color: #000;
}

/* Subheadings within topic descriptions */
.shop-help .shop-help-topic h4 {
    color: #000;
}

/* Numbered instructions */
.shop-help .shop-help-topic ol {
    display: block;
    list-style-type: decimal !important;
    padding: 0 0 0 28px;
    margin: 12px 0 16px;
    height: auto;
}

.shop-help .shop-help-topic ol li {
    display: list-item;
    list-style-type: decimal;
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.6;
}

/* Bulleted lists */
.shop-help .shop-help-topic ul {
    list-style-type: disc !important;
    padding-left: 28px;
    margin: 12px 0 8px;
}

.shop-help .shop-help-topic ul li {
    display: list-item;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive help guide images */
.shop-help .shop-help-topic img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 12px auto 20px;
    border-radius: 8px;
    object-fit: contain;
}

/* Prevent images from forcing the content area wider */
.shop-help .shop-help-content,
.shop-help .shop-help-category,
.shop-help .shop-help-topic {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
