/* Sewanin eyewear Try-On / 3D segmented switch.
   Visual layer only: the existing engine still owns availability and mode changes. */

.swn-vto-core__tools {
  top: 16px;
  right: auto;
  left: 16px;
  flex-direction: row;
  gap: 0;
  transform: none;
  padding: 4px;
  border-radius: 999px;
  background: rgba(13, 13, 13, .66);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.swn-vto-core__tool {
  width: auto;
  min-width: 74px;
  min-height: 36px;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  flex-direction: row;
  gap: 0;
  box-shadow: none;
  backdrop-filter: none;
  font: 650 12px/1 Arial, sans-serif;
}

.swn-vto-core__tool:hover {
  background: rgba(255, 255, 255, .10);
}

.swn-vto-core__tool svg,
.swn-vto-core__tool span {
  display: none;
}

.swn-vto-core__tool::after,
.swn-vto-core__tools::before,
.swn-vto-core__tools::after {
  white-space: nowrap;
  font: 650 12px/1 Arial, sans-serif;
}

/* The engine hides the button for the mode that is already active.
   We keep that behavior and render the active half as a non-interactive segment. */
.swn-vto-core__tools:has(> [data-swn-vto-mode="tryon"][hidden])::before,
.swn-vto-core__tools:has(> [data-swn-vto-mode="3d"][hidden])::after {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  pointer-events: none;
}

.swn-vto-core[data-swn-vto-resolved-locale="ru"] .swn-vto-core__tools:has(> [data-swn-vto-mode="tryon"][hidden])::before {
  content: "Примерка";
}

.swn-vto-core[data-swn-vto-resolved-locale="en"] .swn-vto-core__tools:has(> [data-swn-vto-mode="tryon"][hidden])::before {
  content: "Try-On";
}

.swn-vto-core[data-swn-vto-resolved-locale="kk"] .swn-vto-core__tools:has(> [data-swn-vto-mode="tryon"][hidden])::before {
  content: "Киіп көру";
}

.swn-vto-core__tools:has(> [data-swn-vto-mode="3d"][hidden])::after {
  content: "3D / 360°";
}

.swn-vto-core[data-swn-vto-resolved-locale="ru"] [data-swn-vto-mode="tryon"]::after {
  content: "Примерка";
}

.swn-vto-core[data-swn-vto-resolved-locale="en"] [data-swn-vto-mode="tryon"]::after {
  content: "Try-On";
}

.swn-vto-core[data-swn-vto-resolved-locale="kk"] [data-swn-vto-mode="tryon"]::after {
  content: "Киіп көру";
}

[data-swn-vto-mode="3d"]::after {
  content: "3D / 360°";
}

@media (max-width: 749px) {
  .swn-vto-core__tools {
    top: 70px;
    right: auto;
    left: 12px;
    transform: none;
  }

  .swn-vto-core__tool,
  .swn-vto-core__tools:has(> [data-swn-vto-mode="tryon"][hidden])::before,
  .swn-vto-core__tools:has(> [data-swn-vto-mode="3d"][hidden])::after {
    min-width: 68px;
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .swn-vto-core__stage:has(.swn-vto-core__tools:not([hidden])) .swn-vto-core__hint {
    top: 118px;
  }
}
