:root {
    --rs-help-width: clamp(360px, 32vw, 460px);
}

.rs-help-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rs-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    background: #fff;
    color: #174a7e;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
}

.rs-help-button:hover,
.rs-help-button:focus-visible {
    background: #eef6ff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.rs-help-button-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #174a7e;
    color: #fff;
    font-size: 13px;
}

body {
    transition: padding-right .2s ease;
}

body.rs-help-open {
    padding-right: var(--rs-help-width);
}

.rs-help-drawer {
    position: fixed;
    z-index: 5000;
    top: 0;
    right: 0;
    width: var(--rs-help-width);
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #17212b;
    border-left: 1px solid #c7d2dd;
    box-shadow: -8px 0 24px rgba(18, 35, 52, .22);
    transform: translateX(105%);
    transition: transform .2s ease;
}

.rs-help-drawer.is-open {
    transform: translateX(0);
}

.rs-help-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--primary, #b5004f);
    color: #fff;
}

.rs-help-drawer-title {
    margin: 0;
    color: inherit;
    font-size: 19px;
    line-height: 1.25;
}

.rs-help-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.rs-help-close:hover,
.rs-help-close:focus-visible {
    background: rgba(255, 255, 255, .25);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.rs-help-drawer-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px 34px;
    overscroll-behavior: contain;
}

.rs-help-loading,
.rs-help-error {
    padding: 14px;
    border-radius: 8px;
    background: #eef5fb;
    color: #28465f;
}

.rs-help-error {
    background: #fde8e7;
    color: #98241d;
}

.rs-help-article h2 {
    margin: 24px 0 8px;
    color: #174a7e;
    font-size: 17px;
}

.rs-help-article h2:first-child {
    margin-top: 0;
}

.rs-help-article h3 {
    margin: 18px 0 6px;
    color: #263746;
    font-size: 15px;
}

.rs-help-article p,
.rs-help-article li {
    font-size: 14px;
    line-height: 1.55;
}

.rs-help-article p {
    margin: 7px 0 12px;
}

.rs-help-article ol,
.rs-help-article ul {
    margin: 7px 0 14px;
    padding-left: 23px;
}

.rs-help-article li + li {
    margin-top: 5px;
}

.rs-help-note,
.rs-help-warning {
    margin: 14px 0;
    padding: 11px 12px;
    border-left: 4px solid #267fb5;
    border-radius: 5px;
    background: #eef6fc;
}

.rs-help-warning {
    border-left-color: #b3261e;
    background: #fff0ef;
}

.rs-help-updated {
    margin-top: 26px;
    padding-top: 12px;
    border-top: 1px solid #d9e0e7;
    color: #667788;
    font-size: 12px;
}

@media (max-width: 900px) {
    body.rs-help-open {
        padding-right: 0;
        overflow: hidden;
    }

    .rs-help-drawer {
        width: min(100vw, 460px);
    }
}

@media print {
    .rs-help-button,
    .rs-help-drawer {
        display: none !important;
    }
}
