@charset "UTF-8";
/* ==========================================================================
   TMDB Where to Watch — provider dropdown (extends core/button)
   ========================================================================== */
/* Chevron inside the button animated */
.rrp-watch-providers__chevron {
  transition: transform 0.2s ease;
}

.wp-block-button__link.rrp-is-open .rrp-watch-providers__chevron {
  transform: rotate(135deg);
}

.rrp-watch-providers__dropdown {
  position: absolute;
  top: calc(100% + var(--wp--preset--spacing--2));
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--3);
  background: var(--wp--preset--color--0);
  border: 0 solid var(--wp--preset--color--10);
  border-radius: 1.25rem;
  box-sizing: border-box;
  width: 256px;
  height: 0%;
  overflow: hidden;
  opacity: 0;
  padding: var(--wp--preset--spacing--4) 1.25rem;
  pointer-events: none;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.rrp-watch-providers__dropdown.rrp-is-visible {
  opacity: 1;
  border-width: 1px;
  pointer-events: auto;
  height: auto;
}

/* Individual provider name links */
.rrp-watch-providers__name {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--wp--preset--font-size--paragraph-x-small);
  text-transform: uppercase;
  color: var(--wp--preset--color--70);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.rrp-watch-providers__name:hover, .rrp-watch-providers__name:focus-visible {
  text-decoration: underline;
}
.rrp-watch-providers__name:not(:last-child) {
  border-bottom: 1px solid var(--wp--preset--color--10);
  padding-bottom: var(--wp--preset--spacing--3);
}

/* Wrapper shrinks to widest child (button or dropdown).
   max-width: 0 on the closed dropdown removes its layout contribution, so the
   wrapper sits at button width when closed and expands when the dropdown opens. */
.wp-block-buttons.rrp-watch-providers {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  /* Grows from its own width (--rrp-closed-width, stored by view.js) to the dropdown's width when open. */
}
.wp-block-buttons.rrp-watch-providers .wp-block-button,
.wp-block-buttons.rrp-watch-providers .wp-block-button__link {
  width: 100%;
}
.wp-block-buttons.rrp-watch-providers .wp-block-button__link {
  min-width: var(--rrp-closed-width, 0);
  transition: min-width 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.wp-block-buttons.rrp-watch-providers .wp-block-button__link.rrp-is-open {
  min-width: 256px;
}

/* Label-only mode — no dropdown, cursor is default */
.wp-block-buttons.rrp-watch-providers--label-only .wp-block-buttons__link {
  cursor: default;
  pointer-events: none;
}

/* Editor-only placeholder names — muted to signal they're not real data */
.rrp-watch-providers__name.rrp-is-placeholder {
  opacity: 0.4;
  font-style: italic;
  pointer-events: none;
}

/* Reduced-motion: skip transitions */
@media (prefers-reduced-motion: reduce) {
  .rrp-watch-providers__chevron,
  .rrp-watch-providers__dropdown,
  .wp-block-buttons.rrp-watch-providers .wp-block-button__link {
    transition: none;
  }
}
/*# sourceMappingURL=tmdb-where-to-watch.css.map */