.tour-target {
    outline: 3px solid #3761c2;
    outline-offset: 4px;
    border-radius: 12px;
}

.tour-tip {
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: #1e3f8a;
    color: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .28);
}

.tour-tip[hidden] { display: none; }

.tour-tip::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: #1e3f8a;
    transform: rotate(45deg);
}

.tour-tip[data-place="bottom"]::before {
    top: -7px;
    left: var(--arrow-x, 28px);
    margin-left: -7px;
}

.tour-tip[data-place="top"]::before {
    bottom: -7px;
    left: var(--arrow-x, 28px);
    margin-left: -7px;
}

.tour-tip[data-place="center"]::before { display: none; }

.tour-tip__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.tour-tip__title {
    margin: 0 32px 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.tour-tip__body {
    margin: 0 0 14px;
    line-height: 1.45;
}

.tour-tip__link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.tour-tip__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-tip__count {
    font-weight: 700;
}

.tour-tip__actions {
    display: flex;
    gap: 8px;
}

.tour-tip__back,
.tour-tip__next {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    cursor: pointer;
}

.tour-tip__back {
    background: transparent;
    color: #fff;
}

.tour-tip__next {
    background: #fff;
    color: #1e3f8a;
}

.tour-replay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle, #e6ebf1);
    border-radius: 50%;
    background: var(--surface, #fff);
    color: #1e3f8a;
    font-weight: 700;
    cursor: pointer;
}

.tour-help {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--border-subtle, #e6ebf1);
    border-radius: 999px;
    background: var(--surface, #fff);
    color: #1e3f8a;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.tour-tip__close:focus-visible,
.tour-tip__next:focus-visible,
.tour-tip__back:focus-visible,
.tour-replay:focus-visible,
.tour-help:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.tour-replay:focus-visible,
.tour-help:focus-visible {
    outline-color: #1e3f8a;
}
