.wps-aws-polly-player-container {


.wps-aws-polly-player {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
}

.wps-aws-polly-player .wps-aws-polly-audio {
  display: none;
}

.wps-aws-polly-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.wps-aws-polly-btn {
  background: #267e4d;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  transition: background-color 0.2s;
}

.wps-aws-polly-btn:hover {
  background: #1B5836;
}

.wps-aws-polly-btn:active {
  background: #123B24;
}

.wps-aws-polly-btn .dashicons {

  &.controls-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid currentColor;
    margin: 3px 0px 3px 2px;
  }

  &.controls-pause {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 12px;
    margin: 2px 1px;

    &::before, &::after {
      content: '';
      position: absolute;
      top: 0;
      width: 3px;
      height: 100%;
      background: currentColor;
    }

    &::before {
      left: 0;
    }

    &::after {
      right: 0;
    }
  }

}

.btn-container {
  justify-content: center;
  display: flex;
  gap: 5px;

  .wps-aws-polly-btn {
    justify-content: center;
    padding: 5px 9px;

    & svg {
      width: 16px;
      height: 16px;
    }
  }
}

.wps-aws-polly-speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.wps-aws-polly-speed-control .wps-aws-polly-speed-select {
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.wps-aws-polly-speed-control .wps-aws-polly-speed-select:hover {
  border-color: #267e4d;
}

.wps-aws-polly-speed-control .wps-aws-polly-speed-select:focus {
  border-color: #267e4d;
  outline: none;
  box-shadow: 0 0 0 1px #267e4d;
}

.wps-aws-polly-progress-container {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 120px;
  padding-top: 3px;
}

.wps-aws-polly-time-indicators {
  display: flex;
  justify-content: space-between;
  margin-left: 0;
  padding-top: 3px;
  font-size: 13px;
  color: #646970;
  line-height: 1;
  width: 100%;
}

.wps-aws-polly-progress-bar {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.wps-aws-polly-progress-bar:hover {
  background: #ccc;
}

.wps-aws-polly-progress {
  height: 100%;
  background: #267e4d;
  border-radius: 3px;
  transition: width 0.1s linear;
  position: relative;
}

.wps-aws-polly-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #267e4d;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.wps-aws-polly-timestamp {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #646970;
  font-style: italic;
}

@media (max-width: 782px) {
  .wps-aws-polly-progress-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    max-width: 120px;
  }

  .wps-aws-polly-controls {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }

  .wps-aws-polly-speed-control {
    margin-left: 0;
    justify-content: space-between;

    .wps-aws-polly-speed-select {
      padding: 4px 5px;
      max-width: 46px;
    }
  }

  /*.btn-container {*/
  /*  justify-content: center;*/
  /*  display: flex;*/
  /*  gap: 5px;*/

  /*  .wps-aws-polly-btn {*/
  /*    justify-content: center;*/
  /*    padding: 5px 9px;*/

  /*    & svg {*/
  /*        width: 16px;*/
  /*        height: 16px;*/
  /*    }*/
  /*  }*/
  /*}*/
}

.wps-aws-polly-download {
  display: inline-block;
  background: #267e4d;
  color: #fff;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}

.wps-aws-polly-download:hover {
  background: #1B5836;
  color: #fff;
}
}

/* player in theme single-template */
.polly-container {
  display: flex;
  justify-content: center;
  align-items: center;

  p {
    position: absolute;
    z-index: 1;
    background-color: #ffffff00;
    font-weight:bold !important;
    backdrop-filter: blur(2px);
    padding: 2px;
  }

  .polly-player-login-container {
    width: 100%;
  }
}


