html:not(.customer-watchlist-signed-in) :is([data-watchlist-product], .watchlist-product-row, .watchlist-heart:not([data-catalogue-heart])) {
  display: none !important;
}

.product-page-actions > .watchlist-product-row {
  flex-basis: 100%;
}

.csm-floating-header > .csm-header-account-group {
  position: relative;
  grid-area: 1 / 3;
  justify-self: end;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.csm-floating-header > .csm-header-account-group:has(details[open]) {
  z-index: 41;
}

.csm-floating-header .csm-header-wishlist {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--masthead-edge);
  border-radius: 8px;
  background: #151313;
  color: var(--masthead-ink);
  text-decoration: none;
}

.csm-floating-header .csm-header-wishlist:is(:hover, :focus-visible) {
  border-color: var(--masthead-light);
  color: var(--masthead-light);
}

.csm-floating-header .csm-header-wishlist svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.csm-header-wishlist-count:not([hidden]) {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-inline-size: 18px;
  block-size: 18px;
  padding-inline: 4px;
  border: 1px solid #151313;
  border-radius: 999px;
  background: #c52749;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* The header heart opens the existing browser favourites dialog. */
body:has(.csm-header-wishlist) .growth-panel > #show-favourites {
  display: none;
}

@media (max-width: 600px) {
  .csm-floating-header > .csm-header-account-group {
    gap: 4px;
  }
}

@media (min-width: 761px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  html.touch-tablet body .csm-floating-header > .csm-header-account-group {
    grid-area: 1 / 4;
  }
}

#product-detail .watchlist-product-row {
  margin-block-end: 0.75rem;
}

.watchlist-heart-host {
  position: relative;
}

html.customer-watchlist-signed-in .watchlist-heart-host .shortlist-actions [data-favourite] {
  display: none;
}

.watchlist-heart-host > .watchlist-heart {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-end: 0.6rem;
  z-index: 5;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 42px;
  block-size: 42px;
  padding: 0;
  border: 1px solid #aa8272;
  border-radius: 50%;
  background: #201a21;
  color: #fff5e6;
  cursor: pointer;
}

.watchlist-heart svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.watchlist-heart[aria-pressed="true"] {
  color: #ff9ca9;
}

.watchlist-heart[aria-pressed="true"] svg {
  fill: currentColor;
}

.watchlist-heart:focus-visible {
  outline: 2px solid #ffd0a5;
  outline-offset: 3px;
}

.watchlist-heart[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.65;
}

.cs-cinema-home #products > .watchlist-heart-host .shortlist-actions [data-favourite] {
  display: none;
}

.cs-cinema-home #products > .watchlist-heart-host > .watchlist-heart[data-catalogue-heart] {
  inline-size: 34px;
  block-size: 34px;
  border-color: #ffffff66;
  background: #141820eb;
  color: #fff;
}

.cs-cinema-home #products > .watchlist-heart-host > .watchlist-heart[data-catalogue-heart][aria-pressed="true"] {
  color: #ff4b61;
}

@media (pointer: coarse) {
  .cs-cinema-home #products > .watchlist-heart-host > .watchlist-heart[data-catalogue-heart] {
    inline-size: 44px;
    block-size: 44px;
  }
}

.watchlist-error {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 90;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #201a21;
  color: #fff5e6;
  box-shadow: 0 3px 14px #0008;
}
