/* Lecteur de messages vocaux à onde (messagerie privée) : voir assets/js/oasis-audio-onde.js.
   Les sélecteurs commencent par #wpforo #wpforo-wrap : le style de base de wpForo remet à zéro bordures et
   ombres de tous les blocs avec ces deux identifiants, un sélecteur plus court ne passerait pas. */
#wpforo #wpforo-wrap .oasis-onde {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  max-width: 420px;
  margin: 6px 0;
  padding: 8px 12px 8px 8px;
  background: #ffffff;
  border: 2px solid #0D0D0D;
  box-shadow: 3px 3px 0 #0D0D0D;
}

#wpforo #wpforo-wrap .oasis-onde audio {
  display: none;
}

#wpforo #wpforo-wrap .oasis-onde__play {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: #FFD600;
  color: #0D0D0D;
  border: 2px solid #0D0D0D;
  border-radius: 0;
  box-shadow: 2px 2px 0 #0D0D0D;
  font-size: 14px;
  cursor: pointer;
}

#wpforo #wpforo-wrap .oasis-onde__play:hover {
  box-shadow: 1px 1px 0 #0D0D0D;
}

#wpforo #wpforo-wrap .oasis-onde__wave {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 40px;
  cursor: pointer;
}

#wpforo #wpforo-wrap .oasis-onde__bar {
  --h: 30%;
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h);
  background: #0D0D0D;
  opacity: 0.5;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

#wpforo #wpforo-wrap .oasis-onde__bar.is-played {
  background: #FF1F8E;
  opacity: 1;
}

#wpforo #wpforo-wrap .oasis-onde__time {
  flex: 0 0 auto;
  min-width: 78px;
  color: #0D0D0D;
  font: 700 11px/1 "IBM Plex Mono", monospace;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 480px) {
  #wpforo #wpforo-wrap .oasis-onde {
    gap: 8px;
  }

  #wpforo #wpforo-wrap .oasis-onde__time {
    min-width: 0;
  }
}
