.leat-pulse-root {
  --pulse-brand: var(
  	--wp--preset--color--accent,
  	var(
  		--wp--preset--color--primary,
  		var(--wp--preset--color--accent-1, var(--leat-pill-bg, #1d1d22))
  	)
  );
}

.leat-pulse {
  --pulse-on-brand: #fff;
  --pulse-dark: color-mix(in srgb, var(--pulse-brand) 42%, #000);
  --pulse-soft: color-mix(in srgb, var(--pulse-brand) 9%, #fff);
  --pulse-soft-line: color-mix(in srgb, var(--pulse-brand) 22%, #fff);
  --pulse-fg: #1d1d22;
  --pulse-muted: #6b6b76;
  --pulse-line: #e6e6ea;
  --pulse-gap: 20px;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99990;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: var(--pulse-fg);
  pointer-events: none;
}
.leat-pulse *,
.leat-pulse *::before,
.leat-pulse *::after {
  box-sizing: border-box;
}
.leat-pulse > * {
  pointer-events: auto;
}
.leat-pulse button {
  font: inherit;
  cursor: pointer;
}
.leat-pulse :focus-visible {
  outline: 3px solid var(--pulse-brand);
  outline-offset: 2px;
}
.leat-pulse p {
  margin: 0;
}

.leat-pulse__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.leat-pulse__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pulse-brand);
  color: var(--pulse-on-brand);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.leat-pulse__button:disabled {
  opacity: 0.6;
  cursor: default;
}
.leat-pulse__button--outline {
  background: #fff;
  color: var(--pulse-brand);
  box-shadow: inset 0 0 0 1.5px var(--pulse-brand);
}
.leat-pulse__button--ghost {
  background: #fff;
  color: var(--pulse-fg);
  box-shadow: inset 0 0 0 1px var(--pulse-line);
  font-weight: 700;
}
.leat-pulse__button--inverse {
  background: #fff;
  color: var(--pulse-dark);
}
.leat-pulse__button--full {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
}

.leat-pulse__icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pulse-muted);
}

.leat-pulse__text-button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pulse-fg);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}

.leat-pulse__toast,
.leat-pulse__launcher {
  position: fixed;
  bottom: calc(var(--pulse-gap) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 6px 24px rgba(20, 20, 40, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.leat-pulse__toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, 100vw - 24px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--pulse-soft);
  animation: leat-pulse-rise 0.22s ease-out;
}

.leat-pulse__toast-message {
  flex: 1;
  min-width: 0;
  color: var(--pulse-dark);
  font-weight: 600;
}

.leat-pulse__launcher {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pulse-brand);
  color: var(--pulse-on-brand);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(20, 20, 40, 0.3);
}

[data-position=bottom-right] .leat-pulse__toast,
[data-position=bottom-right] .leat-pulse__launcher {
  right: var(--pulse-gap);
}

[data-position=bottom-left] .leat-pulse__toast,
[data-position=bottom-left] .leat-pulse__launcher {
  left: var(--pulse-gap);
}

.leat-pulse__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.45);
  animation: leat-pulse-fade 0.18s;
}

.leat-pulse__drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
  animation: leat-pulse-slide 0.22s ease-out;
}

[data-position=bottom-right] .leat-pulse__drawer {
  right: 0;
}

[data-position=bottom-left] .leat-pulse__drawer {
  left: 0;
  animation-name: leat-pulse-slide-left;
}

.leat-pulse__drawer-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pulse-line);
}

.leat-pulse__drawer-title {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pulse-fg);
}

.leat-pulse__drawer-close {
  width: 34px;
  height: 34px;
  background: #f1f1f4;
  color: var(--pulse-fg);
}

.leat-pulse__drawer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
}

.leat-pulse__alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pulse-soft);
  color: var(--pulse-dark);
  font-weight: 600;
}
.leat-pulse__alert.is-success {
  background: #e7f6ec;
  color: #16703a;
}

.leat-pulse__card {
  border: 1px solid var(--pulse-line);
  border-radius: 10px;
  background: #fff;
}

.leat-pulse__section-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pulse-fg);
}

.leat-pulse__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leat-pulse__balance {
  padding: 14px 14px 16px;
  border: 0;
  background: var(--pulse-dark);
  color: #fff;
}

.leat-pulse__balance-greeting,
.leat-pulse__join-title {
  font-weight: 600;
}

.leat-pulse__balance-points {
  margin: 2px 0 4px !important;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.leat-pulse__join-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.leat-pulse__balance-tier {
  font-size: 13px;
  opacity: 0.9;
}

.leat-pulse__balance-link {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.leat-pulse__perks {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}
.leat-pulse__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.leat-pulse__perks svg {
  flex: none;
}

.leat-pulse__reward {
  padding: 12px;
}
.leat-pulse__reward.is-applied {
  border-top: 3px solid var(--pulse-fg);
}
.leat-pulse__reward.is-locked .leat-pulse__reward-name {
  color: var(--pulse-muted);
}

.leat-pulse__reward-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leat-pulse__reward-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--pulse-soft);
  color: var(--pulse-brand);
}

.leat-pulse__reward-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}

.leat-pulse__reward-status {
  font-size: 12px;
  color: var(--pulse-muted);
  white-space: nowrap;
}

.leat-pulse__reward-text {
  margin-top: 8px !important;
  color: var(--pulse-muted);
  font-size: 13px;
}

.leat-pulse__reward-code {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--pulse-line);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.leat-pulse__meter {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--pulse-line);
}
.leat-pulse__meter i {
  display: block;
  height: 100%;
  background: var(--pulse-brand);
}

.leat-pulse__error {
  margin-top: 8px !important;
  color: #b3261e;
  font-size: 13px;
}

.leat-pulse__earn-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.leat-pulse__earn-list > li + li {
  border-top: 1px solid var(--pulse-line);
}
.leat-pulse__earn-list .leat-item {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.leat-pulse__earn-list .leat-item:hover {
  box-shadow: none;
}
.leat-pulse__earn-list .leat-item__media {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--pulse-soft-line);
  border-radius: 8px;
  background: transparent;
  color: var(--pulse-brand);
}
.leat-pulse__earn-list .leat-item__media svg {
  width: 16px;
  height: 16px;
}
.leat-pulse__earn-list .leat-item__content {
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 0;
  gap: 3px;
  text-align: start;
}
.leat-pulse__earn-list .leat-item__label {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  text-align: start;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.leat-pulse__earn-list .leat-item__meta--credits {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pulse-soft);
  color: var(--pulse-dark);
  font-size: 12px;
  font-weight: 700;
}
.leat-pulse__earn-list .leat-item__meta--credits::before {
  content: "+";
}
.leat-pulse__earn-list .leat-item__actions {
  flex: none;
  align-items: flex-end;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.leat-pulse__earn-list .leat-item__actions .leat-block-components-button,
.leat-pulse__earn-list .leat-item__actions .wp-block-button__link {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none !important;
  color: var(--pulse-dark) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  box-shadow: none;
}

.leat-pulse__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.leat-pulse__tab {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--pulse-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pulse-fg);
  font-weight: 600;
}
.leat-pulse__tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leat-pulse__tab[aria-selected=true] {
  border-color: var(--pulse-brand);
  background: var(--pulse-brand);
  color: var(--pulse-on-brand);
}

.leat-pulse__tier .leat-tier-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  -moz-column-gap: 10px;
       column-gap: 10px;
  row-gap: 6px;
  padding: 12px;
  border: 1px solid var(--pulse-line);
  border-radius: 10px;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__media {
  grid-row: span 3;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__media-icon {
  width: 40px;
  height: 40px;
  font-size: 22px;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__header {
  flex-wrap: wrap;
  gap: 6px;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__name {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__subtitle {
  margin: 2px 0 0;
  color: var(--pulse-muted);
  font-size: 13px;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pulse-soft);
  color: var(--pulse-dark);
  font-size: 11px;
  font-weight: 700;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__separator {
  display: none;
}
.leat-pulse__tier .leat-tier-card .leat-tier-card__perks {
  margin: 0;
  font-size: 13px;
}

.leat-pulse__referral {
  padding: 10px 12px;
}
.leat-pulse__referral .leat-pulse__reward-text {
  margin-top: 0 !important;
}

.leat-pulse__referral-share {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.leat-pulse__referral-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed var(--pulse-line);
  border-radius: 8px;
  background: #fafafb;
  color: var(--pulse-fg);
  font-size: 12.5px;
  text-align: left;
}
.leat-pulse__referral-link span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leat-pulse__referral-copy {
  flex: none;
  color: var(--pulse-dark);
  font-weight: 700;
}

@media (max-width: 600px) {
  .leat-pulse {
    --pulse-gap: 12px;
  }
  .leat-pulse__toast {
    right: var(--pulse-gap);
    left: var(--pulse-gap);
    max-width: none;
  }
  .leat-pulse__drawer {
    width: 100%;
  }
  .leat-pulse__button,
  .leat-pulse__launcher,
  .leat-pulse__tab,
  .leat-pulse__icon-button {
    min-height: 44px;
  }
  .leat-pulse__icon-button {
    min-width: 44px;
  }
  .leat-pulse__text-button,
  .leat-pulse__balance-link,
  .leat-pulse__referral-link,
  .leat-pulse__earn-list .leat-item__actions .leat-block-components-button,
  .leat-pulse__earn-list .leat-item__actions .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .leat-pulse__earn-list .leat-item__actions .leat-block-components-button,
  .leat-pulse__earn-list .leat-item__actions .wp-block-button__link {
    min-width: 44px;
    justify-content: flex-end;
  }
  .leat-pulse__balance-link {
    margin-top: 2px;
  }
}
@keyframes leat-pulse-fade {
  from {
    opacity: 0;
  }
}
@keyframes leat-pulse-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
@keyframes leat-pulse-slide {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
@keyframes leat-pulse-slide-left {
  from {
    transform: translateX(-24px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .leat-pulse__toast,
  .leat-pulse__scrim,
  .leat-pulse__drawer {
    animation: none !important;
  }
}