.gf-custom-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
  font-family: inherit;
}

.gf-custom-audio button,
.gf-custom-audio input {
  font-family: inherit;
}

.gf-audio-btn {
  border: 0;
  background: transparent;
  color: #2f3b40;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.gf-audio-play {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: #fff;
  background: #1f4a60;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 0.15s ease;
}

.gf-audio-play .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.gf-audio-play:hover {
  background: #E2703F;
  color: #fff;
}

.gf-custom-audio .gf-audio-pause-icon {
  display: none !important;
}

.gf-custom-audio .gf-audio-play-icon {
  display: inline-block !important;
}

.gf-custom-audio.is-playing .gf-audio-play-icon {
  display: none !important;
}

.gf-custom-audio.is-playing .gf-audio-pause-icon {
  display: inline-block !important;
}

.gf-audio-rewind,
.gf-audio-forward {
  font-size: 13px;
  opacity: 0.75;
  min-width: 34px;
  border: 1px solid rgba(47, 59, 64, 0.06);
  border-radius: 2px;
  padding: 5px 7px;
  line-height: 1;
}

.gf-audio-rewind:hover,
.gf-audio-forward:hover {
  background: rgba(47, 59, 64, 0.06);
  border-color: rgba(47, 59, 64, 0.22);
  opacity: 1;
}

.gf-audio-timeline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 120px;
}

.gf-audio-time {
  color: #2f3b40;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.gf-audio-timeline,
.gf-audio-volume {
  appearance: none;
  -webkit-appearance: none;
  height: 10px;
  background: linear-gradient(to right, #7a858a 0%, #7a858a var(--progress-percent, 0%), #a9b5ba var(--progress-percent, 0%), #a9b5ba 100%);
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.gf-audio-timeline {
  width: 100%;
}

.gf-audio-volume {
  width: 70px;
  flex: 0 0 auto;
}

.gf-audio-timeline::-webkit-slider-thumb,
.gf-audio-volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border: 0;
}

.gf-audio-timeline::-moz-range-thumb,
.gf-audio-volume::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
}

.gf-audio-mute {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f3b40;
  border-radius: 2px;
}

.gf-audio-mute .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.gf-audio-mute:hover {
  background: rgba(47, 59, 64, 0.06);
}

.gf-custom-audio .gf-volume-off {
  display: none !important;
}

.gf-custom-audio .gf-volume-on {
  display: inline-block !important;
}

.gf-custom-audio.is-muted .gf-volume-on {
  display: none !important;
}

.gf-custom-audio.is-muted .gf-volume-off {
  display: inline-block !important;
}

@media (max-width: 600px) {
  .gf-custom-audio {
    gap: 6px;
    padding: 8px 6px;
  }

  .gf-audio-play {
    width: 40px;
    height: 40px;
  }

  .gf-audio-rewind,
  .gf-audio-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 5px 4px;
    font-size: 12px;
  }

  .gf-audio-timeline-wrap {
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .gf-audio-time {
    font-size: 14px;
  }

  .gf-audio-volume {
    display: none;
  }

  .gf-audio-mute {
    width: 22px;
    height: 22px;
  }

  .gf-audio-mute .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 420px) {
  .gf-custom-audio {
    gap: 5px;
    padding: 7px 5px;
  }

  .gf-audio-play {
    width: 36px;
    height: 36px;
  }

  .gf-audio-play .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }

  .gf-audio-rewind,
  .gf-audio-forward {
    min-width: 28px;
    padding: 4px 3px;
    font-size: 11px;
  }

  .gf-audio-timeline-wrap {
    gap: 5px;
  }

  .gf-audio-time {
    font-size: 13px;
  }

  .gf-audio-timeline {
    height: 8px;
  }
}