.cw-help-document-main {
    position: relative;
    width: 96%;
    max-width: 96%;
    overflow-x: clip;
    padding: 10px clamp(8px, 1.5vw, 18px) 18px;
}

.cw-help-pdf-shell {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.cw-help-pdf-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 0px);
    min-height: 680px;
    border: 0;
    background: #fff;
}

.cw-help-index-text {
    width: 96%;
    max-width: 100%;
    margin: 0 auto 10px;
    border: 1px solid color-mix(in srgb, var(--border-color) 84%, var(--cw-teal) 16%);
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cw-teal) 10%, var(--bg-secondary)), color-mix(in srgb, var(--bg-secondary) 88%, transparent));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.cw-help-index-text summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 800;
    color: var(--cw-teal);
    font-size: 0.78rem;
    line-height: 1;
}

.cw-help-index-text summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-help-index-text summary small {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.cw-help-index-text-body,
.cw-help-index-text.is-open-fallback {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    background: var(--bg-secondary);
}

.cw-help-index-text[open] {
    width: min(760px, calc(100vw - 32px));
    border-radius: 8px;
}

.cw-help-index-text.is-open-fallback {
    width: min(760px, calc(100vw - 32px));
    border-radius: 8px;
}

.cw-help-index-text[open] summary {
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.cw-help-index-text h1,
.cw-help-html-title h1 {
    margin: 0 0 8px;
    font-size: clamp(1.24rem, 2.1vw, 2rem);
    line-height: 1.18;
}

.cw-help-index-text p,
.cw-help-html-title p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.cw-help-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
}

.cw-help-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-primary) 56%, transparent);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.cw-help-html-document {
    width: min(980px, calc(100% - 18px));
    margin: 0 auto;
    padding-bottom: 18px;
}

.cw-help-html-title {
    padding: 8px 0 14px;
}

.cw-help-html-title p {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cw-help-order-modal .cw-sample-modal-card {
    max-width: min(980px, calc(100vw - 24px));
}

.cw-help-order-modal .cw-order-builder {
    padding: 0;
}

.cw-help-order-modal .cw-order-card {
    box-shadow: none;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .cw-help-pdf-frame {
        height: calc(100vh - 96px);
        min-height: 560px;
    }

    .cw-help-index-text summary {
        gap: 8px;
    }

    .cw-help-index-text summary small {
        display: none;
    }
}

.cw-help-index-text {
    width: min(520px, calc(100vw - 32px));
    max-width: min(520px, calc(100vw - 32px));
}

.cw-help-index-text summary {
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    list-style: none;
    text-align: center;
}

.cw-help-index-text summary::-webkit-details-marker {
    display: none;
}

.cw-help-index-text summary::after {
    content: '+';
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cw-teal) 16%, transparent);
    color: var(--cw-teal);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.cw-help-index-text[open] summary::after {
    content: '-';
}

.cw-help-index-text:not([open]) .cw-help-index-text-body {
    display: none;
}

.cw-help-index-text[open] {
    width: min(860px, calc(100vw - 32px));
    max-width: min(860px, calc(100vw - 32px));
}

.cw-help-index-text[open] summary {
    border-radius: 8px 8px 0 0;
}

body.cw-help-document-page .cw-help-document-main {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

body.cw-help-document-page .cw-help-index-text {
    width: min(360px, calc(100vw - 24px));
    max-width: min(360px, calc(100vw - 24px));
    margin-bottom: 8px;
}

body.cw-help-document-page .cw-help-index-text summary {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.68rem;
}

body.cw-help-document-page .cw-help-index-text summary::after {
    width: 16px;
    height: 16px;
    font-size: 0.68rem;
}

body.cw-help-document-page .cw-help-index-text[open] {
    width: 100%;
    max-width: 100%;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-help-index-text-body,
body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content {
    display: block;
    max-height: none;
    overflow: visible;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-help-index-text-body {
    padding: 14px clamp(10px, 2vw, 22px) 18px;
}

body.cw-help-document-page .cw-help-pdf-shell,
body.cw-help-document-page .cw-help-index-text[open] .cw-help-index-text-body {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

body.cw-help-document-page .cw-help-index-text {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.cw-help-document-page .cw-help-index-text summary {
    width: min(360px, 100%);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid color-mix(in srgb, var(--border-color) 84%, var(--cw-teal) 16%);
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cw-teal) 10%, var(--bg-secondary)), color-mix(in srgb, var(--bg-secondary) 88%, transparent));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

body.cw-help-document-page .cw-help-index-text[open] summary {
    border-radius: 999px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 84%, var(--cw-teal) 16%);
}

body.cw-help-document-page .cw-help-index-text .cw-help-index-text-body {
    display: none;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-help-index-text-body {
    display: block;
    height: auto;
    max-height: none;
    margin: 8px 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: visible;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content {
    height: auto;
    max-height: none !important;
    overflow: visible !important;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content > * {
    max-width: 100%;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content img,
body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content video,
body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content iframe {
    max-width: 100%;
    height: auto;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content th,
body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content td {
    overflow-wrap: anywhere;
    word-break: normal;
}

body.cw-help-document-page .cw-help-index-text[open] .cw-sample-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}

body.cw-help-document-page .cw-help-document-main {
    width: calc(100% - clamp(20px, 4vw, 56px));
    max-width: calc(100% - clamp(20px, 4vw, 56px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.cw-help-document-page .cw-help-pdf-shell,
body.cw-help-document-page .cw-help-index-text[open],
body.cw-help-document-page .cw-help-index-text[open] .cw-help-index-text-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
