[data-theme='light'] .walkthrough-tooltip {
    --wt-bg: #f8f9fa;
    --wt-text: #1f2a44;
    --wt-header-bg: #333;
    --walkthrough-border: rgba(20, 24, 62, 0.14);
    --walkthrough-shadow: 0 22px 56px rgba(20, 24, 62, 0.24);
}

[data-theme='dark'] .walkthrough-tooltip {
    --wt-bg: #202733;
    --wt-text: #edf2ff;
    --wt-header-bg: #161b22;
    --walkthrough-border: rgba(255, 255, 255, 0.1);
    --walkthrough-shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
}

.walkthrough-tooltip {
    --walkthrough-arrow-size: 14px;
    --walkthrough-arrow-offset: 56px;
    position: absolute;
    z-index: 1050;
    width: min(360px, calc(100vw - 24px));
    border: 1px solid var(--walkthrough-border);
    border-radius: 18px;
    background: var(--wt-bg);
    color: var(--wt-text);
    box-shadow: var(--walkthrough-shadow);
    overflow: visible;
    font-family: "Open Sans", sans-serif;
}

.walkthrough-tooltip[hidden] {
    display: none;
}

.walkthrough-tooltip__arrow {
    position: absolute;
    width: var(--walkthrough-arrow-size);
    height: var(--walkthrough-arrow-size);
    background: var(--wt-bg);
    border: 1px solid var(--walkthrough-border);
    transform: rotate(45deg);
    z-index: 0;
}

.walkthrough-tooltip[data-placement="bottom"] .walkthrough-tooltip__arrow {
    top: calc(var(--walkthrough-arrow-size) * -0.5);
    left: var(--walkthrough-arrow-offset);
    border-right: 0;
    border-bottom: 0;
}

.walkthrough-tooltip[data-placement="top"] .walkthrough-tooltip__arrow {
    bottom: calc(var(--walkthrough-arrow-size) * -0.5);
    left: var(--walkthrough-arrow-offset);
    border-top: 0;
    border-left: 0;
}

.walkthrough-tooltip[data-placement="right"] .walkthrough-tooltip__arrow {
    top: var(--walkthrough-arrow-offset);
    left: calc(var(--walkthrough-arrow-size) * -0.5);
    border-top: 0;
    border-right: 0;
}

.walkthrough-tooltip[data-placement="left"] .walkthrough-tooltip__arrow {
    top: var(--walkthrough-arrow-offset);
    right: calc(var(--walkthrough-arrow-size) * -0.5);
    border-left: 0;
    border-bottom: 0;
}

.walkthrough-tooltip__inner {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--wt-bg);
}

.walkthrough-tooltip__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--wt-header-bg);
    color: #fff;
}

.walkthrough-tooltip__title {
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.walkthrough-tooltip__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.walkthrough-tooltip__close:hover,
.walkthrough-tooltip__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.walkthrough-tooltip__body {
    padding: 1rem 1rem 0.9rem;
    background: var(--wt-bg);
}

.walkthrough-tooltip__content {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--wt-text);
}

.walkthrough-tooltip__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0 1rem 1rem;
    background: var(--wt-bg);
    border-top: 1px solid rgba(20, 24, 62, 0.08);
}

.walkthrough-tooltip__progress {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    white-space: nowrap;
}

.walkthrough-tooltip__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

.walkthrough-tooltip__actions .btn {
    min-width: 96px;
    font-weight: 600;
}

.walkthrough-tooltip__previous[disabled] {
    opacity: 0.65;
    cursor: default;
}

body[data-theme="dark"] .walkthrough-tooltip__content {
    color: rgba(237, 242, 255, 0.88);
}

body[data-theme="dark"] .walkthrough-tooltip__progress {
    color: rgba(187, 201, 227, 0.8);
}

body[data-theme="dark"] .walkthrough-tooltip__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .walkthrough-tooltip__close {
    background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .walkthrough-tooltip__close:hover,
body[data-theme="dark"] .walkthrough-tooltip__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

body[data-theme="dark"] .walkthrough-tooltip__previous.btn-secondary {
    background-color: #4c5768;
    border-color: #4c5768;
}

body[data-theme="dark"] .walkthrough-tooltip__previous.btn-secondary:hover,
body[data-theme="dark"] .walkthrough-tooltip__previous.btn-secondary:focus-visible {
    background-color: #5b6779;
    border-color: #5b6779;
}

@media (max-width: 575.98px) {
    .walkthrough-tooltip {
        width: calc(100vw - 20px);
    }

    .walkthrough-tooltip__header {
        padding: 0.85rem 0.9rem;
    }

    .walkthrough-tooltip__body {
        padding: 0.9rem 0.9rem 0.8rem;
    }

    .walkthrough-tooltip__footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.9rem 0.9rem;
    }

    .walkthrough-tooltip__actions {
        width: 100%;
        justify-content: stretch;
    }

    .walkthrough-tooltip__actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
