/* MOBILE PLAYER CONTROLS + FLOWER HELP V1 */

/*
  The original mobile rule hid every span inside the transport buttons.
  That included both the text label and the icon, leaving blank buttons.
*/
@media (max-width: 470px) {
  .deck-transport {
    gap: 6px;
  }

  .deck-transport .deck-btn {
    min-width: 0;
    min-height: 54px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 1.15;
  }

  .deck-transport .deck-btn > span {
    display: inline-flex !important;
  }

  .deck-transport .deck-btn > .deck-icon {
    display: none !important;
  }

  .deck-transport .deck-btn--play {
    min-height: 58px;
  }
}

.flower-help {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.flower-help__trigger {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 173, 85, 0.35);
  border-radius: 999px;
  color: var(--orange-2, #ffb15c);
  background: rgba(255, 148, 31, 0.055);
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: help;
}

.flower-help__trigger:hover,
.flower-help__trigger:focus-visible,
.flower-help.is-open .flower-help__trigger {
  border-color: var(--orange, #ff941f);
  background: rgba(255, 148, 31, 0.12);
}

.flower-help__popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 10010;
  width: min(390px, calc(100vw - 30px));
  padding: 15px 16px;
  border: 1px solid rgba(255, 173, 85, 0.54);
  border-radius: 15px;
  color: var(--text, #fff6ed);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 148, 31, 0.14),
      transparent 46%
    ),
    rgba(24, 16, 11, 0.99);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.68);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.flower-help__popover strong {
  display: block;
  margin-bottom: 5px;
  color: var(--orange-2, #ffb15c);
  font-size: 14px;
}

.flower-help:hover .flower-help__popover,
.flower-help:focus-within .flower-help__popover,
.flower-help.is-open .flower-help__popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flower-help__flower {
  display: inline-block;
  margin-right: 4px;
}

@media (max-width: 620px) {
  .flower-help {
    justify-content: stretch;
  }

  .flower-help__trigger {
    width: 100%;
    min-height: 42px;
    cursor: pointer;
  }

  .flower-help__popover {
    right: auto;
    left: 0;
    width: 100%;
  }
}
