/* Driver.js WebWay: camada global para tutoriais guiados. */
.driver-popover {
    z-index: 610000 !important;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.driver-overlay,
.driver-stage,
.driver-active-element {
    z-index: 609000 !important;
}

.driver-popover-title {
    color: #1f3f6d;
    font-size: 15px;
    font-weight: 700;
}

.driver-popover-description {
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

/**
 * Páginas imersivas (ex.: NVR modo cinema) às vezes fazem `footer { display:none }`.
 * O popover do driver.js usa <footer class="driver-popover-footer"> — forçar visível.
 */
.driver-popover-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.driver-popover-footer button {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.driver-popover-next-btn,
.driver-popover-done-btn {
    background: #337ab7 !important;
    border-color: #2e6da4 !important;
    color: #fff !important;
}

.driver-popover-prev-btn {
    background: #fff !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/**
 * Botão «Pular» (inyetado pelo WebwayDriver via onPopoverRender).
 * Amarelo, à direita de Próximo/Concluir — marca o tour como lido e fecha.
 */
.ww-driver-tour-skip-btn {
    background: #f59e0b !important;
    border-color: #d97706 !important;
    color: #fff !important;
    margin-left: 6px !important;
}
.ww-driver-tour-skip-btn:hover,
.ww-driver-tour-skip-btn:focus {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #fff !important;
    outline: none;
}

/**
 * Botão canónico para acionar / rever tutoriais driver.js.
 * Ícone exclusivo: fa-map-signs | Cor: âmbar #f59e0b
 * Use sempre: class="ww-driver-tour-btn" + id estável da página.
 */
.ww-driver-tour-btn {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border: 1px solid #d97706 !important;
    border-radius: 50% !important;
    background: #f59e0b !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    vertical-align: middle;
}
.ww-driver-tour-btn:hover,
.ww-driver-tour-btn:focus {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #fff !important;
    outline: none;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
    transform: scale(1.06);
}
.ww-driver-tour-btn > .fa,
.ww-driver-tour-btn > i {
    margin: 0 !important;
    color: inherit !important;
}
.ww-driver-tour-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* Mini-preview do botão dentro do popover do 1º passo */
.ww-driver-tour-btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    border: 1px solid #d97706;
    color: #fff;
    font-size: 11px;
    vertical-align: middle;
    margin: 0 3px;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.3);
}
