

.wa-documentation-page {
    --wa-doc-ink: #173b36;
    --wa-doc-muted: #6f8580;
    --wa-doc-border: #dcebe6;
    --wa-doc-green: var(--primary, #128c7e);
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    margin: 0 auto;
    color: var(--wa-doc-ink);
    box-sizing: border-box;
}

.wa-documentation-page *,
.wa-documentation-page *::before,
.wa-documentation-page *::after { box-sizing: border-box; }

.wa-documentation-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--wa-doc-border);
    border-radius: 18px;
    background: linear-gradient(120deg, #e9f8f2 0%, #f7fcfa 65%, #fff 100%);
}

.wa-documentation-eyebrow,
.wa-documentation-label {
    display: block;
    color: var(--wa-doc-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wa-documentation-eyebrow i { margin-right: 6px; font-size: 16px; vertical-align: -2px; }
.wa-documentation-hero h1 { margin: 9px 0 7px; color: var(--wa-doc-ink); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.08; }
.wa-documentation-hero p { margin: 0; color: var(--wa-doc-muted); font-size: 14px; }

.wa-documentation-base-url {
    flex: 0 1 360px;
    padding: 13px 15px;
    border: 1px solid #cfe4dc;
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
}

.wa-documentation-base-url span { display: block; margin-bottom: 5px; color: var(--wa-doc-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.wa-documentation-base-url code { display: block; overflow-wrap: anywhere; color: var(--wa-doc-green); font-size: 13px; }

.wa-documentation-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 0 18px; padding: 5px; border: 1px solid var(--wa-doc-border); border-radius: 14px; background: #f5faf8; }
.wa-documentation-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 0; border-radius: 9px; color: var(--wa-doc-muted); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.wa-documentation-tab:hover { color: var(--wa-doc-green); background: #fff; }
.wa-documentation-tab.is-active { color: #fff; background: var(--wa-doc-green); box-shadow: 0 5px 14px rgba(18, 140, 126, .18); }
.wa-documentation-tab i { font-size: 17px; }
.wa-documentation-content { display: block; }
.wa-documentation-tab-panel { display: grid; gap: 18px; }
.wa-documentation-tab-panel[hidden] { display: none !important; }
.wa-documentation-card { min-width: 0; margin: 0; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--wa-doc-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(23, 59, 54, .05); }
.wa-documentation-card h2 { margin: 6px 0 5px; color: var(--wa-doc-ink); font-size: 21px; }
.wa-documentation-card p { margin: 0; color: var(--wa-doc-muted); font-size: 13px; line-height: 1.6; }
.wa-documentation-key-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.wa-documentation-key-row code { min-width: 0; flex: 1; overflow: auto; padding: 11px 13px; border: 1px solid var(--wa-doc-border); border-radius: 10px; color: var(--wa-doc-ink); background: #f5faf8; white-space: nowrap; }
.wa-documentation-reset { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid #b9ded1; border-radius: 10px; color: var(--wa-doc-green); background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.wa-documentation-reset:hover { background: #effaf5; }
.wa-documentation-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.wa-documentation-method-note { color: var(--wa-doc-muted); font-size: 12px; }
.whatsapp_doc_endpoint { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--wa-doc-border); }
.whatsapp_doc_endpoint + .whatsapp_doc_endpoint { margin-top: 24px; }
.wa-endpoint-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.wa-endpoint-heading h3 { display: inline; margin: 0 0 0 9px; color: var(--wa-doc-ink); font-size: 17px; }
.wa-endpoint-heading code { max-width: 48%; overflow-wrap: anywhere; color: var(--wa-doc-green); font-size: 12px; text-align: right; }
.wa-documentation-method { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 6px; color: #fff; background: var(--wa-doc-green); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.whatsapp_doc_endpoint h4 { margin: 16px 0 8px; color: var(--wa-doc-ink); font-size: 12px; font-weight: 800; }
.whatsapp_doc_endpoint pre { max-width: 100%; margin: 0; padding: 15px 16px; overflow: auto; border: 1px solid #e1eee9; border-radius: 10px; color: #29453f; background: #f6faf8; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }

.wa-documentation-lead { margin: 0 0 18px !important; max-width: 900px; }
.wa-documentation-status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.wa-documentation-status-confirmed { color: #16704f; background: #e5f7ed; }
.wa-documentation-status-warning { color: #925817; background: #fff2dc; }
.wa-documentation-flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wa-documentation-flow-step { min-width: 0; padding: 15px; border: 1px solid var(--wa-doc-border); border-radius: 12px; background: #f8fcfa; }
.wa-documentation-flow-step > span { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--wa-doc-green); font-size: 12px; font-weight: 800; }
.wa-documentation-flow-step strong { display: block; margin-bottom: 5px; color: var(--wa-doc-ink); font-size: 13px; }
.wa-documentation-flow-step p { font-size: 12px; line-height: 1.5; }
.wa-documentation-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wa-documentation-mini-card { padding: 20px; border: 1px solid var(--wa-doc-border); border-radius: 14px; background: #fbfefd; }
.wa-documentation-mini-card h3 { margin: 12px 0 6px; color: var(--wa-doc-ink); font-size: 16px; }
.wa-documentation-mini-card p { margin-bottom: 12px; }
.wa-documentation-mini-card pre { margin: 0 0 12px; padding: 12px; overflow: auto; border-radius: 9px; color: #29453f; background: #f0f8f4; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.wa-documentation-flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
.wa-documentation-flow-icon-send { color: #16704f; background: #e5f7ed; }
.wa-documentation-flow-icon-receive { color: #5d45a8; background: #eeeaff; }
.wa-documentation-compact-list { margin: 0; padding-left: 18px; color: var(--wa-doc-muted); font-size: 12px; line-height: 1.6; }
.wa-documentation-compact-list li + li { margin-top: 8px; }
.wa-documentation-code-title { margin: 18px 0 8px; color: var(--wa-doc-ink); font-size: 12px; font-weight: 800; }
.wa-documentation-code-block { max-width: 100%; margin: 0; padding: 15px 16px; overflow: auto; border: 1px solid #e1eee9; border-radius: 10px; color: #29453f; background: #f6faf8; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.wa-documentation-note { margin-top: 14px !important; font-size: 12px !important; }
.wa-documentation-warning-card { border-color: #f0d9ae; background: linear-gradient(135deg, #fffdf8 0%, #fff 100%); }
.wa-documentation-warning-list { display: grid; gap: 10px; }
.wa-documentation-warning-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #f0dfc2; border-radius: 10px; color: #705a3d; background: #fffaf0; font-size: 12px; line-height: 1.55; }
.wa-documentation-warning-list i { flex: 0 0 auto; margin-top: 2px; color: #b57224; font-size: 16px; }
.wa-documentation-warning-list .ph-check-circle { color: #2a8c63; }
.wa-documentation-event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wa-documentation-event-grid > span { display: flex; min-height: 68px; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 12px; border: 1px solid var(--wa-doc-border); border-radius: 10px; background: #f8fcfa; }
.wa-documentation-event-grid code { color: var(--wa-doc-green); font-size: 11px; overflow-wrap: anywhere; }
.wa-documentation-event-grid small { color: var(--wa-doc-muted); font-size: 11px; line-height: 1.4; }

.wa-api-otp-modal { display: none; position: fixed; inset: 0; z-index: 1050; align-items: center; justify-content: center; padding: 18px; background: rgba(23, 59, 54, .55); }
.wa-api-otp-modal.is-visible { display: flex; }
.wa-api-otp-dialog { position: relative; width: min(100%, 430px); padding: 28px; border: 1px solid var(--wa-doc-border); border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(23, 59, 54, .2); }
.wa-api-otp-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--wa-doc-muted); background: #f1f7f4; font-size: 22px; line-height: 1; cursor: pointer; }
.wa-api-otp-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: var(--wa-doc-green); background: #e5f7ed; font-size: 21px; }
.wa-api-otp-dialog h3 { margin: 0 0 7px; color: var(--wa-doc-ink); font-size: 20px; }
.wa-api-otp-dialog p { margin: 0 0 18px; }
.wa-api-otp-dialog label { display: block; margin-bottom: 7px; color: var(--wa-doc-ink); font-size: 12px; font-weight: 800; }
.wa-api-otp-channel-options { margin: 0 0 12px; padding: 12px; border: 1px solid var(--wa-doc-border); border-radius: 10px; background: #f8fcfa; }
.wa-api-otp-channel-options legend { width: auto; margin: 0 0 8px; padding: 0; color: var(--wa-doc-ink); font-size: 12px; font-weight: 800; }
.wa-api-otp-channel-options label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; cursor: pointer; }
.wa-api-otp-channel-options input[type="radio"] { width: auto; margin: 0; accent-color: var(--wa-doc-green); }
.wa-api-otp-channel-options small { display: block; margin-top: 8px; color: var(--wa-doc-muted); font-size: 11px; line-height: 1.45; }
.wa-api-otp-dialog input { width: 100%; padding: 11px 12px; border: 1px solid var(--wa-doc-border); border-radius: 9px; color: var(--wa-doc-ink); background: #f8fcfa; font: 16px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .18em; text-align: center; }
.wa-api-otp-primary, .wa-api-otp-secondary { width: 100%; min-height: 42px; margin-top: 12px; padding: 0 14px; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.wa-api-otp-primary { border: 1px solid var(--wa-doc-green); color: #fff; background: var(--wa-doc-green); }
.wa-api-otp-primary:disabled { opacity: .6; cursor: wait; }
.wa-api-otp-secondary { border: 0; color: var(--wa-doc-green); background: transparent; }
.wa-api-otp-error { margin-top: 7px !important; color: #b23b3b !important; font-size: 12px !important; }
.wa-api-revealed-key { display: block; overflow-wrap: anywhere; margin-top: 8px; padding: 12px; border: 1px solid var(--wa-doc-border); border-radius: 9px; color: var(--wa-doc-ink); background: #f5faf8; font-size: 12px; }
.wa-api-otp-warning { margin-top: 12px !important; color: #856327 !important; font-size: 12px !important; }
.wa-api-otp-warning i { margin-right: 5px; }

@media (max-width: 720px) {
    .wa-documentation-page { padding: 0 10px 10px; }
    .wa-documentation-content { gap: 12px; }
    .wa-documentation-hero,
    .wa-documentation-card { border-radius: 14px; }
    .wa-documentation-hero { gap: 16px; margin-bottom: 12px; padding: 18px 16px; }
    .wa-documentation-hero h1 { font-size: 25px; }
    .wa-documentation-hero p,
    .wa-documentation-card p { font-size: 12.5px; }
    .wa-documentation-card { padding: 16px 14px; }
    .wa-documentation-card h2 { font-size: 19px; }
    .wa-documentation-section-heading { gap: 8px; margin-bottom: 14px; }
    .wa-documentation-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
    .wa-documentation-tab { min-height: 40px; padding: 8px 9px; font-size: 11px; }
    .wa-documentation-method-note { font-size: 11px; }
    .wa-documentation-hero, .wa-endpoint-heading, .wa-documentation-section-heading { align-items: stretch; flex-direction: column; }
    .wa-documentation-base-url, .wa-endpoint-heading code { max-width: none; width: 100%; }
    .wa-endpoint-heading code { text-align: left; }
    .wa-documentation-key-row { align-items: stretch; flex-direction: column; gap: 8px; margin-top: 14px; }
    .wa-documentation-key-row code { overflow-wrap: anywhere; white-space: normal; }
    .wa-documentation-reset { justify-content: center; width: 100%; }
    .whatsapp_doc_endpoint { padding-top: 16px; }
    .whatsapp_doc_endpoint + .whatsapp_doc_endpoint { margin-top: 18px; }
    .wa-endpoint-heading { gap: 10px; margin-bottom: 12px; }
    .wa-endpoint-heading h3 { font-size: 16px; }
    .whatsapp_doc_endpoint pre,
    .wa-documentation-code-block { padding: 12px; font-size: 11px; line-height: 1.55; }
    .wa-documentation-flow-step,
    .wa-documentation-mini-card { padding: 14px; }
    .wa-documentation-flow-steps, .wa-documentation-two-column, .wa-documentation-event-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 1100px) {
    .wa-documentation-flow-steps { grid-template-columns: repeat(3, 1fr); }
    .wa-documentation-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
