.fls-discovery,
.fls-discovery *,
.fls-discovery *::before,
.fls-discovery *::after {
  box-sizing: border-box;
}

.fls-discovery {
  --fls-discovery-accent: #6f46e8;
  --fls-discovery-deep: #43249c;
  --fls-discovery-ink: #221f2f;
  --fls-discovery-muted: #716b7e;
  color: var(--fls-discovery-ink);
  font-family: inherit;
  position: fixed;
  right: 18px;
  top: 96px;
  transform: none;
  z-index: 9000;
}

body.admin-bar .fls-discovery {
  top: 128px;
}

.fls-discovery [hidden] {
  display: none !important;
}

.fls-header-link-source {
  display: none !important;
}

.fls-header-face-link {
  color: #6f46e8 !important;
  font-weight: 800 !important;
}

.dbm-nav a.fls-header-face-link.is-active::after,
.dbm-nav a.fls-header-face-link:hover::after {
  background: #6f46e8 !important;
}

body.dbm-product-entropic-ui .dbm-site-header--entropic .dbm-nav a.fls-header-face-link:hover,
body.dbm-product-entropic-ui .dbm-site-header--entropic .dbm-nav a.fls-header-face-link:focus-visible {
  color: #fff !important;
}

.fls-discovery-launcher {
  align-items: center;
  background: #fff;
  border: 1px solid #d9cdf7;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(67, 36, 156, .14);
  color: var(--fls-discovery-accent);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  justify-items: center;
  padding: 11px 10px 12px;
  transition: box-shadow .2s ease, opacity .16s ease, transform .2s ease;
  width: 104px;
}

.fls-discovery-launcher:hover,
.fls-discovery-launcher:focus-visible {
  background: #faf8ff;
  box-shadow: 0 14px 34px rgba(67, 36, 156, .2);
  outline: 3px solid rgba(111, 70, 232, .22);
  outline-offset: 3px;
  transform: translateX(-3px);
}

.fls-discovery.is-open .fls-discovery-launcher {
  opacity: 0;
  pointer-events: none;
}

.fls-discovery-launcher-icon {
  align-items: center;
  background: #f1ecff;
  border-radius: 999px;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.fls-discovery-launcher-icon svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 23px;
}

.fls-discovery-launcher-reel {
  background: #f3edf8;
  border: 1px solid #e2d7f3;
  border-radius: 16px;
  display: block;
  height: 82px;
  overflow: hidden;
  position: relative;
  width: 82px;
}

.fls-discovery-launcher-reel-frame {
  animation: fls-discovery-reel-cycle 8s steps(1, end) infinite;
  animation-delay: var(--fls-reel-delay);
  inset: 0;
  opacity: 0;
  position: absolute;
  visibility: hidden;
}

.fls-discovery-launcher-reel-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.fls-discovery-launcher-reel .fls-discovery-launcher-icon {
  background: rgba(111, 70, 232, .92);
  border: 2px solid #fff;
  bottom: 3px;
  color: #fff;
  height: 24px;
  position: absolute;
  right: 3px;
  width: 24px;
  z-index: 2;
}

.fls-discovery-launcher-reel .fls-discovery-launcher-icon svg {
  height: 14px;
  width: 14px;
}

.fls-discovery-launcher:hover .fls-discovery-launcher-reel-frame,
.fls-discovery-launcher:focus-visible .fls-discovery-launcher-reel-frame {
  animation-play-state: paused;
}

.fls-discovery-launcher-copy strong,
.fls-discovery-launcher-copy small {
  display: block;
  line-height: 1.35;
}

.fls-discovery-launcher-copy strong {
  font-size: .78rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.fls-discovery-launcher-copy small {
  font-size: .65rem;
  margin-top: 2px;
  opacity: .82;
  white-space: nowrap;
}

.fls-discovery-panel {
  background: #fff;
  border: 1px solid #ded3f5;
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(67, 36, 156, .16);
  max-height: min(720px, calc(100vh - 112px));
  overflow: auto;
  padding: 22px;
  position: fixed;
  right: 18px;
  top: 96px;
  transform: none;
  width: min(330px, calc(100vw - 36px));
}

body.admin-bar .fls-discovery-panel {
  max-height: min(720px, calc(100vh - 144px));
  top: 128px;
}

.fls-discovery-head {
  align-items: center;
  display: flex;
  min-height: 34px;
  padding-right: 42px;
  position: relative;
}

.fls-discovery-head h2 {
  color: var(--fls-discovery-deep);
  font-size: 1.08rem;
  letter-spacing: -.025em;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
}

.fls-discovery-close {
  align-items: center;
  background: #f4f0f8;
  border: 0;
  border-radius: 999px;
  color: var(--fls-discovery-accent);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 1.3rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
}

.fls-discovery-close:hover,
.fls-discovery-close:focus-visible {
  background: #eae2f3;
  outline: 2px solid rgba(111, 70, 232, .24);
}

.fls-discovery-reel {
  background: #fff8fc;
  border: 1px solid #ead8f4;
  border-radius: 14px;
  height: 72px;
  margin: 8px 0 10px;
  overflow: hidden;
  position: relative;
}

.fls-discovery-reel-frame {
  align-items: center;
  background: linear-gradient(110deg, #fff4fa, #f8f5ff);
  color: var(--fls-discovery-deep);
  display: flex;
  gap: 10px;
  inset: 0;
  opacity: 0;
  padding: 6px 10px 6px 6px;
  pointer-events: none;
  position: absolute;
  text-decoration: none;
  visibility: hidden;
  animation: fls-discovery-reel-cycle 8s steps(1, end) infinite;
  animation-delay: var(--fls-reel-delay);
}

.fls-discovery-reel-frame:hover,
.fls-discovery-reel-frame:focus-visible {
  background: linear-gradient(110deg, #ffeef7, #f1ebff);
  color: var(--fls-discovery-deep);
  outline: 2px solid rgba(111, 70, 232, .24);
  outline-offset: -2px;
}

.fls-discovery-reel:hover .fls-discovery-reel-frame,
.fls-discovery-reel:focus-within .fls-discovery-reel-frame {
  animation-play-state: paused;
}

.fls-discovery-reel-frame img {
  background: #f3edf8;
  border-radius: 10px;
  flex: 0 0 auto;
  height: 58px;
  object-fit: cover;
  object-position: center top;
  width: 58px;
}

.fls-discovery-reel-frame > span {
  min-width: 0;
}

.fls-discovery-reel-frame small,
.fls-discovery-reel-frame strong,
.fls-discovery-reel-frame em {
  display: block;
  font-style: normal;
  line-height: 1.25;
}

.fls-discovery-reel-frame small {
  color: #c52d77;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.fls-discovery-reel-frame strong {
  font-size: .82rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fls-discovery-reel-frame em {
  color: var(--fls-discovery-muted);
  font-size: .58rem;
  margin-top: 2px;
}

@keyframes fls-discovery-reel-cycle {
  0%, 24.9% {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  25%, 100% {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.fls-discovery-options {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fls-discovery-head + .fls-discovery-options {
  margin-top: 8px;
}

.fls-discovery-option {
  align-items: center;
  background: #fff;
  border: 1px solid #e5dfeb;
  border-radius: 14px;
  color: var(--fls-discovery-deep);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  gap: 5px;
  min-width: 0;
  padding: 7px 5px 8px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.fls-discovery-option:hover,
.fls-discovery-option:focus-visible {
  border-color: #b9a5e9;
  box-shadow: 0 7px 18px rgba(67, 36, 156, .1);
  outline: 0;
  transform: translateY(-1px);
}

.fls-discovery-option.is-selected {
  background: #f8f5ff;
  border-color: var(--fls-discovery-accent);
  box-shadow: 0 0 0 2px rgba(111, 70, 232, .12);
}

.fls-discovery-portrait {
  background-position: var(--fls-discovery-x) var(--fls-discovery-y);
  background-repeat: no-repeat;
  background-size: 400% 400%;
  border-radius: 10px;
  display: block;
  height: 62px;
  width: 62px;
}

.fls-discovery-choice {
  color: var(--fls-discovery-deep);
  font-size: .74rem;
  font-weight: 800;
  margin: 12px 0 0;
  text-align: center;
}

.fls-discovery-primary,
.fls-discovery-secondary {
  border-radius: 12px;
  display: block;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.fls-discovery-primary {
  background: #fff;
  border: 1px solid var(--fls-discovery-accent);
  color: var(--fls-discovery-deep);
  margin-top: 13px;
  padding: 12px 14px;
}

.fls-discovery-primary:hover,
.fls-discovery-primary:focus-visible {
  background: #f7f3ff;
  color: var(--fls-discovery-deep);
  outline: 3px solid rgba(111, 70, 232, .2);
  outline-offset: 2px;
}

.fls-discovery-secondary {
  color: var(--fls-discovery-deep);
  margin-top: 6px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .fls-discovery {
    bottom: auto;
    right: 12px;
    top: calc(78px + env(safe-area-inset-top));
    transform: none;
  }

  body.admin-bar .fls-discovery {
    top: calc(124px + env(safe-area-inset-top));
  }

  .fls-discovery-launcher {
    border-radius: 999px;
    display: flex;
    gap: 9px;
    padding: 8px 14px 8px 8px;
    width: auto;
  }

  .fls-discovery-launcher-reel {
    border-radius: 13px;
    height: 60px;
    width: 60px;
  }

  .fls-discovery-launcher-icon {
    height: 34px;
    width: 34px;
  }

  .fls-discovery-launcher-copy {
    align-items: baseline;
    display: flex;
    gap: 5px;
    text-align: left;
    white-space: nowrap;
  }

  .fls-discovery-launcher-copy strong,
  .fls-discovery-launcher-copy small {
    display: inline;
    line-height: 1.2;
  }

  .fls-discovery-launcher-copy strong {
    font-size: .7rem;
  }

  .fls-discovery-launcher-copy small {
    font-size: .6rem;
    margin-top: 0;
  }

  .fls-discovery-panel {
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
    position: fixed;
    right: 12px;
    top: auto;
    transform: none;
    width: auto;
  }

  body.admin-bar .fls-discovery-panel {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
    top: auto;
  }
}

@media (min-width: 1024px) {
  .fls-discovery.is-open .fls-discovery-panel {
    display: block;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .fls-discovery-panel {
    padding: 16px;
    width: 260px;
  }

  .fls-discovery-head h2 {
    font-size: .95rem;
  }

  .fls-discovery-options {
    gap: 6px;
  }

  .fls-discovery-option {
    font-size: .66rem;
    padding-inline: 3px;
  }

  .fls-discovery-portrait {
    height: 54px;
    width: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fls-discovery-launcher,
  .fls-discovery-option {
    transition: none;
  }

  .fls-discovery-reel-frame,
  .fls-discovery-launcher-reel-frame {
    animation: none;
    display: none;
  }

  .fls-discovery-reel-frame:first-child,
  .fls-discovery-launcher-reel-frame:first-child {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}
