.tour-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: transparent;
            z-index: 99999;
            display: none;
            transition: background 150ms ease;
        }

        .tour-highlight {
            position: relative;
            z-index: 100000;
            border-radius: 4px;
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
        }

        .tour-tooltip {
            position: absolute;
            background: #fff;
            border: 1px solid #c3c4c7;
            border-radius: 0; /* pas d'arrondi */
            padding: 0;
            max-width: 400px;
            z-index: 100001;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            overflow: visible;/* allow arrow */
        }

        .tour-tooltip__header {
            background: #2271b1;
            color: #fff;
            font-weight: 600;
            font-size: 14px;
            line-height: 1.2;
            padding: 10px 12px;
        }

        .tour-tooltip__body {
            padding: 12px;
            color: #1d2327;
            font-size: 13px;
        }

        .tour-tooltip__step-title {
            margin: 0 0 10px 0;
            font-size: 16px;
            font-weight: 600;
            color: #1d2327;
        }

        .tour-tooltip__content {
            line-height: 1.5;
			white-space: pre-line;
        }

        .tour-tooltip__content p {
            margin: 0 0 12px 0;
        }

        .tour-tooltip__content p:last-child {
            margin-bottom: 0;
        }

        /* Arrow (double-layer: border + fill) */
        /*
         * Arrow container must span the tooltip.
         * Otherwise, pseudo-elements positioned with 50% are relative to a 0x0 box
         * and the arrow ends up stuck in the top-left corner.
         */
        .tour-tooltip-arrow {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .tour-tooltip-arrow::before,
        .tour-tooltip-arrow::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-style: solid;
        }

        /* bottom: tooltip below target -> arrow on top */
        .tour-tooltip[data-position='bottom'] .tour-tooltip-arrow::before {
            top: -11px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 0 11px 11px 11px;
            border-color: transparent transparent #c3c4c7 transparent;
        }

        .tour-tooltip[data-position='bottom'] .tour-tooltip-arrow::after {
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 0 10px 10px 10px;
            border-color: transparent transparent #fff transparent;
        }

        /* top: tooltip above target -> arrow on bottom */
        .tour-tooltip[data-position='top'] .tour-tooltip-arrow::before {
            bottom: -11px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 11px 11px 0 11px;
            border-color: #c3c4c7 transparent transparent transparent;
        }

        .tour-tooltip[data-position='top'] .tour-tooltip-arrow::after {
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 10px 10px 0 10px;
            border-color: #fff transparent transparent transparent;
        }

        /* left: tooltip left of target -> arrow on right */
        .tour-tooltip[data-position='left'] .tour-tooltip-arrow::before {
            right: -11px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 11px 0 11px 11px;
            border-color: transparent transparent transparent #c3c4c7;
        }

        .tour-tooltip[data-position='left'] .tour-tooltip-arrow::after {
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent #fff;
        }

        /* right: tooltip right of target -> arrow on left */
        .tour-tooltip[data-position='right'] .tour-tooltip-arrow::before {
            left: -11px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 11px 11px 11px 0;
            border-color: transparent #c3c4c7 transparent transparent;
        }

        .tour-tooltip[data-position='right'] .tour-tooltip-arrow::after {
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 10px 10px 10px 0;
            border-color: transparent #fff transparent transparent;
        }

        /* Footer layout (PRO) */
        .tour-footer{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:12px;
            margin-top:12px;
        }
        .tour-footer .tour-progress{
            font-size:12px;
            color:#646970;
            white-space:nowrap;
        }
        .tour-footer .tour-actions{
            display:flex;
            align-items:center;
            gap:8px;
        }
        .tour-footer .tour-actions .button{
            margin:0;
        }

/* Small badge used in Dashboard widget */
.oot-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-left:8px;
    padding:2px 8px;
    border-radius:999px;
    font-size:12px;
    line-height:1.2;
    background:#e7f7ee;
    color:#0a7b34;
    font-weight:600;
}

.oot-badge--completed{
    background:#e7f7ee;
    color:#0a7b34;
}

.oot-badge--pending{
    background:#f0f0f1;
    color:#50575e;
}
.oot-badge .dashicons{
    font-size:14px;
    width:14px;
    height:14px;
    line-height:14px;
}

.tour-tooltip-missing{box-shadow:0 8px 28px rgba(0,0,0,.18);} 

/* Hide arrow entirely when position is set to Auto */
.tour-no-arrow .tour-tooltip-arrow,
.tour-no-arrow::before,
.tour-no-arrow::after {
  display: none !important;
}

/* Preserve line breaks from the rich text editor in step content */
.tour-tooltip-content {
  white-space: pre-line;
}
