[data-persik-fp-hidden] {
  display: none !important;
}

.persik-fp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 16px;
  list-style: none;
}
.persik-fp-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.persik-fp-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #10355f);
  background: color-mix(in oklab, var(--primary, #1689ff) 18%, var(--secondary, #1c1c1c));
  color: var(--primary, #1689ff);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.persik-fp-text {
  padding-top: 2px;
  color: var(--foreground, #fff);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.persik-fp-command {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 42px;
  padding: 4px 4px 4px 14px;
  border-radius: 21px;
  background: var(--secondary, #1c1c1c);
  background: color-mix(in oklab, var(--secondary, #1c1c1c) 80%, transparent);
  box-shadow: var(--glass, none);
}
.persik-fp-code {
  flex: 1000 1 auto;
  padding: 8px 0;
  background: none;
  color: var(--foreground, #fff);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}
.persik-fp-copy {
  flex: 1 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #10355f);
  background: color-mix(in oklab, var(--primary, #1689ff) 18%, var(--secondary, #1c1c1c));
  color: var(--primary, #1689ff);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.persik-fp-copy[data-state="done"] {
  background: var(--secondary, #1c1c1c);
  background: color-mix(in oklab, var(--success, #49df64) 14%, var(--secondary, #1c1c1c));
  color: var(--success, #49df64);
}
.persik-fp-copy:focus-visible,
.persik-fp-open:focus-visible {
  outline: 2px solid var(--ring, #fff);
  outline-offset: 2px;
}

.persik-fp-open-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.persik-fp-open-icon {
  display: grid;
  opacity: 0.8;
}
.persik-fp-hint {
  margin: 0;
  padding: 0 4px;
  color: var(--muted-foreground, #8e8e93);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

a[data-persik-funpay] > svg {
  display: none;
}
a[data-persik-funpay][aria-disabled="true"] {
  opacity: 0.5;
}

.persik-fp-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--muted, #3a3a3a);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.5);
  color: var(--foreground, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.persik-fp-toast[hidden] {
  display: none;
}

a[href="#top"][aria-label^="Persik"] > svg {
  background: url("/brand/logo-96.webp") center / contain no-repeat;
  border-radius: 50%;
}
a[href="#top"][aria-label^="Persik"] > svg > * {
  display: none;
}
a[href="#top"][aria-label^="Persik"] > span {
  font-size: 0 !important;
}
a[href="#top"][aria-label^="Persik"] > span::after {
  content: "PERSIK FunPay";
  font-size: 18px;
  line-height: 28px;
  text-transform: none;
}

[data-slot="carousel"][aria-label="Акции"] {
  aspect-ratio: 2000 / 672;
  overflow: hidden;
  border-radius: 24px;
  background: #0124c9 url("/brand/fp-banner.webp") center / cover no-repeat;
}
[data-slot="carousel"][aria-label="Акции"] > [data-slot="carousel-content"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}
[data-slot="carousel"][aria-label="Акции"] > [data-slot="carousel-content"] > div,
[data-slot="carousel"][aria-label="Акции"] [data-slot="carousel-item"] {
  height: 100%;
}
[data-slot="carousel"][aria-label="Акции"] [data-slot="carousel-item"] > button {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  cursor: pointer;
}
[data-slot="carousel"][aria-label="Акции"]:has(:focus-visible) {
  outline: 3px solid rgb(22 137 255 / 0.6);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  [data-slot="carousel"][aria-label="Акции"] {
    aspect-ratio: 5 / 1;
    background-image: url("/brand/fp-banner-wide.webp");
  }
}

[data-slot="drawer-content"] .squircle-img.from-orange-600.to-fuchsia-700 {
  background-image: linear-gradient(to bottom right, #1a5cff 0%, #0129cf 55%, #00169f 100%);
}
