﻿/* Make sure --red is defined somewhere globally, e.g. :root { --red: #dc1d3a; } */

.toprx-tour.introjs-tooltip,
.toprx-tour .introjs-tooltiptext,
.toprx-tour .introjs-title,
.toprx-tour .introjs-button {
    font-family: "Museo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Primary buttons */
.toprx-tour .introjs-nextbutton,
.toprx-tour .introjs-donebutton,
.toprx-tour .introjs-button {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: #fff !important;
    text-shadow: none !important;
    font-weight: 600; /* tweak to your weight */
    letter-spacing: .4px; /* optional: crispness */

    margin-left: 8px;
    padding: 8px 15px;
    border-radius: 7px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.2;
}

/* Secondary buttons */
.toprx-tour .introjs-prevbutton,
.toprx-tour .introjs-skipbutton {
    color: #111;
    border-color: #e5e7eb;
    background: #fff;
}

/* Hover/focus ring uses your red */
.toprx-tour .introjs-button:hover,
.toprx-tour .introjs-button:focus {
    box-shadow: 0 0 0 .2rem rgba(220, 29, 58, .25); /* fallback */
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--red) 25%, transparent);
    outline: none;
}

/* Progress bar in red */
.toprx-tour .introjs-progressbar {
    height: 4px;
    border-radius: 999px;
    background: var(--red) !important;
}

.toprx-tour .introjs-progress {
    height: 4px;
    margin: 0 18px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececec;
}

/* Highlight ring around target in a soft red */
.toprx-highlight {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange-tours) 45%, transparent), 0 0 0 10px color-mix(in srgb, var(--orange-tours) 25%, transparent) !important;
    border-radius: 10px !important;
}

/* Desktop default */
.introjs-tooltip.toprx-tour {
    max-width: 680px; /* maximum width */
    min-width: 400px; /* minimum width */
    width: auto; /* allow intrinsic sizing up to max-width */

    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08);
}

.toprx-tour .introjs-tooltiptext {
    padding: 18px 22px 14px;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}

.toprx-tour .introjs-title {
    margin: 0 32px 8px;
    color: #171717;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.toprx-tour .introjs-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--red);    
}

.toprx-tour .introjs-tooltipbuttons {
    padding: 12px 18px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.introjs-overlay {
    background: rgba(0, 0, 0, 0.58) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
}

.dropdown-menu.guided-tour-dropdown {
    z-index: auto !important;
}

.guided-tour-active-dropdown {
    position: relative;
    z-index: 9999997;
    pointer-events: none;
}

/* Responsive: keep tooltip inside viewport on small screens */
@media (max-width: 700px) {
    .introjs-tooltip.toprx-tour {
        max-width: calc(100% - 32px);
        min-width: 300px;
    }
}

