/* PDP save/share/help layer — isolated from the approved PDP layout. */
.rcp-gal .rcp-share {
  position: absolute;
  top: 118px;
  right: 14px;
  z-index: 4;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--p, #641329);
}

.rcp-gal .rcp-fav,
.rcp-gal .rcp-share {
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .18s ease;
}

.rcp-gal .rcp-fav:active,
.rcp-gal .rcp-share:active { transform: scale(.92); }

.rcp-gal .rcp-fav.is-active,
.rcp-gal .rcp-fav.is-added,
.rcp-gal .rcp-fav[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(145deg, #8d173b, #5d1028);
  box-shadow: 0 8px 22px rgba(91, 15, 39, .28), inset 0 0 0 1px rgba(255,255,255,.32);
}

.rcp-gal .rcp-fav:is(.is-active,.is-added,[aria-pressed="true"]) svg path {
  fill: currentColor;
  stroke-width: 1.2;
}

.rcp-gal .rcp-share.is-shared {
  color: #fff;
  background: #234c3a;
}

.rcp-thinking {
  --thinking-wine: #6f1532;
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 10020;
  width: min(360px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid rgba(111, 21, 50, .18);
  border-radius: 22px;
  color: #302327;
  background: rgba(255, 252, 247, .97);
  box-shadow: 0 22px 58px rgba(53, 20, 31, .22), 0 2px 12px rgba(53, 20, 31, .08);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.97);
  pointer-events: none;
  transition: opacity .28s ease, transform .38s cubic-bezier(.2,.75,.25,1);
}

.rcp-thinking.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  pointer-events: auto;
}

.rcp-thinking__top {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 44px;
  gap: 11px;
  align-items: center;
}

.rcp-thinking__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #8b1a3d, #511023);
  font-family: var(--rcs-font-display, Georgia, serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px rgba(91, 15, 39, .22);
}

.rcp-thinking__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #9b7834;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.rcp-thinking__title {
  display: block;
  color: #4e1024;
  font-family: var(--rcs-font-display, Georgia, serif);
  font-size: 18px;
  line-height: 1.08;
}

.rcp-thinking__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #73646a;
  background: transparent;
  font-size: 23px;
}

.rcp-thinking__copy {
  margin: 11px 0 13px;
  color: #65575b;
  font-size: 13px;
  line-height: 1.48;
}

.rcp-thinking__action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #801739, #5b1028);
  box-shadow: 0 10px 22px rgba(91, 15, 39, .2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.rcp-thinking__action svg { flex: 0 0 auto; }

@media (max-width: 1023px) {
  .rcp-gal .rcp-share { top: 153px; }
  .rcp-thinking {
    right: 10px;
    bottom: calc(var(--rcs-bottom-nav-h, 64px) + 88px + env(safe-area-inset-bottom));
    width: min(370px, calc(100vw - 20px));
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .rcp-thinking { right: 26px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .rcp-gal .rcp-fav,
  .rcp-gal .rcp-share,
  .rcp-thinking { transition-duration: .01ms !important; }
}
