:is(#brand-opening, #rodape, #hair-gallery, #photo-viewer, #collections, #brand-contact) button.soundtrack-toggle {
  --sound-face: #211a13;
  --sound-edge: #bda17a;
  --sound-ink: #f0ddbd;
  position: relative;
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--sound-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

:is(#brand-opening, #rodape, #hair-gallery, #photo-viewer, #collections, #brand-contact) button.soundtrack-toggle[hidden] {
  display: none;
}

button.soundtrack-toggle::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--sound-edge);
  border-radius: 50%;
  background: var(--sound-face);
  transition: border-color .2s ease, background-color .2s ease;
}

button.soundtrack-toggle:hover::before {
  border-color: currentColor;
}

:is(#brand-opening, #rodape, #hair-gallery, #photo-viewer, #collections, #brand-contact) button.soundtrack-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
  border-radius: 50%;
}

:is(#brand-opening, #rodape, #hair-gallery, #photo-viewer, #collections, #brand-contact) .soundtrack-toggle svg {
  position: relative;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.soundtrack-toggle .soundtrack-off,
.soundtrack-toggle[aria-pressed="false"] .soundtrack-on {
  display: none;
}

.soundtrack-toggle[aria-pressed="false"] .soundtrack-off {
  display: inline;
}

.soundtrack-on path { transform-origin: center; transform-box: fill-box; }
.soundtrack-toggle[data-playing] .soundtrack-on path { animation: soundtrack-wave .9s ease-in-out infinite alternate; }
.soundtrack-toggle[data-playing] .soundtrack-on path:nth-child(2) { animation-delay: -.6s; }
.soundtrack-toggle[data-playing] .soundtrack-on path:nth-child(3) { animation-delay: -.24s; }
.soundtrack-toggle[data-playing] .soundtrack-on path:nth-child(4) { animation-delay: -.74s; }
.soundtrack-toggle[data-playing] .soundtrack-on path:nth-child(5) { animation-delay: -.4s; }

@keyframes soundtrack-wave {
  from { transform: scaleY(.55); }
  to { transform: scaleY(1); }
}

#brand-opening button.soundtrack-toggle {
  position: absolute;
  inset-block-start: max(12px, env(safe-area-inset-top, 0px));
  inset-inline-start: max(var(--opening-side), env(safe-area-inset-left, 0px));
  z-index: 1;
}

#collections .dialog-top button.soundtrack-toggle,
#brand-contact .dialog-top button.soundtrack-toggle {
  margin-inline-start: auto;
}

@media (prefers-reduced-motion: reduce) {
  button.soundtrack-toggle::before { transition: none; }
  .soundtrack-toggle[data-playing] .soundtrack-on path { animation: none; }
}

.motion-reduced .soundtrack-toggle[data-playing] .soundtrack-on path { animation: none; }
