.rd-help-walkthrough-launcher {
    margin: 0 0 16px;
}

.rd-help-walkthrough-launcher__button .fa {
    margin-right: 6px;
}

.rd-help-centre__article-header .rd-help-walkthrough-launcher {
    margin-top: 12px;
}

.rd-help-walkthrough-mount--open {
    position: relative;
}

body.rd-help-walkthrough-mount--open {
    overflow: hidden;
}

#rd-help-body.rd-help-walkthrough-mount--open {
    overflow: hidden;
}

.rd-help-walkthrough {
    display: flex;
    flex-direction: column;
    background: #fff;
}

#rd-help-body .rd-help-walkthrough {
    position: absolute;
    inset: 0;
    z-index: 5;
}

body.rd-help-walkthrough-mount--open > .rd-help-walkthrough {
    position: fixed;
    inset: 0;
    z-index: 10050;
    height: 100vh;
    max-height: 100vh;
}

.rd-help-walkthrough__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #486f9c 0%, #3a5a7c 100%);
    color: #fff;
    flex-shrink: 0;
}

.rd-help-walkthrough-chrome__leading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.rd-help-walkthrough-chrome__back {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    white-space: nowrap;
}

.rd-help-walkthrough-chrome__back:hover,
.rd-help-walkthrough-chrome__back:focus {
    color: #fff;
    text-decoration: underline;
}

.rd-help-walkthrough-chrome__title-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.rd-help-walkthrough__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rd-help-walkthrough-chrome__meet,
.rd-help-walkthrough__meet-cta {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.rd-help-walkthrough-chrome__meet:hover,
.rd-help-walkthrough-chrome__meet:focus,
.rd-help-walkthrough__meet-cta:hover,
.rd-help-walkthrough__meet-cta:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
}

.rd-help-walkthrough__brand {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    opacity: 0.95;
}

.rd-help-walkthrough__brand:hover,
.rd-help-walkthrough__brand:focus {
    opacity: 1;
}

.rd-help-walkthrough__brand-logo {
    display: block;
    width: auto;
    max-width: 160px;
    max-height: 32px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.rd-help-walkthrough__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.rd-help-walkthrough__header:has(.rd-help-walkthrough__brand) .rd-help-walkthrough__title {
    text-align: center;
}

.rd-help-walkthrough__close {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    font: inherit;
}

.rd-help-walkthrough__close .fa {
    display: none;
}

.rd-help-walkthrough__close::after {
    content: "×";
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.rd-help-walkthrough__close:hover,
.rd-help-walkthrough__close:focus {
    background: rgba(255, 255, 255, 0.28);
}

.rd-help-walkthrough__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 16px;
    background: #f4f8fc;
    display: flex;
    flex-direction: column;
}

.rd-help-walkthrough__step {
    display: none;
}

.rd-help-walkthrough__step.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
}

.rd-help-walkthrough__flow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b8fd1;
    flex-shrink: 0;
}

.rd-help-walkthrough__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
    gap: 16px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.rd-help-walkthrough__media {
    position: relative;
    margin-bottom: 0;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef5;
    box-shadow: 0 8px 24px rgba(36, 63, 95, 0.08);
    min-height: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.rd-help-walkthrough__media-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
    overflow: auto;
}

.rd-help-walkthrough__image-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.rd-help-walkthrough__image--stacked {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rd-help-walkthrough__image {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.rd-help-walkthrough__copy {
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rd-help-walkthrough__overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rd-help-walkthrough__overlay {
    position: absolute;
    transform: translate(-50%, -50%);
}

.rd-help-walkthrough__overlay--ring {
    border: 3px solid rgba(91, 143, 209, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(15, 35, 58, 0.18);
    transform: none;
}

.rd-help-walkthrough--tour .rd-help-walkthrough__media {
    box-shadow: 0 12px 32px rgba(15, 35, 58, 0.16);
}

.rd-help-walkthrough--tour .rd-help-walkthrough__overlay--ring {
    box-shadow: 0 0 0 9999px rgba(15, 35, 58, 0.42);
}

.rd-help-walkthrough__overlay--badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #5b8fd1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(36, 63, 95, 0.24);
}

.rd-help-walkthrough__overlay--beacon::before,
.rd-help-walkthrough__overlay--beacon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 2px solid rgba(91, 143, 209, 0.8);
    animation: rd-help-walkthrough-beacon 1.8s ease-out infinite;
}

.rd-help-walkthrough__overlay--beacon::after {
    animation-delay: 0.6s;
}

@keyframes rd-help-walkthrough-beacon {
    0% {
        transform: scale(0.4);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.rd-help-walkthrough__overlay--tooltip {
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(36, 63, 95, 0.94);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(15, 35, 58, 0.24);
}

.rd-help-walkthrough__step-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.rd-help-walkthrough__step-body {
    margin: 0;
    color: #42566f;
    line-height: 1.6;
    font-size: 15px;
}

.rd-help-walkthrough__step-body p {
    margin: 0 0 12px;
}

.rd-help-walkthrough__step-body p:last-child {
    margin-bottom: 0;
}

.rd-help-walkthrough__step-list {
    margin: 0 0 12px;
    padding-left: 0;
    list-style: none;
}

.rd-help-walkthrough__step-list > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.rd-help-walkthrough__step-list > li:last-child {
    margin-bottom: 0;
}

.rd-help-walkthrough__step-list > li::before {
    content: '✓';
    font-family: inherit;
    position: absolute;
    left: 0;
    top: 1px;
    color: #5b8fd1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.rd-help-walkthrough-launcher__button {
    display: inline-block;
}

.rd-help-walkthrough-player-page {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.rd-help-walkthrough-player-page__loading,
.rd-help-walkthrough-player-page__fallback {
    max-width: 420px;
    text-align: center;
    color: #42566f;
}

.rd-help-walkthrough-player-page__fallback-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #243f5f;
}

.rd-help-walkthrough-player-page__fallback-copy {
    margin: 0 0 16px;
    line-height: 1.6;
}

.rd-help-walkthrough__progress {
    margin: auto 0 0;
    padding-top: 16px;
    font-size: 12px;
    color: #6b7f96;
    text-align: right;
}

#rd-help-body .rd-help-walkthrough__stage {
    grid-template-columns: 1fr;
}

#rd-help-body .rd-help-walkthrough__media {
    min-height: 200px;
    max-height: 42vh;
}

@media (min-width: 768px) {
    body.rd-help-walkthrough-mount--open > .rd-help-walkthrough .rd-help-walkthrough__body {
        padding: 14px 20px 18px;
    }
}

@media (max-width: 900px) {
    .rd-help-walkthrough__stage {
        grid-template-columns: 1fr;
    }

    .rd-help-walkthrough__media {
        min-height: 240px;
        max-height: 48vh;
    }
}

.rd-help-walkthrough__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid #d8e3ef;
    background: #fff;
    flex-shrink: 0;
}

.rd-help-walkthrough__footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.rd-help-walkthrough__footer .rd-help-walkthrough__prev {
    justify-self: start;
}

.rd-help-walkthrough__footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
}

/* Self-contained controls (public Help demos do not load Bootstrap). */
.rd-help-walkthrough .btn,
.rd-help-walkthrough-player-page__fallback .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.rd-help-walkthrough .btn.btn-default,
.rd-help-walkthrough-player-page__fallback .btn.btn-default,
.rd-help-walkthrough .btn.rd-help-walkthrough__prev {
    background: #fff;
    border-color: #c5d4e4;
    color: #243f5f;
}

.rd-help-walkthrough .btn.btn-default:hover,
.rd-help-walkthrough .btn.btn-default:focus,
.rd-help-walkthrough-player-page__fallback .btn.btn-default:hover,
.rd-help-walkthrough-player-page__fallback .btn.btn-default:focus,
.rd-help-walkthrough .btn.rd-help-walkthrough__prev:hover:not(:disabled),
.rd-help-walkthrough .btn.rd-help-walkthrough__prev:focus:not(:disabled) {
    background: #f4f8fc;
    border-color: #94a8be;
    color: #1a3350;
    text-decoration: none;
}

.rd-help-walkthrough .btn.btn-primary,
.rd-help-walkthrough-player-page__fallback .btn.btn-primary,
.rd-help-walkthrough .btn.rd-help-walkthrough__next {
    background: linear-gradient(135deg, #486f9c 0%, #3a5a7c 100%);
    border-color: #3a5a7c;
    color: #fff;
}

.rd-help-walkthrough .btn.btn-primary:hover,
.rd-help-walkthrough .btn.btn-primary:focus,
.rd-help-walkthrough-player-page__fallback .btn.btn-primary:hover,
.rd-help-walkthrough-player-page__fallback .btn.btn-primary:focus,
.rd-help-walkthrough .btn.rd-help-walkthrough__next:hover,
.rd-help-walkthrough .btn.rd-help-walkthrough__next:focus {
    filter: brightness(1.05);
    color: #fff;
    text-decoration: none;
}

.rd-help-walkthrough .btn.rd-help-walkthrough__continue {
    background: linear-gradient(135deg, #3d9a78 0%, #2d7d61 100%);
    border-color: #2d7d61;
    color: #fff;
}

.rd-help-walkthrough .btn.rd-help-walkthrough__continue:hover,
.rd-help-walkthrough .btn.rd-help-walkthrough__continue:focus {
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
}

.rd-help-walkthrough .btn:disabled,
.rd-help-walkthrough .btn.rd-help-walkthrough__prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rd-help-walkthrough-player-page__fallback-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
}

.rd-help-walkthrough-player-page__fallback-actions .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.rd-help-walkthrough__footer .rd-help-walkthrough__prev,
.rd-help-walkthrough__footer-center .btn,
.rd-help-walkthrough__footer-actions .btn {
    min-height: 38px;
    box-sizing: border-box;
}

.rd-help-walkthrough__continue {
    display: none;
}

.rd-help-walkthrough__continue.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rd-help-walkthrough .btn.rd-help-walkthrough__next[hidden] {
    display: none !important;
}

.rd-help-walkthrough__step-body a {
    color: #1f6feb;
    text-decoration: underline;
}
