:root {
  --gio-tour-surface: #f7f3e8;
  --gio-tour-text: #092417;
  --gio-tour-muted: #456052;
  --gio-tour-border: #8b5a2b;
  --gio-tour-accent: #008000;
  --gio-tour-accent-strong: #006b25;
}

html[data-theme="dark"] {
  --gio-tour-surface: #082619;
  --gio-tour-text: #fffaf0;
  --gio-tour-muted: #d4dfd5;
  --gio-tour-border: #8b5a2b;
  --gio-tour-accent: #20cf54;
  --gio-tour-accent-strong: #12aa42;
}

.desktop-tour-launcher {
  align-items: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--green, #008000) 60%, #ffffff 40%);
  border-radius: 6px;
  color: var(--green, #008000);
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-width: 36px;
  padding: 0;
  width: 36px;
}

.desktop-tour-launcher:hover,
.desktop-tour-launcher:focus-visible {
  background: #008000;
  border-color: #008000;
  color: #ffffff;
  outline: 2px solid #f2a51a;
  outline-offset: 2px;
}

.driver-popover.gio-tour-popover {
  background: var(--gio-tour-surface);
  border: 1px solid var(--gio-tour-border);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 18, 9, 0.36);
  color: var(--gio-tour-text);
  font-family: Arial, Helvetica, sans-serif;
  max-width: 340px;
  min-width: 292px;
  padding: 18px;
}

.gio-tour-popover::before {
  color: var(--gio-tour-accent);
  content: "GIOVANNI'S TREE SERVICE";
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.gio-tour-popover .driver-popover-title {
  color: var(--gio-tour-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
  padding-right: 28px;
}

.gio-tour-popover .driver-popover-description {
  color: var(--gio-tour-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 9px;
}

.gio-tour-popover .driver-popover-description strong {
  color: var(--gio-tour-accent);
  font-weight: 800;
}

.gio-tour-popover .driver-popover-close-btn {
  color: var(--gio-tour-muted);
  font-size: 24px;
  height: 36px;
  right: 5px;
  top: 5px;
  width: 36px;
}

.gio-tour-popover .driver-popover-close-btn:hover,
.gio-tour-popover .driver-popover-close-btn:focus-visible {
  color: var(--gio-tour-text);
  outline: 2px solid var(--gio-tour-accent);
  outline-offset: -2px;
}

.gio-tour-popover .driver-popover-footer {
  border-top: 1px solid color-mix(in srgb, var(--gio-tour-muted) 28%, transparent 72%);
  gap: 10px;
  margin-top: 15px;
  padding-top: 13px;
}

.gio-tour-popover .driver-popover-progress-text {
  color: var(--gio-tour-muted);
  font-size: 12px;
  font-weight: 800;
}

.gio-tour-popover .driver-popover-footer-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--gio-tour-accent);
  border-radius: 6px;
  color: var(--gio-tour-accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
}

.gio-tour-popover .driver-popover-next-btn {
  background: var(--gio-tour-accent-strong);
  color: #ffffff;
}

.gio-tour-popover .driver-popover-footer-btn:hover,
.gio-tour-popover .driver-popover-footer-btn:focus-visible {
  background: #f2a51a;
  border-color: #f2a51a;
  color: #092417;
  outline: 2px solid var(--gio-tour-text);
  outline-offset: 2px;
}

.gio-tour-popover .driver-popover-arrow {
  border-color: var(--gio-tour-surface);
}

.gio-tour-popover .driver-popover-arrow-side-left {
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
}

.gio-tour-popover .driver-popover-arrow-side-right {
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
}

.gio-tour-popover .driver-popover-arrow-side-top {
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
}

.gio-tour-popover .driver-popover-arrow-side-bottom {
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
}

.driver-active-element[data-tour-highlighted="true"] {
  outline: 3px solid #20cf54 !important;
  outline-offset: 4px !important;
}

body[data-product-tour-surface="mobile"] .driver-active-element[data-tour-highlighted="true"] {
  outline-color: #4aff73 !important;
}

@media (max-width: 900px) {
  .desktop-tour-launcher {
    display: none;
  }

  .driver-popover.gio-tour-popover {
    max-width: calc(100vw - 24px);
    min-width: min(300px, calc(100vw - 24px));
    padding: 16px;
  }

  .gio-tour-popover .driver-popover-title {
    font-size: 20px;
  }

  .gio-tour-popover .driver-popover-description {
    font-size: 14px;
  }

  .gio-tour-popover .driver-popover-footer-btn {
    min-height: 44px;
    padding: 9px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .driver-fade .driver-overlay,
  .driver-fade .driver-popover {
    animation: none !important;
  }
}
