:root { --wsho-tour-z: 2147483000; }

body.wsho-tour-open { overflow-x: hidden; }

#wsho-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--wsho-tour-z);
    pointer-events: none;
}

/* فقط یک محوشدگی بسیار ملایم؛ خود سایت کاملاً قابل مشاهده می‌ماند. */
.wsho-tour-blur {
    position: fixed;
    z-index: calc(var(--wsho-tour-z) + 1);
    backdrop-filter: blur(.8px);
    -webkit-backdrop-filter: blur(.8px);
    background: rgba(255,255,255,.004);
    opacity: 0;
    transition: opacity .12s ease, top .18s ease, left .18s ease, width .18s ease, height .18s ease;
    pointer-events: auto;
}

#wsho-tour-overlay.is-visible .wsho-tour-blur { opacity: 1; }

#wsho-tour-highlight {
    position: fixed;
    z-index: calc(var(--wsho-tour-z) + 3);
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,.96);
    box-shadow: 0 5px 18px rgba(7,19,46,.13), 0 0 0 3px rgba(255,255,255,.11);
    pointer-events: none;
    opacity: 0;
    transform: scale(.99);
    transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease, opacity .12s ease, transform .12s ease;
}

#wsho-tour-overlay.is-visible #wsho-tour-highlight {
    opacity: 1;
    transform: scale(1);
}

#wsho-tour-card {
    --arrow-x: 50%;
    --arrow-y: 50%;
    position: fixed;
    z-index: calc(var(--wsho-tour-z) + 5);
    width: min(292px, calc(100vw - 24px));
    direction: rtl;
    text-align: right;
    background: rgba(8, 15, 35, .975);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    box-shadow: 0 14px 38px rgba(0,0,0,.22);
    padding: 12px 13px 13px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(4px) scale(.992);
    transition: opacity .12s ease, transform .12s ease, top .18s ease, left .18s ease;
    font-family: inherit;
}

#wsho-tour-card::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    background: rgba(8, 15, 35, .975);
    transform: rotate(45deg);
    border: solid rgba(255,255,255,.12);
    pointer-events: none;
}

#wsho-tour-card.arrow-up::after {
    top: -5px;
    left: var(--arrow-x);
    margin-left: -4.5px;
    border-width: 1px 0 0 1px;
}

#wsho-tour-card.arrow-down::after {
    bottom: -5px;
    left: var(--arrow-x);
    margin-left: -4.5px;
    border-width: 0 1px 1px 0;
}

#wsho-tour-card.arrow-left::after {
    left: -5px;
    top: var(--arrow-y);
    margin-top: -4.5px;
    border-width: 0 0 1px 1px;
}

#wsho-tour-card.arrow-right::after {
    right: -5px;
    top: var(--arrow-y);
    margin-top: -4.5px;
    border-width: 1px 1px 0 0;
}

#wsho-tour-overlay.is-visible #wsho-tour-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wsho-tour-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

#wsho-tour-step {
    font-size: 10.5px;
    line-height: 1;
    color: rgba(255,255,255,.56);
    font-weight: 700;
}

#wsho-tour-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.72);
    font: inherit;
    font-size: 11.5px;
    cursor: pointer;
    padding: 2px 0 2px 4px;
}

#wsho-tour-close:hover { color: #fff; }

#wsho-tour-title {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 800;
    color: #fff;
}

#wsho-tour-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255,255,255,.79);
}

.wsho-tour-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

#wsho-tour-next {
    appearance: none;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #081027;
    min-width: 76px;
    min-height: 34px;
    padding: 6px 12px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease;
}

#wsho-tour-next:hover { transform: translateY(-1px); }
#wsho-tour-next:active { transform: translateY(0); }

@media (max-width: 767px) {
    .wsho-tour-blur {
        backdrop-filter: blur(.65px);
        -webkit-backdrop-filter: blur(.65px);
    }
    #wsho-tour-card {
        width: min(280px, calc(100vw - 20px));
        border-radius: 14px;
        padding: 11px 12px 12px;
    }
    #wsho-tour-title { font-size: 14px; }
    #wsho-tour-text { font-size: 11.5px; }
    #wsho-tour-highlight { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    #wsho-tour-card,
    #wsho-tour-highlight,
    .wsho-tour-blur { transition: none !important; }
}
