/* Theming for the saved search tour: driver.js ships deliberately plain, so the popover is
   brought into line with the rest of the V3 search page. */

.driver-popover.savedSearchTourPopover {
    border-radius: 10px;
    max-width: 340px;
    padding: 18px;
}

.driver-popover.savedSearchTourPopover .driver-popover-title {
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.4;
    color: var(--content-primary);
}

.driver-popover.savedSearchTourPopover .driver-popover-description {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
}

.driver-popover.savedSearchTourPopover .driver-popover-description strong {
    color: var(--content-primary);
}

.driver-popover.savedSearchTourPopover .driver-popover-footer button {
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    padding: 6px 14px;
    text-shadow: none;
}

.driver-popover.savedSearchTourPopover .driver-popover-footer .driver-popover-next-btn {
    background-color: #19ACEE;
    border-color: #19ACEE;
    color: #fff;
}

.driver-popover.savedSearchTourPopover .driver-popover-footer .driver-popover-next-btn:hover,
.driver-popover.savedSearchTourPopover .driver-popover-footer .driver-popover-next-btn:focus {
    background-color: #1596d0;
    border-color: #1596d0;
}

/* The steps inside the save dialog.

   driver.js draws its overlay at z-index 10000 and a Bootstrap modal sits at 1055, so without
   this the dialog those steps describe would be buried under the dimming. The dialog is lifted
   over the overlay instead, and the overlay itself is dropped for the duration: the modal's own
   backdrop is already dimming the page behind it, and a second layer of dimming over the top of
   the dialog only muddies it. The popover sits far higher again and needs no help. */
body.savedSearchTourInModal .driver-overlay {
    display: none;
}

body.savedSearchTourInModal .modal {
    z-index: 10001;
}

body.savedSearchTourInModal .modal-backdrop {
    z-index: 10000;
}

/* With the overlay hidden there is no cut-out to pick the field out, so it is ringed instead. */
body.savedSearchTourInModal .driver-active-element {
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(25, 172, 238, 0.45);
}

/* The NEW tag sits above the link as a speech bubble, its tail pointing down at the text. */
.takeSearchTour {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.takeSearchTourNew {
    background: var(--premium-pink);
    border-radius: 6px;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 4px 8px;
    position: relative;
    text-transform: uppercase;
}

.takeSearchTourNew::after {
    border: 5px solid transparent;
    border-bottom: 0;
    border-top-color: var(--premium-pink);
    content: "";
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

.takeSearchTour i {
    transition: transform 200ms ease;
}

.takeSearchTour:hover,
.takeSearchTour:focus-visible {
    color: #005F93;
}

.takeSearchTour:hover .takeSearchTourLabel,
.takeSearchTour:focus-visible .takeSearchTourLabel {
    text-decoration: underline;
}

.takeSearchTour:hover i,
.takeSearchTour:focus-visible i {
    transform: scale(1.15);
}
