/* 360-обзор товара, см. js/xr360.js */
.xr360 {
  position: relative;
  width: 100%;
  background: #fff;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.xr360.is-dragging {
  cursor: grabbing;
}

.xr360 .xr360__frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.xr360__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .3s;
}

.xr360__hint svg {
  width: 22px;
  height: 14px;
  flex: none;
}

.xr360.is-touched .xr360__hint {
  opacity: 0;
}

/* полоска загрузки кадров */
.xr360::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--xr-progress, 0);
  background: #d8d552;
  opacity: 0;
  transition: width .2s, opacity .3s;
}

.xr360.is-loading::after {
  opacity: 1;
}

/* миниатюра обзора в ленте под большим фото */
.xr360-thumb {
  position: relative;
  display: inline-block;
}

.xr360-thumb__badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}
