/* PharmaWise Onboarding Spotlight Tour */

#ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 10, 30, 0.65);
  pointer-events: all;
  transition: clip-path 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

#ob-spotlight {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  border: 2.5px solid #1db88a;
  box-shadow: 0 0 0 3px rgba(29, 184, 138, 0.22), 0 4px 28px rgba(29, 184, 138, 0.2);
  opacity: 0;
  transition:
    top    0.42s cubic-bezier(0.4, 0, 0.2, 1),
    left   0.42s cubic-bezier(0.4, 0, 0.2, 1),
    width  0.42s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.3s ease,
    opacity 0.35s ease;
}

#ob-tooltip {
  position: absolute;
  z-index: 10000;
  width: 320px;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow:
    0 20px 60px rgba(10, 10, 30, 0.22),
    0 2px 10px rgba(10, 10, 30, 0.08);
  transition:
    top  0.42s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow pointer */
#ob-tooltip::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  left: var(--ob-arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
}
#ob-tooltip[data-arrow="top"]::before {
  top: -7px;
  box-shadow: -2px -2px 5px rgba(10, 10, 30, 0.07);
}
#ob-tooltip[data-arrow="bottom"]::before {
  bottom: -7px;
  box-shadow: 2px 2px 5px rgba(10, 10, 30, 0.07);
}

/* Header row */
.ob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ob-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1db88a;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.ob-close {
  background: none;
  border: none;
  color: #7a7a96;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.4;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.ob-close:hover { background: #f4f6f9; color: #1a1a2e; }

/* Content */
.ob-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 6px;
}

.ob-body {
  font-size: 0.875rem;
  color: #4a4a68;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* "Don't show again" checkbox */
.ob-no-show {
  display: block;
  font-size: 0.8rem;
  color: #7a7a96;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}
.ob-no-show input {
  cursor: pointer;
  accent-color: #1db88a;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin: 0 6px 2px 0;
}

/* Footer buttons */
.ob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ob-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ob-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.ob-btn:hover  { transform: translateY(-1px); }
.ob-btn:active { transform: none; }

.ob-btn-primary {
  background: #1db88a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 184, 138, 0.32);
}
.ob-btn-primary:hover { background: #14956f; box-shadow: 0 6px 18px rgba(29, 184, 138, 0.4); }

.ob-btn-ghost {
  background: #f4f6f9;
  color: #1a1a2e;
  border: 1px solid rgba(26, 26, 46, 0.10);
}
.ob-btn-ghost:hover { background: #eaecf0; }

.ob-btn-skip {
  background: transparent;
  color: #7a7a96;
  padding-left: 8px;
  padding-right: 8px;
}
.ob-btn-skip:hover { color: #1a1a2e; transform: none; }

/* Mobile: anchor to bottom of screen */
@media (max-width: 480px) {
  #ob-tooltip {
    position: fixed !important;
    bottom: 20px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
  }
  #ob-tooltip::before { display: none; }
}
