:root {
  --otd-sl-glass-bg:
    radial-gradient(120% 92% at 14% -12%, rgba(255,255,255,.24), rgba(255,255,255,.055) 38%, transparent 62%),
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 52%, rgba(0,0,0,.055)),
    rgba(20,21,25,.23);
  --otd-sl-border: rgba(255,255,255,.30);
  --otd-sl-shadow: 0 26px 74px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(0,0,0,.14);
  --otd-sl-blur: blur(34px) saturate(185%) contrast(105%) brightness(99%);
}

/* The temporary title/date bar is replaced by individual product objects. */
.otd-feed-static-viewer .otd-feed-static-viewer__post figcaption,
.otd-feed-viewer .otd-feed-viewer__meta {
  display: none !important;
}

/* Static public/profile viewer: image first, four individual tiles below it. */
.otd-feed-static-viewer .otd-feed-static-viewer__dialog {
  width: min(650px, 95vw) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto !important;
  padding: 4px 4px 84px !important;
  scrollbar-width: none;
}
.otd-feed-static-viewer .otd-feed-static-viewer__dialog::-webkit-scrollbar { display: none; }
.otd-feed-static-viewer .otd-feed-static-viewer__stage,
.otd-feed-static-viewer .otd-feed-static-viewer__stage.is-product-free {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.otd-feed-static-viewer .otd-feed-static-viewer__post {
  z-index: 1 !important;
  width: min(560px, 91vw) !important;
}
.otd-feed-static-viewer .otd-feed-static-viewer__post > img {
  width: 100% !important;
  max-height: min(78dvh, 760px) !important;
  object-fit: cover !important;
  aspect-ratio: 4 / 5 !important;
}
.otd-feed-static-viewer .otd-feed-static-viewer__products {
  --otd-sl-count: 4;
  position: relative !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: repeat(var(--otd-sl-count), minmax(72px, 104px)) !important;
  justify-content: center !important;
  gap: 11px !important;
  width: min(510px, 88vw) !important;
  margin: -48px auto 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Dynamic viewer: remove the continuous shelf and keep only glass squares. */
.otd-feed-viewer .otd-feed-viewer__stage { gap: 0 !important; padding-bottom: 58px !important; }
.otd-feed-viewer .otd-feed-viewer__products {
  position: relative !important;
  z-index: 4 !important;
  width: min(510px, 92vw) !important;
  margin-top: -48px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.otd-feed-viewer .otd-feed-viewer__products::after { display: none !important; }
.otd-feed-viewer .otd-feed-viewer__product-rail {
  --otd-sl-count: 4;
  display: grid !important;
  grid-template-columns: repeat(var(--otd-sl-count), minmax(72px, 104px)) !important;
  justify-content: center !important;
  gap: 11px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.otd-feed-static-viewer .otd-feed-static-viewer__product,
.otd-feed-viewer .otd-feed-viewer__product,
.otd-sl-product-card {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 104px !important;
  aspect-ratio: 1 / 1 !important;
  place-items: center !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 1px solid var(--otd-sl-border) !important;
  border-radius: 23px !important;
  background: var(--otd-sl-glass-bg) !important;
  background-blend-mode: screen, soft-light, normal !important;
  color: #fff !important;
  box-shadow: var(--otd-sl-shadow) !important;
  -webkit-backdrop-filter: var(--otd-sl-blur) !important;
  backdrop-filter: var(--otd-sl-blur) !important;
  transform-origin: center bottom !important;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease !important;
}
.otd-feed-static-viewer .otd-feed-static-viewer__product:hover,
.otd-feed-static-viewer .otd-feed-static-viewer__product:focus-visible,
.otd-feed-viewer .otd-feed-viewer__product:hover,
.otd-feed-viewer .otd-feed-viewer__product:focus-visible {
  z-index: 7 !important;
  transform: translateY(-7px) scale(1.035) !important;
  border-color: rgba(255,255,255,.54) !important;
  outline: none !important;
}
.otd-sl-product-card__media {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 10px;
}
.otd-feed-static-viewer .otd-feed-static-viewer__product > img,
.otd-feed-viewer .otd-feed-viewer__product > img,
.otd-sl-product-card__media img {
  display: block !important;
  width: 88% !important;
  height: 88% !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 9px 10px rgba(0,0,0,.17)) !important;
}
.otd-sl-product-card__fallback { padding: 10px; color: #fff; font-size: 10px; text-align: center; }
.otd-feed-static-viewer .otd-feed-static-viewer__product > span:last-child,
.otd-feed-viewer .otd-feed-viewer__product-info,
.otd-sl-product-card__info {
  position: absolute !important;
  inset: auto 5px 5px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 5px !important;
  max-width: calc(100% - 10px) !important;
  padding: 5px 6px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 10px !important;
  background: rgba(13,14,17,.32) !important;
  color: #fff !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
  backdrop-filter: blur(15px) saturate(160%) !important;
  transition: opacity .18s ease, transform .18s ease !important;
}
.otd-feed-static-viewer .otd-feed-static-viewer__product:hover > span:last-child,
.otd-feed-static-viewer .otd-feed-static-viewer__product:focus-visible > span:last-child,
.otd-feed-viewer .otd-feed-viewer__product:hover .otd-feed-viewer__product-info,
.otd-feed-viewer .otd-feed-viewer__product:focus-visible .otd-feed-viewer__product-info,
.otd-sl-product-card:hover .otd-sl-product-card__info,
.otd-sl-product-card:focus-visible .otd-sl-product-card__info { opacity: 1 !important; transform: none !important; }
.otd-sl-product-card__info strong { overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.otd-sl-product-card__info small { flex: 0 0 auto; color: rgba(255,255,255,.74); font-size: 7px; }

/* In-place editor trigger. */
.otd-sl-edit-products {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: var(--otd-sl-glass-bg);
  color: #fff;
  font: 600 13px/1 "DM Sans", "Karla", sans-serif;
  cursor: pointer;
  box-shadow: var(--otd-sl-shadow);
  -webkit-backdrop-filter: var(--otd-sl-blur);
  backdrop-filter: var(--otd-sl-blur);
}
.otd-sl-edit-products:hover { border-color: rgba(255,255,255,.52); transform: translateY(-2px); }

body.otd-sl-editor-open { overflow: hidden !important; }
.otd-sl-editor[hidden] { display: none !important; }
.otd-sl-editor {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 18px;
}
.otd-sl-editor__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8,9,11,.18);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  backdrop-filter: blur(18px) saturate(110%);
}
.otd-sl-editor__dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(860px, 95vw);
  max-height: min(850px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.30) !important;
  border-radius: 34px;
  background: var(--otd-sl-glass-bg) !important;
  color: #fff;
  box-shadow: 0 52px 140px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.38) !important;
  -webkit-backdrop-filter: blur(42px) saturate(190%) contrast(105%) brightness(99%) !important;
  backdrop-filter: blur(42px) saturate(190%) contrast(105%) brightness(99%) !important;
}
.otd-sl-editor__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(25,26,30,.22);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  backdrop-filter: blur(25px) saturate(180%);
}
.otd-sl-editor__header { padding: 30px 78px 18px 30px; }
.otd-sl-editor__header > span { color: rgba(255,255,255,.60); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.otd-sl-editor__header h2 { margin: 8px 0 7px; color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: .98; letter-spacing: -.05em; }
.otd-sl-editor__header p { max-width: 650px; margin: 0; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.55; }
.otd-sl-selected {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 30px 20px;
}
.otd-sl-slot {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  align-items: center;
  min-height: 100px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.otd-sl-slot.is-empty { display: grid; grid-template-columns: 1fr; place-items: center; color: rgba(255,255,255,.40); text-align: center; }
.otd-sl-slot.is-empty > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.otd-sl-slot.is-empty small { font-size: 10px; }
.otd-sl-slot__media { display: grid; width: 68px; height: 76px; place-items: center; }
.otd-sl-slot__media img { width: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 7px 8px rgba(0,0,0,.15)); }
.otd-sl-slot__copy { min-width: 0; padding-left: 4px; }
.otd-sl-slot__copy strong, .otd-sl-slot__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-sl-slot__copy strong { font-size: 11px; }
.otd-sl-slot__copy small { margin-top: 4px; color: rgba(255,255,255,.56); font-size: 9px; }
.otd-sl-slot__drag { position: absolute; top: 7px; left: 9px; color: rgba(255,255,255,.38); cursor: grab; }
.otd-sl-slot__remove { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.otd-sl-slot__moves { position: absolute; right: 8px; bottom: 7px; display: flex; gap: 4px; }
.otd-sl-slot__moves button { width: 24px; height: 22px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.otd-sl-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 30px 14px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.otd-sl-search > span { display: grid; width: 22px; color: rgba(255,255,255,.78); }
.otd-sl-search svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.otd-sl-search input { flex: 1; height: 58px; border: 0; outline: 0; background: transparent; color: #fff; font: 500 15px/1 "DM Sans", "Karla", sans-serif; }
.otd-sl-search input::placeholder { color: rgba(255,255,255,.46); }
.otd-sl-search button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.otd-sl-results { min-height: 180px; overflow-y: auto; padding: 0 30px 20px; scrollbar-width: thin; }
.otd-sl-state { display: grid; min-height: 180px; place-items: center; color: rgba(255,255,255,.58); text-align: center; }
.otd-sl-state.is-loading { grid-auto-flow: column; justify-content: center; gap: 10px; }
.otd-sl-state.is-loading span { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: otd-sl-spin .75s linear infinite; }
.otd-sl-state.is-error { color: #ffd0c8; }
@keyframes otd-sl-spin { to { transform: rotate(360deg); } }
.otd-sl-result {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.otd-sl-result__media { display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.86); overflow: hidden; }
.otd-sl-result__media img { width: 90%; height: 90%; object-fit: contain; }
.otd-sl-result__copy { min-width: 0; }
.otd-sl-result__copy small, .otd-sl-result__copy strong, .otd-sl-result__copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-sl-result__copy small { color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.otd-sl-result__copy strong { margin-top: 4px; color: #fff; font-size: 14px; }
.otd-sl-result__copy span { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 11px; }
.otd-sl-result > button, .otd-sl-save, .otd-sl-secondary { min-height: 40px; padding: 0 16px; border-radius: 999px; font: 650 12px/1 "DM Sans", "Karla", sans-serif; cursor: pointer; }
.otd-sl-result > button, .otd-sl-save { border: 1px solid rgba(255,255,255,.82); background: rgba(255,255,255,.91); color: #111; }
.otd-sl-result > button:disabled { opacity: .48; cursor: default; }
.otd-sl-secondary { border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.06); color: #fff; }
.otd-sl-editor__message { min-height: 20px; padding: 0 30px; color: rgba(255,255,255,.66); font-size: 11px; }
.otd-sl-editor__message.is-error { color: #ffd0c8; }
.otd-sl-editor__message.is-success { color: #c8ffd8; }
.otd-sl-editor__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 30px 22px; border-top: 1px solid rgba(255,255,255,.12); }
.otd-sl-editor__footer > span { color: rgba(255,255,255,.56); font-size: 11px; }
.otd-sl-editor__footer > div { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .otd-feed-static-viewer .otd-feed-static-viewer__dialog { padding-bottom: 74px !important; }
  .otd-feed-static-viewer .otd-feed-static-viewer__post { width: min(430px, 92vw) !important; }
  .otd-feed-static-viewer .otd-feed-static-viewer__products,
  .otd-feed-viewer .otd-feed-viewer__product-rail { gap: 7px !important; grid-template-columns: repeat(var(--otd-sl-count), minmax(62px, 86px)) !important; }
  .otd-feed-static-viewer .otd-feed-static-viewer__products { width: min(390px, 91vw) !important; margin-top: -39px !important; }
  .otd-feed-static-viewer .otd-feed-static-viewer__product,
  .otd-feed-viewer .otd-feed-viewer__product,
  .otd-sl-product-card { max-width: 86px !important; border-radius: 18px !important; }
  .otd-sl-edit-products { right: 7px; bottom: 4px; min-height: 39px; padding: 0 12px; font-size: 11px; }
  .otd-sl-editor { align-items: end; padding: 8px; }
  .otd-sl-editor__dialog { width: 100%; max-height: calc(100dvh - 8px); border-radius: 30px 30px 18px 18px; }
  .otd-sl-editor__header { padding: 26px 62px 15px 20px; }
  .otd-sl-editor__header h2 { font-size: 34px; }
  .otd-sl-selected { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0 20px 16px; }
  .otd-sl-search { margin: 0 20px 12px; }
  .otd-sl-results { padding: 0 20px 14px; }
  .otd-sl-result { grid-template-columns: 64px minmax(0,1fr) auto; gap: 10px; }
  .otd-sl-result__media { width: 60px; height: 60px; border-radius: 15px; }
  .otd-sl-editor__footer { padding: 14px 20px max(18px, env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .otd-feed-static-viewer .otd-feed-static-viewer__products,
  .otd-feed-viewer .otd-feed-viewer__product-rail { gap: 6px !important; grid-template-columns: repeat(var(--otd-sl-count), minmax(58px, 78px)) !important; }
  .otd-feed-static-viewer .otd-feed-static-viewer__product,
  .otd-feed-viewer .otd-feed-viewer__product,
  .otd-sl-product-card { max-width: 78px !important; border-radius: 16px !important; }
  .otd-sl-slot { grid-template-columns: 58px minmax(0,1fr); min-height: 88px; }
  .otd-sl-slot__media { width: 54px; height: 62px; }
  .otd-sl-result > button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .otd-sl-state.is-loading span { animation: none; }
  .otd-sl-product-card, .otd-sl-edit-products { transition: none !important; }
}


/* ================================================================
 * 1.0.1 — clean Feed viewer shell and close by tapping outside.
 * ================================================================ */

/* The viewer shell itself must stay completely transparent. The global
   glass detector may tag role=dialog elements, so these selectors are
   intentionally specific and loaded after the theme. */
.otd-feed-static-viewer .otd-feed-static-viewer__dialog,
.otd-feed-viewer .otd-feed-viewer__dialog,
.otd-feed-static-viewer .otd-feed-static-viewer__dialog[data-otd-glass-surface],
.otd-feed-viewer .otd-feed-viewer__dialog[data-otd-glass-surface] {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  background-blend-mode: normal !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Remove both visible X controls. The accessible backdrop and Escape key
   continue to close the viewer. */
.otd-feed-static-viewer .otd-feed-static-viewer__close,
.otd-feed-viewer .otd-feed-viewer__close {
  display: none !important;
}

/* Make the static hash viewer hug the actual post instead of drawing a
   larger rectangular box around it. */
.otd-feed-static-viewer .otd-feed-static-viewer__dialog {
  display: block !important;
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: min(560px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 18px) !important;
  overflow: visible !important;
  padding: 0 0 94px !important;
}

.otd-feed-static-viewer .otd-feed-static-viewer__stage,
.otd-feed-static-viewer .otd-feed-static-viewer__stage.is-product-free {
  width: 100% !important;
  max-width: 100% !important;
}

.otd-feed-static-viewer .otd-feed-static-viewer__post {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep the dynamic viewer equally clean and proportional. */
.otd-feed-viewer .otd-feed-viewer__dialog {
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: min(560px, calc(100vw - 28px)) !important;
  padding: 0 0 76px !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
}

.otd-feed-viewer .otd-feed-viewer__post {
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: 100% !important;
}

/* Prevent accidental click capture by invisible or decorative shell areas. */
.otd-feed-static-viewer__stage,
.otd-feed-viewer__stage {
  background: transparent !important;
}

/* The editing control belongs to the post layout, not to a gray shell. */
.otd-feed-static-viewer .otd-sl-edit-products {
  right: 0 !important;
  bottom: 6px !important;
}

@media (max-width: 760px) {
  .otd-feed-static-viewer .otd-feed-static-viewer__dialog,
  .otd-feed-viewer .otd-feed-viewer__dialog {
    width: min(94vw, 520px) !important;
    max-width: min(94vw, 520px) !important;
    padding-bottom: 78px !important;
  }

  .otd-feed-viewer .otd-feed-viewer__post,
  .otd-feed-static-viewer .otd-feed-static-viewer__post {
    width: 100% !important;
  }
}


/* Save-for-later bookmark on every product tile. */
.otd-sl-product-card__shop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.otd-sl-save-product {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 8;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
    rgba(17,18,22,.25);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 9px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.27);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.otd-sl-save-product:hover,
.otd-sl-save-product:focus-visible {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255,255,255,.68);
  outline: none;
}
.otd-sl-save-product svg {
  width: 15px;
  height: 15px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill .18s ease, transform .18s ease;
}
.otd-sl-save-product.is-saved {
  border-color: rgba(255,255,255,.90);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  color: #111;
}
.otd-sl-save-product.is-saved svg { fill: currentColor; }
.otd-sl-save-product.is-saving svg { animation: otd-sl-bookmark-pulse .7s ease-in-out infinite alternate; }
@keyframes otd-sl-bookmark-pulse { to { transform: scale(.74); opacity: .55; } }

.otd-sl-toast {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 98px));
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  max-width: min(430px, calc(100vw - 28px));
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: var(--otd-sl-glass-bg);
  color: #fff;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
  box-shadow: var(--otd-sl-shadow);
  -webkit-backdrop-filter: var(--otd-sl-blur);
  backdrop-filter: var(--otd-sl-blur);
  transition: opacity .2s ease, transform .2s ease;
}
.otd-sl-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.otd-sl-toast span { font-size: 12px; font-weight: 600; }
.otd-sl-toast a { color: #fff; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Saved-products account page. */
.otd-sl-saved-page {
  width: min(1280px, calc(100% - 40px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 150px 0 150px;
  color: #111;
}
.otd-sl-saved-page__header { max-width: 760px; margin-bottom: 44px; }
.otd-sl-saved-page__header > span,
.otd-sl-saved-page__empty > span { color: #777; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.otd-sl-saved-page__header h1,
.otd-sl-saved-page__empty h1 { margin: 10px 0 12px; font-size: clamp(52px, 8vw, 94px); line-height: .92; letter-spacing: -.065em; }
.otd-sl-saved-page__header p,
.otd-sl-saved-page__empty p { max-width: 620px; color: #707070; font-size: 16px; line-height: 1.6; }
.otd-sl-saved-page__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.otd-sl-saved-card.otd-sl-product-card {
  max-width: none !important;
  aspect-ratio: 4 / 5 !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(240,240,240,.52)) !important;
  color: #111 !important;
}
.otd-sl-saved-card .otd-sl-product-card__shop { align-content: start; grid-template-rows: minmax(0,1fr) auto; }
.otd-sl-saved-card .otd-sl-product-card__media { padding: 28px 22px 10px; }
.otd-sl-saved-card__copy { width: 100%; padding: 18px 20px 22px; text-align: left; }
.otd-sl-saved-card__copy small,
.otd-sl-saved-card__copy strong,
.otd-sl-saved-card__copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-sl-saved-card__copy small { color: #888; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.otd-sl-saved-card__copy strong { margin-top: 6px; font-size: 16px; }
.otd-sl-saved-card__copy span { margin-top: 5px; color: #666; font-size: 12px; }
.otd-sl-saved-card.is-removing { opacity: 0; transform: scale(.96); transition: opacity .2s ease, transform .2s ease; }
.otd-sl-saved-page__empty { max-width: 760px; padding: clamp(32px, 6vw, 70px); border-radius: 32px; background: rgba(255,255,255,.68); color: #111; }
.otd-sl-saved-page__empty h2 { margin: 0 0 12px; font-size: 38px; letter-spacing: -.04em; }
.otd-sl-saved-page__login { display: inline-flex; min-height: 48px; align-items: center; margin-top: 22px; padding: 0 20px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .otd-sl-saved-page__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .otd-sl-save-product { top: 6px; right: 6px; width: 28px; height: 28px; }
  .otd-sl-toast { right: 14px; bottom: max(100px, calc(env(safe-area-inset-bottom) + 86px)); }
  .otd-sl-saved-page { width: min(100% - 28px, 1280px); padding-top: 116px; }
  .otd-sl-saved-page__grid { gap: 12px; }
  .otd-sl-saved-card.otd-sl-product-card { border-radius: 22px !important; }
  .otd-sl-saved-card__copy { padding: 12px 13px 15px; }
  .otd-sl-saved-card__copy strong { font-size: 13px; }
}
