/*
  Shared chrome for every interactive walkthrough (desktop admin-screen
  style and mobile app style). Pulls all colors from tokens.css — never
  invent a new palette here.
*/

.wt-root {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wt-heading {
  text-align: center;
  max-width: 640px;
}
.wt-heading h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-heading);
}
.wt-heading p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.wt-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
}
.wt-dots {
  display: flex;
  gap: 7px;
}
.wt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--row-alt);
  border: 1px solid var(--border);
  transition: background .2s ease, transform .2s ease;
}
.wt-dot.done {
  background: var(--success);
  border-color: var(--success);
}
.wt-dot.current {
  background: var(--arclight);
  border-color: var(--arclight);
  transform: scale(1.3);
}
.wt-step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  padding-left: 6px;
  border-left: 1px solid var(--border);
}

.wt-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop admin-screen device frame */
.wt-device-desktop {
  width: 100%;
  max-width: 980px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.wt-browser-bar {
  height: 28px;
  background: #eee;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.wt-url {
  background: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.wt-app {
  display: flex;
  height: 600px;
}

/* Mobile app device frame */
.wt-device-mobile {
  width: min(360px, 92vw);
  background: var(--surface);
  border: 10px solid #0a0a0a;
  border-radius: 38px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.wt-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}
.wt-screen {
  position: relative;
  height: 480px;
  background: var(--row-alt);
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Shared admin-shell parts (sidebar/navbar/table/forms) used by ui-kit.js */
.wt-sidebar {
  width: 56px;
  min-width: 56px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
}
.wt-sidebar .wt-s-item {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wt-sidebar .wt-s-item.active {
  background: var(--arclight-bg);
}
.wt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-navbar {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.wt-crumbs {
  display: flex;
  align-items: center;
  font-size: 13px;
}
.wt-crumb {
  color: var(--text-body);
  opacity: .6;
}
.wt-crumb.current {
  opacity: 1;
  font-weight: 500;
  font-size: 14px;
}
.wt-crumb-sep {
  color: var(--text-light);
  padding: 0 8px;
  font-size: 11px;
}
.wt-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--arclight);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wt-topmenu {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  flex-shrink: 0;
  display: flex;
}
.wt-menu-item {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 2px solid transparent;
}
.wt-menu-item.active {
  color: var(--arclight);
  font-weight: 500;
  border-bottom-color: var(--arclight);
}
.wt-content {
  flex: 1;
  padding: 16px;
  overflow: auto;
  background: var(--bg);
}
.wt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wt-search-box {
  position: relative;
  width: 220px;
}
.wt-search-box input {
  width: 100%;
  height: 32px;
  padding: 6px 10px 6px 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--font-family);
  font-size: 12.5px;
  background: #fff;
  color: var(--text-heading);
}
.wt-search-box svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
}
.wt-btn-rounded {
  outline: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
}
.wt-btn-rounded.success {
  background: var(--success);
  color: #fff;
}
.wt-btn-rounded.arclight {
  background: var(--arclight);
  color: #fff;
}
table.wt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12.5px;
}
table.wt-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
table.wt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
table.wt-table tr.odd td {
  background: #fff;
}
table.wt-table tr.even td {
  background: var(--row-alt);
}
table.wt-table tr.hl td {
  background: var(--arclight-bg);
}
.wt-code-cell {
  font-weight: 600;
  color: var(--text-heading);
}
.wt-checkbox-cell {
  width: 32px;
  text-align: center;
  padding-left: 12px !important;
  padding-right: 4px !important;
}
.wt-checkbox-cell input {
  margin: 0;
}
.wt-action-cell {
  width: 36px;
  text-align: center;
  color: var(--text-light);
  letter-spacing: 1px;
}
th.wt-action-cell {
  color: transparent;
}
.wt-back-caret {
  margin-right: 8px;
  color: var(--text-body);
  font-weight: 400;
}
.wt-status-chip {
  margin-left: 14px;
  margin-right: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-heading);
  background: var(--row-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
}
.wt-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.wt-pill.arclight-light {
  background: var(--arclight-bg);
  color: var(--arclight);
}
.wt-pill.success-light {
  background: var(--success-bg);
  color: var(--success);
}
.wt-pill.danger-light {
  background: var(--danger-bg);
  color: var(--danger);
}
.wt-pill.warning-light {
  background: var(--warning-bg);
  color: var(--warning);
}
.wt-frame {
  background: #fff;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 4px;
}
.wt-frame-title {
  font-size: 14px;
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 12px;
}
.wt-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
}
.wt-field {
  display: flex;
  align-items: center;
  min-width: 0;
}
.wt-field label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin: 0;
  white-space: nowrap;
}
.wt-field label.required::after {
  content: "*";
  color: var(--danger);
  padding-left: 2px;
}
.wt-field .wt-colon {
  color: var(--text-light);
  padding: 0 8px;
  flex: 0 0 auto;
}
.wt-field .wt-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text-heading);
  background: var(--row-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-field .wt-value.danger {
  color: var(--danger);
  font-weight: 600;
}
.wt-field .wt-value.warn {
  color: #b98400;
  font-weight: 600;
}
.wt-field .wt-value.disabled {
  color: var(--text-light);
  background: #ececec;
}
.wt-field .wt-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--text-heading);
  background: #fff;
}
.wt-field .wt-input.filled {
  border-color: var(--arclight);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, .15);
}
.wt-status-text {
  font-size: 12.5px;
  color: var(--text-heading);
}
.wt-breadcrumb-back {
  font-size: 12px;
  color: var(--arclight);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wt-promo-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.wt-promo-notice {
  align-items: center;
  background: var(--arclight-bg);
  color: var(--text-body);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 10px;
  line-height: 18px;
  min-height: 38px;
  padding: 8px 16px;
}
.wt-promo-content {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 6px 16px;
}
.wt-promo-label {
  color: var(--text-light);
  font-size: 12px;
}
.wt-promo-chip {
  background: var(--row-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  gap: 4px;
  padding: 3px 7px;
}
.wt-promo-details-link {
  background: var(--arclight-bg);
  border-radius: 16px;
  color: var(--arclight);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  padding: 4px 10px;
  margin-left: auto;
}
.wt-pool-bar {
  height: 8px;
  border-radius: 4px;
  background: #e6e6e6;
  overflow: hidden;
  margin-top: 6px;
}
.wt-pool-bar .fill {
  height: 100%;
  background: var(--warning);
}
.wt-pool-caption {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.wt-compare-note {
  background: var(--arclight-bg);
  border: 1px solid var(--arclight-border);
  color: var(--arclight);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 12px;
}
.wt-title-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wt-title-bar .wt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}
.wt-tabbar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: -16px -16px 14px;
  padding: 0 16px;
}
.wt-tabbar span {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--text-body);
  border-bottom: 2px solid transparent;
}
.wt-tabbar span.active {
  color: var(--arclight);
  font-weight: 500;
  border-bottom-color: var(--arclight);
}
.wt-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--row-alt);
  font-size: 12.5px;
}
.wt-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--arclight);
  color: var(--arclight);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}
.wt-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile app screen parts */
.wt-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 8px;
}
.wt-app-header .brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wt-app-header .points {
  font-size: 12px;
  font-weight: 600;
  color: var(--arclight);
  background: var(--arclight-bg);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.wt-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}
.wt-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
}
.wt-tab.active {
  background: var(--surface);
  color: var(--text-heading);
  box-shadow: 0 1px 0 var(--border);
}
.wt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.wt-card .title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
}
.wt-card .meta {
  font-size: 12px;
  color: var(--text-body);
}
.wt-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.wt-mobile-btn {
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--arclight-bg);
  color: var(--arclight);
}
.wt-mobile-btn.primary {
  background: var(--arclight);
  color: #fff;
}
.wt-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 18px;
  box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .35);
  z-index: 4;
}
.wt-sheet .grabber {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  margin: 0 auto 10px;
}
.wt-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
}
.wt-option .tag {
  font-size: 11px;
  color: var(--arclight);
  background: var(--arclight-bg);
  padding: 2px 7px;
  border-radius: 99px;
}
.wt-cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 2px;
  border-bottom: 1px dashed var(--border);
}
.wt-summary {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wt-summary .line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.wt-summary .line.discount {
  color: var(--success);
  font-weight: 700;
}
.wt-summary .line.total {
  font-weight: 800;
  font-size: 15px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.wt-apply-coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px dashed var(--arclight);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--arclight-bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--arclight);
}
.wt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 6;
}
.wt-modal {
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 18px;
  width: 100%;
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .4);
}
.wt-modal h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-heading);
}
.wt-modal p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-body);
}
.wt-modal .actions {
  display: flex;
  gap: 10px;
}
.wt-modal .actions .wt-mobile-btn {
  flex: 1;
  text-align: center;
}

/* Spotlight + callout — shared by both device frames */
.wt-spotlight {
  position: relative;
  z-index: 8;
  box-shadow: 0 0 0 2px var(--arclight), 0 0 0 6px rgba(0, 122, 255, .22);
  border-radius: 6px;
  animation: wt-pulse 1.6s ease-in-out infinite;
}
@keyframes wt-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--arclight), 0 0 0 6px rgba(0, 122, 255, .22);
  }
  50% {
    box-shadow: 0 0 0 2px var(--arclight), 0 0 0 10px rgba(0, 122, 255, .08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt-spotlight {
    animation: none;
  }
}

.wt-callout {
  position: absolute;
  max-width: 250px;
  background: #0a0a0a;
  color: #fff;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  z-index: 9;
}
.wt-callout .wt-why {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .65);
  font-size: 11.5px;
}
.wt-callout::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #0a0a0a;
  transform: rotate(45deg);
}
.wt-callout[data-arrow="bottom-left"]::after {
  bottom: -6px;
  left: 24px;
}
.wt-callout[data-arrow="top-left"]::after {
  top: -6px;
  left: 24px;
}
.wt-callout[data-arrow="top-right"]::after {
  top: -6px;
  right: 24px;
}
.wt-callout[data-arrow="bottom-right"]::after {
  bottom: -6px;
  right: 24px;
}
.wt-callout[data-arrow="none"]::after {
  display: none;
}

.wt-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 12px;
  padding: 20px;
  width: 100%;
}
.wt-complete-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.wt-complete h2 {
  font-size: 18px;
  margin: 0;
  color: var(--text-heading);
}
.wt-complete p {
  margin: 0;
  font-size: 13px;
  color: var(--text-body);
  max-width: 340px;
}

.wt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.wt-nav-btn {
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 13.5px;
  flex: 1;
}
.wt-nav-btn.wt-back {
  background: #fff;
  color: var(--text-heading);
  border: 1px solid var(--border);
}
.wt-nav-btn.wt-forward {
  background: var(--arclight);
  color: #fff;
}
.wt-nav-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.wt-nav-btn.wt-restart {
  background: #fff;
  color: var(--arclight);
  border: 1px solid var(--arclight);
  max-width: 240px;
}
.wt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
