.ux-coachmark {
  position: fixed;
  z-index: 1600;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
.ux-coachmark--bubble_bottom {
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);
}
.ux-coachmark--bubble_top {
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  transform: translateX(-50%);
}
.ux-coachmark--corner_hint {
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.ux-coachmark__body {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ux-coachmark__text {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}
.ux-coachmark__close {
  min-width: 44px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
.ux-coachmark--fade {
  animation: uxFadeIn 220ms ease-out both;
}
.ux-coachmark--slide {
  animation: uxSlideUp 240ms ease-out both;
}
.ux-coachmark--static {
  animation: none;
}

.hotspot.ux-hotspot-pulse-soft .hotspot-wave {
  opacity: calc(0.25 + var(--ux-attention-intensity, 0.55) * 0.5);
  animation-duration: 3.4s;
}
.hotspot.ux-hotspot-pulse-soft .hotspot-halo {
  opacity: calc(0.2 + var(--ux-attention-intensity, 0.55) * 0.5);
  animation-duration: 3.6s;
}
.hotspot.ux-hotspot-glow-soft .hotspot-wave {
  animation: none;
  opacity: 0;
}
.hotspot.ux-hotspot-glow-soft .hotspot-halo {
  animation: none;
  opacity: calc(0.25 + var(--ux-attention-intensity, 0.55) * 0.5);
}
.hotspot.ux-hotspot-calm .hotspot-wave {
  animation: none;
  opacity: 0;
}
.hotspot.ux-hotspot-calm .hotspot-halo {
  animation: none;
  opacity: 0.25;
}
.hotspot.ux-hotspot-pulse-soft[data-hs-pulse="false"] .hotspot-wave {
  animation: ripple 3.4s ease-out infinite;
  opacity: calc(0.2 + var(--ux-attention-intensity, 0.55) * 0.4);
}
.hotspot.ux-hotspot-pulse-soft[data-hs-pulse="false"] .hotspot-halo {
  animation: haloPulse 3.6s ease-in-out infinite;
  opacity: calc(0.2 + var(--ux-attention-intensity, 0.55) * 0.4);
}

.ux-tray {
  position: fixed;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.ux-tray--visible {
  opacity: 1;
  pointer-events: auto;
}
.ux-tray--floating,
.ux-tray--floating_button,
.ux-tray--auto_open_after_idle {
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.ux-tray--sticky,
.ux-tray--sticky_button {
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
}
.ux-tray__button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
.ux-tray__drawer {
  width: min(320px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 12px;
  display: none;
}
.ux-tray__drawer--open {
  display: block;
}
.ux-tray__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ux-tray__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.ux-tray__close {
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #111827;
}
.ux-tray__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ux-tray__item {
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 8px 10px;
  background: #ffffff;
  font-size: 12px;
  color: #111827;
}
.hotspot {
  overflow: visible;
}
.hotspot [data-hotspot-label] {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hotspot [data-hotspot-label-icon] {
  transform-box: fill-box;
  transform-origin: 30% 70%;
}
.hotspot [data-hotspot-label-icon].ux-hand-wave-active {
  animation: uxHandWave var(--ux-hand-wave-duration, 900ms) ease-in-out 1;
  will-change: transform;
}
.room--shopping .hotspot [data-hotspot-label] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  max-width: 140px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ux-modal-skeleton {
  display: grid;
  gap: 10px;
}
.ux-modal-skeleton__title,
.ux-modal-skeleton__subtitle,
.ux-modal-skeleton__media,
.ux-modal-skeleton__line,
.ux-modal-skeleton__cta {
  background: linear-gradient(90deg, #ece7df 25%, #f5f1ea 50%, #ece7df 75%);
  background-size: 200% 100%;
  animation: uxSkeleton 1.2s ease-in-out infinite;
  border-radius: 10px;
}
.ux-modal-skeleton__title {
  height: 18px;
  width: 60%;
}
.ux-modal-skeleton__subtitle {
  height: 12px;
  width: 40%;
}
.ux-modal-skeleton__media {
  height: 180px;
  width: 100%;
  border-radius: 16px;
}
.ux-modal-skeleton__line {
  height: 12px;
  width: 100%;
}
.ux-modal-skeleton__line--short {
  width: 70%;
}
.ux-modal-skeleton__cta {
  height: 36px;
  width: 40%;
}

@media (prefers-reduced-motion: reduce) {
  .hotspot [data-hotspot-label-icon].ux-hand-wave-active {
    animation: none;
  }
}

@keyframes uxHandWave {
  0% {
    transform: rotate(0deg);
  }
  18% {
    transform: rotate(var(--ux-hand-wave-angle, 14deg));
  }
  36% {
    transform: rotate(var(--ux-hand-wave-angle-negative, -10deg));
  }
  54% {
    transform: rotate(var(--ux-hand-wave-angle, 14deg));
  }
  72% {
    transform: rotate(var(--ux-hand-wave-angle-negative, -10deg));
  }
  100% {
    transform: rotate(0deg);
  }
}

.ux-debug-toggle {
  position: fixed;
  z-index: 1700;
  right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
}
.ux-debug-toggle button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.ux-debug-panel {
  position: fixed;
  z-index: 1700;
  right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  width: min(360px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  padding: 12px;
}
.ux-debug-panel[data-ux-embedded="1"] {
  position: static;
  right: auto;
  top: auto;
  width: 100%;
  max-height: none;
  border-radius: 16px;
  box-shadow: none;
}
.ux-debug-panel.hidden {
  display: none;
}
.ux-debug-section {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 8px 0;
}
.ux-debug-section:last-child {
  border-bottom: 0;
}
.ux-debug-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ux-debug-section__title {
  font-weight: 600;
  font-size: 13px;
}
.ux-debug-switch {
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.ux-debug-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 6px;
}
.ux-debug-field input,
.ux-debug-field select {
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 4px 6px;
  font-size: 12px;
}
.ux-debug-note {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}
.ux-debug-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}
.ux-debug-actions button {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
}
.ux-debug-toast {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 6px 8px;
  font-size: 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}
.ux-debug-toast--success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(236, 253, 245, 0.9);
  color: #065f46;
}
.ux-debug-toast--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
}

.spotProduct__order [data-role="order-footer"] {
  position: static;
  bottom: auto;
}
.ux-sticky-cta [data-role="order-footer"] {
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}
@media (max-width: 768px) {
  .ux-sticky-cta [data-role="order-footer"] {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
}

@keyframes uxFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes uxSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes uxSkeleton {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-coachmark,
  .ux-modal-skeleton__title,
  .ux-modal-skeleton__subtitle,
  .ux-modal-skeleton__media,
  .ux-modal-skeleton__line,
  .ux-modal-skeleton__cta {
    animation: none !important;
  }
}
