button:focus {
    outline: transparent
}
.extra-pocket-how-to {
    --how-to-color-title: #1f2e45;
    --how-to-color-body: #6b717b;
    --how-to-color-brand: #6936D3;
    --how-to-color-pill-active-bg: #ffffff;
    --how-to-color-pill-inactive-bg: transparent;
    --how-to-color-pill-active-text: #1f2e45;
    --how-to-color-pill-inactive-text: #6b717b;
    --how-to-color-pill-track-bg: #f4f2fb;
    --how-to-color-select-border: #6936D3;
    --how-to-color-divider: #e8eaee;
    --how-to-color-image-placeholder: #d9d9d9;
    --how-to-color-dot-bg: #ffffff;
    --how-to-color-dot-text: #6936D3;

    --how-to-pill-track-radius: 999px;
    --how-to-pill-radius: 999px;
    --how-to-pill-padding-y: 0.75rem;
    --how-to-pill-padding-x: 1.25rem;
    --how-to-pill-font-size: 0.875rem;
    --how-to-pill-font-weight: 500;
    --how-to-pill-shadow: 0 2px 8px rgba(105, 54, 211, 0.08);

    --how-to-image-w-mobile: 14rem;
    --how-to-image-h-mobile: 28rem;
    --how-to-image-w-desktop: 28rem;
    --how-to-image-h-desktop: 30rem;

    --how-to-panel-title-size-mobile: 1.125rem;
    --how-to-panel-title-lh-mobile: 1.6875rem;
    --how-to-panel-title-size-desktop: 1.5rem;
    --how-to-panel-title-lh-desktop: 2.25rem;

    --how-to-item-question-size: 1rem;
    --how-to-item-question-lh: 1.5rem;
    --how-to-item-answer-size: 0.875rem;
    --how-to-item-answer-lh: 1.3125rem;

    --how-to-section-py-mobile: 3rem;
    --how-to-section-py-desktop: 5rem;
    --how-to-panel-gap-mobile: 1.5rem;
    --how-to-panel-gap-desktop: 3rem;

    --how-to-step-title-size-mobile: 1rem;
    --how-to-step-title-lh-mobile: 1.5rem;
    --how-to-step-body-size-mobile: 0.875rem;
    --how-to-step-body-lh-mobile: 1.3125rem;

    --how-to-dot-size: 1.75rem;
    --how-to-arrow-size: 2.5rem;

    padding: var(--how-to-section-py-mobile) 0;
}

.extra-pocket-how-to__inner {
    display: flex;
    flex-direction: column;
    gap: var(--how-to-panel-gap-mobile);
    align-items: center;
}

/* ─── Pills (desktop) ──────────────────────────────────────────────────────── */
.extra-pocket-how-to__pills {
    display: none;
    background-color: var(--how-to-color-pill-track-bg);
    border-radius: var(--how-to-pill-track-radius);
    padding: 0.25rem;
    width: 100%;
    gap: 0.25rem;
}

.extra-pocket-how-to__pill {
    flex: 1;
    border: 0;
    background: var(--how-to-color-pill-inactive-bg);
    color: var(--how-to-color-pill-inactive-text);
    font-family: 'Poppins', sans-serif;
    font-size: var(--how-to-pill-font-size);
    font-weight: var(--how-to-pill-font-weight);
    padding: var(--how-to-pill-padding-y) var(--how-to-pill-padding-x);
    border-radius: var(--how-to-pill-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    line-height: 1.4;
}

.extra-pocket-how-to__pill.is-active {
    background-color: var(--how-to-color-pill-active-bg);
    color: var(--how-to-color-pill-active-text);
    box-shadow: var(--how-to-pill-shadow);
}

/* ─── Select (mobile) ──────────────────────────────────────────────────────── */
.extra-pocket-how-to__select-label {
    display: block;
    width: 100%;
    max-width: 28rem;
    position: relative;
}

.extra-pocket-how-to__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid var(--how-to-color-select-border);
    border-radius: var(--how-to-pill-track-radius);
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: var(--how-to-pill-font-size);
    font-weight: var(--how-to-pill-font-weight);
    color: var(--how-to-color-title);
    line-height: 1.4;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236936D3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9L12 15L18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem 1rem;
}

.extra-pocket-how-to__select:focus {
    outline: 2px solid var(--how-to-color-brand);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Panels ───────────────────────────────────────────────────────────────── */
.extra-pocket-how-to__panels {
    width: 100%;
}

.extra-pocket-how-to__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--how-to-panel-gap-mobile);
    width: 100%;
}

.extra-pocket-how-to__panel[hidden] {
    display: none;
}

/* mobile order: title, image, content (see cara_menarik_saldo.png) */
.extra-pocket-how-to__panel {
    display: grid;
    grid-template-areas:
        "title"
        "image"
        "content";
    justify-items: center;
}

/* text-col has no own grid track on mobile; display:contents lets its children
   (title, content) act as direct grid items of the panel. */
.extra-pocket-how-to__panel > .extra-pocket-how-to__text-col {
    display: contents;
}

.extra-pocket-how-to__panel > .extra-pocket-how-to__image-col {
    grid-area: image;
}

.extra-pocket-how-to__panel .extra-pocket-how-to__content {
    grid-area: content;
    width: 100%;
}

.extra-pocket-how-to__image-col {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.extra-pocket-how-to__image {
    display: block;
}

.extra-pocket-how-to__image-placeholder {
    width: var(--how-to-image-w-mobile);
    height: var(--how-to-image-h-mobile);
    background-color: var(--how-to-color-image-placeholder);
    border-radius: 1.5rem;
}

.extra-pocket-how-to__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 36rem;
}

.extra-pocket-how-to__panel-title {
    grid-area: title;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--how-to-panel-title-size-mobile);
    line-height: var(--how-to-panel-title-lh-mobile);
    color: var(--how-to-color-title);
    margin: 0 0 1rem;
    text-align: center;
}

/* ─── Accordion (desktop) ──────────────────────────────────────────────────── */
.extra-pocket-how-to__list {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.extra-pocket-how-to__item {
    background-color: var(--how-to-color-pill-track-bg);
    border-radius: 1rem;
    padding: 0 1.5rem;
}

.extra-pocket-how-to__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.extra-pocket-how-to__question {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--how-to-item-question-size);
    line-height: var(--how-to-item-question-lh);
    color: var(--how-to-color-title);
}

.extra-pocket-how-to__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.extra-pocket-how-to__header:not(.collapsed) .extra-pocket-how-to__icon {
    transform: rotate(180deg);
}

.extra-pocket-how-to__answer {
    padding: 0 0 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: var(--how-to-item-answer-size);
    line-height: var(--how-to-item-answer-lh);
    color: var(--how-to-color-body);
}

.extra-pocket-how-to__answer p {
    margin: 0 0 0.5rem;
}

.extra-pocket-how-to__answer p:last-child {
    margin-bottom: 0;
}

/* ─── Stepper (mobile) ─────────────────────────────────────────────────────── */
.extra-pocket-how-to__stepper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.extra-pocket-how-to__stepper-arrow {
    width: var(--how-to-arrow-size);
    height: var(--how-to-arrow-size);
    border-radius: 50%;
    border: 1px solid var(--how-to-color-select-border);
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.extra-pocket-how-to__stepper-arrow:hover {
    background-color: #f4f2fb;
}

.extra-pocket-how-to__stepper-dot {
    border: solid 2px var(--how-to-color-select-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--how-to-dot-size);
    height: var(--how-to-dot-size);
    border-radius: 50%;
    background-color: var(--how-to-color-dot-bg);
    color: var(--how-to-color-dot-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

/* ─── Stepper overlay nav (mobile, both layouts) ──────────────────────────── */
.extra-pocket-how-to__stepper-overlay-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.extra-pocket-how-to__stepper-overlay-nav .extra-pocket-how-to__stepper-arrow {
    pointer-events: auto;
}

/* ─── Progress bar (mobile, numbered_list only) ───────────────────────────── */
.extra-pocket-how-to__progress-bar {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 12rem;
    justify-content: center;
}

.extra-pocket-how-to__progress-segment {
    width: 2rem;
    height: 0.25rem;
    border-radius: 999px;
    background-color: var(--how-to-color-pill-track-bg);
}

.extra-pocket-how-to__progress-segment.is-active {
    background-color: var(--how-to-color-brand);
}

.extra-pocket-how-to__steps {
    width: 100%;
}

.extra-pocket-how-to__step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.extra-pocket-how-to__step[hidden] {
    display: none;
}

.extra-pocket-how-to__step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--how-to-step-title-size-mobile);
    line-height: var(--how-to-step-title-lh-mobile);
    color: var(--how-to-color-title);
    margin: 0;
}

.extra-pocket-how-to__step-body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: var(--how-to-step-body-size-mobile);
    line-height: var(--how-to-step-body-lh-mobile);
    color: var(--how-to-color-body);
}

.extra-pocket-how-to__step-body p {
    margin: 0 0 0.5rem;
}

.extra-pocket-how-to__step-body p:last-child {
    margin-bottom: 0;
}

/* ─── Numbered list (desktop) ──────────────────────────────────────────────── */
.extra-pocket-how-to__numbered-list {
    display: none;
    position: relative;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.extra-pocket-how-to__numbered-connector {
    position: absolute;
    top: calc(var(--how-to-dot-size) / 2);
    bottom: calc(var(--how-to-dot-size) / 2);
    left: calc(var(--how-to-dot-size) / 2);
    width: 1px;
    background-color: var(--how-to-color-divider);
}

.extra-pocket-how-to__numbered-item {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.extra-pocket-how-to__numbered-dot {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--how-to-dot-size);
    height: var(--how-to-dot-size);
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--how-to-color-body);
    border: 1px solid var(--how-to-color-body);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    z-index: 1;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.extra-pocket-how-to__numbered-dot.is-active {
    color: var(--how-to-color-brand);
    border-color: var(--how-to-color-brand);
    border-width: 2px;
}

.extra-pocket-how-to__numbered-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: var(--how-to-item-question-size);
    line-height: var(--how-to-item-question-lh);
    color: var(--how-to-color-title);
    padding-top: 0.125rem;
    cursor: pointer;
}

.extra-pocket-how-to__numbered-text p {
    margin: 0 0 0.5rem;
}

.extra-pocket-how-to__numbered-text p:last-child {
    margin-bottom: 0;
}

/* ─── Desktop ──────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
    .extra-pocket-how-to {
        padding: var(--how-to-section-py-desktop) 0;
    }

    .extra-pocket-how-to__inner {
        gap: var(--how-to-panel-gap-desktop);
    }

    .extra-pocket-how-to__pills {
        display: flex;
    }

    .extra-pocket-how-to__select-label {
        display: none;
    }

    .extra-pocket-how-to__panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        column-gap: var(--how-to-panel-gap-desktop);
    }

    /* desktop drops the mobile 3-row area template and falls back to the same
       auto-placed 2-column grid above, so the image column lands in column 1.
       text-col collapses to a single flex column so title+content center as one block. */
    .extra-pocket-how-to__panel {
        grid-template-areas: none;
    }

    /* mobile's grid-area: image has no matching area name here (areas: none above),
       which would otherwise auto-generate a stray implicit column for it. */
    .extra-pocket-how-to__panel > .extra-pocket-how-to__image-col {
        grid-area: auto;
    }

    .extra-pocket-how-to__panel .extra-pocket-how-to__text-col {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 36rem;
        align-self: flex-start;
    }

    .extra-pocket-how-to__image,
    .extra-pocket-how-to__image-placeholder {
        width: var(--how-to-image-w-desktop);
    }

    .extra-pocket-how-to__content {
        max-width: 36rem;
    }

    .extra-pocket-how-to__panel-title {
        font-size: var(--how-to-panel-title-size-desktop);
        line-height: var(--how-to-panel-title-lh-desktop);
        text-align: left;
    }

    .extra-pocket-how-to__list {
        display: flex;
    }

    .extra-pocket-how-to__numbered-list {
        display: flex;
    }

    .extra-pocket-how-to__stepper {
        display: none;
    }

    .extra-pocket-how-to__stepper-overlay-nav {
        display: none;
    }
}
