/* The button text stays available as the accessible name, including when rotation starts or stops. */
.model-controls.model-controls--icons button {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 0;
  padding: 0;
  font-size: 0;
}

.model-controls--icons button::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: currentColor;
  mask: var(--control-icon) center / contain no-repeat;
}

.model-controls--icons #rotate-model {
  --control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4v5h-5M3 20v-5h5M3.9 9a8.5 8.5 0 0 1 14.2-3.2L21 9M3 15l2.9 3.2A8.5 8.5 0 0 0 20.1 15'/%3E%3C/svg%3E");
}

.model-controls--icons #rotate-model[aria-pressed="true"] {
  --control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 5v14M15 5v14'/%3E%3C/svg%3E");
}

.model-controls--icons #zoom-model {
  --control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.3 15.3 4.2 4.2M8 10.5h5m-2.5-2.5v5'/%3E%3C/svg%3E");
}

.model-controls--icons #reset-model {
  --control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4v6h6M3.5 10a8.5 8.5 0 1 1 .8 6'/%3E%3C/svg%3E");
}

.model-controls.model-controls--icons input {
  width: clamp(68px, 24vw, 116px);
  min-width: 0;
  height: 36px;
  margin: 0 8px 0 3px;
}

.model-controls--icons :focus-visible {
  outline: 2px solid var(--mepsan-blue, #171c8f);
  outline-offset: 2px;
}
