.foxy-fx-root {
  --fx-rose: #eb7e7e;
  --fx-ink: #231f20;
  --fx-cream: #fff8f6;
  --fx-blush: #f7e8ec;
  --fx-muted: #8a8586;
  --fx-line: rgba(35, 31, 32, 0.12);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

button.foxy-fx-ribbon,
.foxy-fx-ribbon {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: fixed !important;
  top: 42% !important;
  right: 0 !important;
  bottom: auto !important;
  z-index: 2147483000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem;
  width: 52px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.85rem 0.4rem 0.95rem !important;
  border: 1px solid var(--fx-line) !important;
  border-right: 0 !important;
  border-radius: 14px 0 0 14px !important;
  background: #231f20 !important;
  color: #fff !important;
  box-shadow: -8px 10px 28px rgba(35, 31, 32, 0.18) !important;
  cursor: pointer;
  line-height: 1.15 !important;
  text-transform: none !important;
  font-size: inherit !important;
  transition: width 0.2s ease, background 0.2s ease;
}

button.foxy-fx-ribbon:hover,
button.foxy-fx-ribbon:focus-visible,
.foxy-fx-ribbon:hover,
.foxy-fx-ribbon:focus-visible {
  width: 58px !important;
  background: #2e292a !important;
  color: #fff !important;
  outline: none;
}

.foxy-fx-ribbon__flag {
  font-size: 1.35rem;
  line-height: 1;
}

.foxy-fx-ribbon__code {
  font-family: "Josefin Sans", Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.foxy-fx-ribbon__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f2b4b4;
  font-weight: 700;
}

.foxy-fx-prompt {
  position: fixed;
  top: 38%;
  right: 64px;
  z-index: 2147483001;
  width: min(320px, calc(100vw - 80px));
  padding: 1.05rem 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(35, 31, 32, 0.16);
}

.foxy-fx-prompt p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--fx-ink);
}

.foxy-fx-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.foxy-fx-prompt__yes,
.foxy-fx-prompt__no {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.foxy-fx-prompt__yes {
  background: var(--fx-rose);
  color: #fff;
}

.foxy-fx-prompt__no {
  background: var(--fx-blush);
  color: var(--fx-ink);
}

.foxy-fx-drawer {
  position: fixed;
  inset: 0;
  z-index: 2147483010;
  background: rgba(35, 31, 32, 0.38);
}

.foxy-fx-drawer[hidden] {
  display: none;
}

.foxy-fx-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100vw);
  background: var(--fx-cream);
  padding: 1.4rem 1.35rem 2rem;
  overflow: auto;
  box-shadow: -16px 0 40px rgba(35, 31, 32, 0.18);
}

.foxy-fx-drawer__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--fx-ink);
  cursor: pointer;
}

.foxy-fx-drawer__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fx-rose);
  font-weight: 700;
}

.foxy-fx-drawer h2 {
  margin: 0 0 0.35rem;
  font-family: "Josefin Sans", Helvetica, sans-serif;
  font-size: 1.55rem;
}

.foxy-fx-drawer__detected {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--fx-rose);
  font-weight: 700;
}

.foxy-fx-drawer__lede,
.foxy-fx-drawer__note {
  color: var(--fx-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.foxy-fx-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.foxy-fx-list__btn {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  margin: 0 0 0.4rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.foxy-fx-list__btn.is-current,
.foxy-fx-list__btn:hover,
.foxy-fx-list__btn:focus-visible {
  border-color: var(--fx-rose);
  box-shadow: 0 0 0 2px rgba(235, 126, 126, 0.18);
  outline: none;
}

.foxy-fx-list__flag {
  font-size: 1.2rem;
}

.foxy-fx-list__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fx-ink);
}

.foxy-fx-list__code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fx-rose);
}

.foxy-fx-price__orig {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.78em;
  font-weight: 500;
  color: #8a8586;
}

/* Woo range HTML includes a .screen-reader-text sibling. Exact-mode dequeues
   the theme sheet that hid it, so "Price range: $x through $y" leaked on mobile. */
.price .screen-reader-text,
.foxy-product-card__price .screen-reader-text,
[data-foxy-shop-price] .screen-reader-text,
.woocommerce-Price-amount + .screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
}

.foxy-fx-checkout-note {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: #fff8f6;
  border: 1px solid rgba(235, 126, 126, 0.35);
  border-radius: 12px;
  font-size: 0.88rem;
  color: #3e3739;
}

@media (max-width: 782px) {
  button.foxy-fx-ribbon,
  .foxy-fx-ribbon {
    top: 36% !important;
    bottom: auto !important;
    width: 40px !important;
    padding: 0.65rem 0.2rem 0.75rem !important;
  }

  .foxy-fx-ribbon__label {
    font-size: 0.52rem;
    color: #f2b4b4 !important;
  }

  .foxy-fx-prompt {
    top: auto;
    bottom: 178px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  /* Keep the side tab off the right-hand product column. Footer print wins over exact-clone. */
  body.foxy-exact-mode ul.products,
  body.foxy-exact-mode.woocommerce ul.products,
  body.foxy-shop-page ul.products {
    padding-right: 38px !important;
    box-sizing: border-box !important;
  }
}
