.product-tour-root {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    pointer-events: none;
}

.product-tour-root.is-visible {
    display: block;
}

.product-tour-panel {
    position: fixed;
    width: min(360px, calc(100vw - 24px));
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    padding: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.product-tour-panel.is-positioned {
    opacity: 1;
    visibility: visible;
}

.product-tour-panel::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    transform: rotate(45deg);
}

.product-tour-panel[data-side='right']::after {
    left: -7px;
    top: 20px;
}

.product-tour-panel[data-side='left']::after {
    right: -7px;
    top: 20px;
    transform: rotate(225deg);
}

.product-tour-panel[data-side='bottom']::after {
    top: -7px;
    left: 20px;
    transform: rotate(45deg);
}

.product-tour-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-tour-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-tour-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
}

.product-tour-title {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.product-tour-text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.product-tour-preview {
    margin-top: 12px;
}

.product-tour-order-sample {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 12px;
}

.product-tour-order-sample__top,
.product-tour-order-sample__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-tour-order-sample__top {
    margin-bottom: 8px;
}

.product-tour-order-sample__date {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.product-tour-order-sample__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
}

.product-tour-order-sample__name {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.product-tour-order-sample__product {
    margin-top: 4px;
    color: #475569;
    font-size: 13px;
}

.product-tour-order-sample__meta {
    margin-top: 10px;
    color: #334155;
    font-size: 12px;
}

.product-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.product-tour-meta {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.product-tour-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-tour-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.product-tour-btn--ghost {
    background: #e2e8f0;
    color: #334155;
}

.product-tour-btn--primary {
    background: #0f172a;
    color: #ffffff;
}

.product-tour-target {
    position: relative !important;
    z-index: 1399 !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.85) !important;
    transition: box-shadow 0.18s ease;
}

@media (max-width: 767.98px) {
    .product-tour-panel {
        width: calc(100vw - 20px);
        max-width: none;
    }

    .product-tour-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-tour-buttons {
        width: 100%;
    }

    .product-tour-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}
