/* Agent One look for the Driver.js popover (driver.css loads first). */
.driver-popover.ao-tour {
  /* Same box as the portal modals: Dark 2, thin border, square corners. */
  background: #1A232F;
  color: #FFFFFF;
  border: 1px solid #1E293B;
  border-radius: 0;
  box-shadow: none;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  min-width: 440px;
  max-width: 520px;
  padding: 20px 20px 16px;
}

.driver-popover.ao-tour .driver-popover-title {
  font: 700 18px/1.3 "Manrope", "Inter", system-ui, sans-serif;
  color: #FFFFFF;
  padding-right: 32px;
}

.driver-popover.ao-tour .driver-popover-description {
  font: 400 14px/1.5 "Manrope", "Inter", system-ui, sans-serif;
  padding-right: 32px;
  color: #FFFFFF;
  margin-top: 6px;
}

.driver-popover.ao-tour .driver-popover-progress-text {
  color: #A6A7B0;
  font-size: 12px;
  white-space: nowrap;
  margin-left: auto;
}

/* Driver.js draws the x as a text glyph; sized and coloured like the modal x. */
.driver-popover.ao-tour .driver-popover-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  top: 14px;
  right: 14px;
  font: 400 22px/1 "Manrope", "Inter", system-ui, sans-serif;
  color: #FFFFFF;
  transition: color .15s;
}
.driver-popover.ao-tour .driver-popover-close-btn:hover {
  color: #0DE4C4;
}
.driver-popover.ao-tour .driver-popover-close-btn:focus-visible {
  color: #0DE4C4;
  outline: 2px solid #0DE4C4;
  outline-offset: 2px;
}

.driver-popover.ao-tour .driver-popover-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.driver-popover.ao-tour .driver-popover-navigation-btns {
  display: flex;
  gap: 8px;
  flex: none;
}

.driver-popover.ao-tour .driver-popover-footer button {
  /* Same pill as the modal footers: Manrope Medium 16, uppercase, r40. */
  font: 500 16px/normal "Manrope", "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
  text-shadow: none;
  border-radius: 40px;
  padding: 8px 20px;
  border: 1px solid rgba(226, 232, 240, 0.25);
  background: transparent;
  color: #E2E8F0;
}

.driver-popover.ao-tour .driver-popover-footer .driver-popover-next-btn {
  background: #0DE4C4;
  border-color: #0DE4C4;
  color: #030D19;
}
.driver-popover.ao-tour .driver-popover-footer .driver-popover-next-btn:hover {
  background: #0B8F7B;
  border-color: #0B8F7B;
  color: #FFFFFF;
}

/* Skip: a lower-priority link-style button in the accent colour. */
.driver-popover.ao-tour .driver-popover-footer .ao-tour-skip {
  flex: none;
  border-color: transparent;
  color: #0DE4C4;
  padding-left: 0;
  padding-right: 0;
}
.driver-popover.ao-tour .driver-popover-footer .ao-tour-skip:hover {
  text-decoration: underline;
}
.driver-popover.ao-tour .driver-popover-footer .driver-popover-prev-btn:hover {
  border-color: rgba(226, 232, 240, 0.6);
  color: #FFFFFF;
}

.driver-popover.ao-tour .driver-popover-footer button:focus-visible {
  outline: 2px solid #0DE4C4;
  outline-offset: 2px;
}

/* Arrow in the popover's colour. */
.driver-popover.ao-tour .driver-popover-arrow-side-left.driver-popover-arrow { border-left-color: #1A232F; }
.driver-popover.ao-tour .driver-popover-arrow-side-right.driver-popover-arrow { border-right-color: #1A232F; }
.driver-popover.ao-tour .driver-popover-arrow-side-top.driver-popover-arrow { border-top-color: #1A232F; }
.driver-popover.ao-tour .driver-popover-arrow-side-bottom.driver-popover-arrow { border-bottom-color: #1A232F; }

/* "See the tour again" in the profile menu (help icon, same mask as the others). */
#profile-list i.fa-circle-question { --ao-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.3'/%3E%3Cpath d='M7.9 7.9a2.1 2.1 0 1 1 3 1.9c-.6.3-.9.8-.9 1.4v.4'/%3E%3Ccircle cx='10' cy='13.6' r='.4' fill='black'/%3E%3C/svg%3E"); }

/* The row's action icons only show on hover; a tour step keeps them visible. */
.ao-row-actions.ao-tour-reveal { opacity: 1; }
