:root {
  --viewer-ink: #111820;
  --viewer-accent: #006d73;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 0;
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--viewer-ink);
}

#view360 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
}

#view360 .container,
#view360 .tab-content,
#view360 .design {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#view360 .tabs {
  display: none !important;
}

#view360 .tab-content {
  display: none;
}

#view360 .tab-content.active {
  display: block;
}

#view360 .design {
  overflow: hidden;
}

#view360 .view-360 {
  position: absolute;
  inset: 0 0 0px;
  display: none;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;

  background-repeat: no-repeat !important;
  background-position: 50% calc(42% - 24px) !important;
  background-size: 96% auto !important;
}

#view360 .view-360.active {
  display: block;
}

#view360 .view-360:active {
  cursor: grabbing;
}

.car360-hint {
  position: absolute;
  left: 50%;
  bottom: 148px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: auto;
  pointer-events: none;
  opacity: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 24px rgba(17, 24, 32, 0.2));
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.car360-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}

.car360-hint__icon {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#chooseColor.colors {
  position: absolute !important;
  left: 50%;
  bottom: 82px !important;
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 !important;
  padding: 10px 14px;
  overflow: visible !important;
  border: 1px solid rgba(17, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(17, 24, 32, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

#chooseColor .color-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto !important;
  transform: none !important;
}

#chooseColor .btn-select {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(17, 24, 32, 0.12),
    0 6px 16px rgba(17, 24, 32, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#chooseColor .btn-select:hover {
  transform: translateY(-1px) scale(1.06);
}

#chooseColor .btn-select:focus-visible {
  outline: 3px solid rgba(0, 109, 115, 0.3);
  outline-offset: 5px;
}

#chooseColor .btn-select.active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--viewer-accent),
    0 12px 24px rgba(17, 24, 32, 0.18);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  #view360 .view-360 {
    bottom: 88px;
    background-position: 50% calc(40% - 18px) !important;
    background-size: 105% auto !important;
  }

  .car360-hint {
    bottom: 120px;
    width: 56px;
  }

  #chooseColor.colors {
    bottom: 64px !important;
    padding: 9px 12px;
  }

  #chooseColor .btn-select {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  #view360 .view-360 {
    bottom: 72px;
    background-position: 50% calc(38% - 12px) !important;
    background-size: 112% auto !important;
  }

  .car360-hint {
    bottom: 94px;
    width: 48px;
  }

  #chooseColor.colors {
    bottom: 44px !important;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
  }

  #chooseColor .color-list {
    gap: 10px;
  }

  #chooseColor .btn-select {
    width: 23px;
    height: 23px;
  }
}
