.a3r-widget {
  --a3r-height: 520px;
  --a3r-mobile-height: 410px;
  display: block;
  position: relative;
  width: 100%;
  height: var(--a3r-height);
  min-height: 260px;
  isolation: isolate;
  outline: none;
}

.a3r-widget:focus-visible {
  border-radius: 24px;
  outline: 3px solid rgba(58, 189, 255, .72);
  outline-offset: 4px;
}

.a3r-stage,
.a3r-canvas,
.a3r-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.a3r-stage {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.a3r-widget.is-dragging .a3r-stage {
  cursor: grabbing;
}

.a3r-canvas {
  z-index: 2;
  display: block;
  opacity: 0;
  background: transparent;
  transition: opacity .28s ease;
}

.a3r-fallback {
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .24s ease, visibility .24s ease;
}

.a3r-fallback-svg {
  display: block;
  width: min(82%, 360px);
  height: 92%;
  overflow: visible;
  filter: drop-shadow(0 18px 22px rgba(14, 35, 58, .14));
}

.a3r-widget.is-ready .a3r-canvas {
  opacity: 1;
}

.a3r-widget.is-ready .a3r-fallback {
  visibility: hidden;
  opacity: 0;
}

.a3r-widget.is-fallback .a3r-canvas {
  opacity: 0;
}

.a3r-widget.is-fallback .a3r-fallback {
  visibility: visible;
  opacity: 1;
}

.a3r-loader {
  z-index: 3;
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 31, 49, .68);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.a3r-widget.is-loading .a3r-loader {
  opacity: 1;
  transform: translateY(0);
}

.a3r-loader span {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: a3r-spin .75s linear infinite;
}

.a3r-hint {
  z-index: 4;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 36px);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(10, 26, 43, .68);
  color: #fff;
  font: 600 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  backdrop-filter: blur(8px);
}

.a3r-widget.is-ready:hover .a3r-hint,
.a3r-widget:focus-visible .a3r-hint {
  opacity: 1;
}

.a3r-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes a3r-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .a3r-widget {
    height: var(--a3r-mobile-height);
    min-height: 280px;
  }

  .a3r-fallback-svg {
    width: min(78%, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .a3r-canvas,
  .a3r-fallback,
  .a3r-loader,
  .a3r-hint {
    transition: none;
  }

  .a3r-loader span {
    animation-duration: 1.5s;
  }
}

