/* Wesito / v17: opt-in commerce states only. Keep scene, layout and story CSS intact. */
.wesito-photo-v17 {
  position: relative;
  min-width: 0;
  color: #17383e;
  isolation: isolate;
}
.wesito-photo-v17 .wesito-photo-link-v17 {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--wesito-image-ratio, 1.12);
  overflow: hidden;
  isolation: isolate;
  border-radius: inherit;
  background: var(--wesito-product-stage, #f5e9db);
}
.wesito-photo-v17 .wesito-photo-link-v17::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 23% 12% 23%;
  height: 7%;
  border-radius: 50%;
  background: #3a221d;
  opacity: .16;
  filter: blur(8px);
  transform: translateZ(0);
  transition: opacity 300ms ease;
  pointer-events: none;
}
.wesito-photo-v17 .wesito-photo-link-v17 > img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wesito-photo-v17 .wesito-photo-link-v17 .wesito-photo-base-v17 {
  z-index: 1;
  padding: 9%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.wesito-photo-v17 .wesito-photo-link-v17 .wesito-photo-life-v17 {
  z-index: 2;
  object-fit: cover;
  object-position: var(--wesito-lifestyle-position, 50% 50%);
  opacity: 0;
  transform: scale(1);
  transform-origin: var(--wesito-lifestyle-position, 50% 50%);
  transition: opacity 330ms ease, transform 1400ms cubic-bezier(.2, .65, .28, 1);
}
.wesito-photo-v17:not([data-preview-unavailable])[data-preview-visible="true"] .wesito-photo-life-v17,
.wesito-photo-v17:not([data-preview-unavailable]) .wesito-photo-link-v17:focus-visible .wesito-photo-life-v17 {
  opacity: 1;
  transform: scale(1.045);
}
.wesito-photo-v17[data-preview-visible="true"] .wesito-photo-link-v17::before,
.wesito-photo-v17 .wesito-photo-link-v17:focus-visible::before { opacity: .06; }
@media (hover: hover) and (pointer: fine) {
  .wesito-photo-v17:not([data-preview-unavailable]):hover .wesito-photo-life-v17 {
    opacity: 1;
    transform: scale(1.045);
  }
  .wesito-photo-v17:hover .wesito-photo-link-v17::before { opacity: .06; }
}
.wesito-photo-v17 .wesito-photo-link-v17:focus-visible,
.wesito-photo-toggle-v17:focus-visible,
.wesito-ml-primary-v17:focus-visible,
.wesito-ml-secondary-v17:focus-visible {
  outline: 3px solid #17383e;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff8ef;
}
.wesito-photo-toggle-v17[hidden] { display: none !important; }
.wesito-photo-toggle-v17 {
  min-height: 44px;
  min-width: 44px;
  margin-block-start: .35rem;
  border: 1px solid #17383e;
  border-radius: 99px;
  padding: .45rem .85rem;
  color: #17383e;
  background: #fff8ef;
  font: inherit;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
}
.wesito-photo-toggle-v17[aria-pressed="true"] { color: #fff8ef; background: #17383e; }
.wesito-ml-primary-v17,
.wesito-ml-secondary-v17 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: .65rem 1.05rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 180ms ease;
}
.wesito-ml-primary-v17,
.wesito-ml-primary-v17:visited { background: #ffe600; color: #12363d; border-color: #ffe600; }
.wesito-ml-primary-v17:hover { background: #ffd509; color: #12363d; border-color: #ffd509; }
.wesito-ml-secondary-v17,
.wesito-ml-secondary-v17:visited { background: #12363d; color: #fff9ef; border-color: #12363d; }
.wesito-ml-secondary-v17:hover { background: #0b282e; color: #fff9ef; border-color: #0b282e; }
.wesito-ml-primary-v17 + .wesito-ml-secondary-v17 { margin-inline-start: .35rem; }
/* Optional lens belongs INSIDE the existing moving circle, avoiding new motion/scroll hooks. */
[data-wesito-ball-v17] .wesito-ball-lens-v17 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8%;
  overflow: hidden;
  border: 2px solid #fff8ef;
  border-radius: 50%;
  background: #fff1d4;
  pointer-events: none;
}
[data-wesito-ball-v17] .wesito-ball-lens-v17 img {
  width: 130%;
  max-width: none;
  height: 130%;
  object-fit: cover;
  object-position: var(--wesito-lens-position, center);
}
@media (max-width: 700px) {
  .wesito-ml-primary-v17, .wesito-ml-secondary-v17 { width: 100%; }
  .wesito-ml-primary-v17 + .wesito-ml-secondary-v17 { margin-inline-start: 0; margin-block-start: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wesito-photo-v17 .wesito-photo-link-v17::before,
  .wesito-photo-v17 .wesito-photo-link-v17 .wesito-photo-life-v17,
  .wesito-ml-primary-v17, .wesito-ml-secondary-v17 { transition: none; }
  .wesito-photo-v17 .wesito-photo-link-v17 .wesito-photo-life-v17 { transform: none !important; }
}

/* Touch phones show the scene on arrival. The desktop card remains unchanged. */
.wesito-mobile-action, .wesito-mobile-affiliate-note { display: none; }
@media (max-width: 767px) and (pointer: coarse), (max-width: 767px) and (hover: none) {
  .wesito-photo-v17:not([data-preview-unavailable]) .wesito-photo-link-v17 .wesito-photo-life-v17 {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wesito-phone-links .wesito-desktop-action { display: none; }
  .wesito-phone-links .wesito-mobile-action { display: inline; }
  .wesito-phone-links .wesito-mobile-affiliate-note {
    display: block;
    margin: .3rem .5rem .55rem;
    color: #245158;
    font-size: .75rem;
    line-height: 1.35;
  }
  .wesito-phone-links .story-product .wesito-mobile-affiliate-note { margin: .25rem 0 0; }
}
.wesito-shop-quick { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; justify-content: end; }
@media (max-width:700px) {
  header nav a.wesito-blog-link { display: inline-flex; align-items: center; padding: 0 .6rem; min-height: 42px; font-size: .75rem; }
}
.wesito-photo-v17 .wesito-photo-link-v17 .wesito-phone-only-photo { display: none; }
@media (max-width: 767px) and (pointer: coarse), (max-width: 767px) and (hover: none) {
  .wesito-photo-v17:not([data-preview-unavailable]) .wesito-photo-link-v17 .wesito-phone-only-photo { display: block; }
  .wesito-new-item .wesito-photo-link-v17:hover .wesito-photo-base-v17,
  .wesito-new-item .wesito-photo-link-v17:focus-visible .wesito-photo-base-v17 { transform: none; }
}
.wesito-mobile-details { display: none; }
.wesito-phone-links .wesito-mobile-details {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-inline: .55rem;
  color: #17434a;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.wesito-photo-v17 .wesito-photo-link-v17::before { content: none; }
.wesito-imagery-note { font-size: .89rem; color: #5a453a; }
