/* Overlay móvil fuera del hero: evita cualquier conflicto de apilado interno. */
@media (max-width: 899px) {
  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay {
    position: fixed;
    z-index: 2147483646;
    top: calc(var(--mobile-favorite-anchor-top, var(--header-offset, 72px)) - 1px);
    right: 0;
    left: auto;
    display: grid;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    place-items: center;
    transition: transform 160ms ease;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    border: 0;
    border-radius: 0;
    background: var(--header-bg) !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    pointer-events: none;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay .watch-detail-favorite-icon,
  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay .watch-detail-favorite-icon svg,
  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay .watch-detail-favorite-label {
    display: none !important;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay::after {
    position: absolute;
    z-index: 2;
    top: calc(33.333% - 8.5px);
    left: calc(66.667% - 8.5px);
    width: 17px;
    height: 17px;
    content: "";
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 20.5 4.6 13.5a4.6 4.6 0 0 1 0-6.6 4.7 4.7 0 0 1 6.7 0L12 7.6l.7-.7a4.7 4.7 0 0 1 6.7 0 4.6 4.6 0 0 1 0 6.6Z'/%3E%3C/svg%3E");
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay.is-active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2c94c' d='M12 20.5 4.6 13.5a4.6 4.6 0 0 1 0-6.6 4.7 4.7 0 0 1 6.7 0L12 7.6l.7-.7a4.7 4.7 0 0 1 6.7 0 4.6 4.6 0 0 1 0 6.6Z'/%3E%3C/svg%3E");
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay .watch-detail-favorite-toast {
    position: absolute;
    top: 0;
    right: 0;
    left: 46px;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
    overflow: hidden;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 360ms ease 180ms;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay:is(.has-mobile-toast, .is-mobile-toast-closing) {
    width: min(290px, 100vw);
    min-width: min(290px, 100vw);
    background: var(--header-bg) !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 46px 100%);
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay.has-mobile-toast {
    animation: mobile-favorite-toast-slide-in 980ms cubic-bezier(0.22, 0.75, 0.28, 1) both;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay.is-mobile-toast-closing {
    pointer-events: none;
    animation: mobile-favorite-toast-collapse 720ms cubic-bezier(0.58, 0.08, 0.72, 0.44) both;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay.has-mobile-toast .watch-detail-favorite-toast {
    visibility: visible;
    opacity: 1;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay.is-mobile-toast-closing .watch-detail-favorite-toast {
    visibility: visible;
    opacity: 0;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay:is(.has-mobile-toast, .is-mobile-toast-closing)::before {
    content: none;
  }

  body.page-watch-detail > .watch-detail-favorite-btn.watch-detail-favorite-overlay:is(.has-mobile-toast, .is-mobile-toast-closing)::after {
    left: calc((46px * 0.6667) - 8.5px);
  }
}
