.cp-tour-launch {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.cp-tour-launch--standalone {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-weight: 700;
}

.cp-tour-root[hidden] {
    display: none !important;
}

.cp-tour-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    color: #172033;
    font-family: inherit;
    pointer-events: none;
}

.cp-tour-mask,
.cp-tour-spotlight,
.cp-tour-dialog {
    position: fixed;
    box-sizing: border-box;
}

.cp-tour-mask {
    z-index: 1;
    background: rgba(7, 12, 24, .76);
    backdrop-filter: blur(1px);
    pointer-events: auto;
}

.cp-tour-spotlight {
    z-index: 2;
    border: 3px solid #3b82f6;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 8px 30px rgba(0, 0, 0, .28);
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

.cp-tour-dialog {
    z-index: 3;
    width: min(380px, calc(100vw - 24px));
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
    pointer-events: auto;
}

.cp-tour-progress {
    margin: 0 34px 8px 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.cp-tour-dialog h3 {
    margin: 0 32px 8px 0;
    color: #111827;
    font-size: 22px;
    line-height: 1.2;
}

.cp-tour-dialog > p:not(.cp-tour-error) {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}

.cp-tour-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font: 700 23px/30px Arial, sans-serif;
}

.cp-tour-error {
    margin: 14px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 13px;
    font-weight: 650;
}

.cp-tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

.cp-tour-actions button {
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.cp-tour-prev {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.cp-tour-next {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.cp-tour-close:focus-visible,
.cp-tour-actions button:focus-visible,
.cp-tour-launch:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

@media (max-width: 639px) {
    .cp-tour-dialog {
        max-height: min(46vh, 390px);
        overflow: auto;
        padding: 18px;
        border-radius: 16px;
    }

    .cp-tour-dialog h3 {
        font-size: 19px;
    }

    .cp-tour-actions {
        flex-wrap: wrap;
    }

    .cp-tour-actions button {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-tour-spotlight {
        transition: none;
    }
}
