@charset "UTF-8";
/**
 * Spend Rules List Block - Editor Styles
 *
 * Additional styles specific to the block editor.
 */
.editor-styles-wrapper .leat-spend-rules-list {
  margin: 1rem 0;
}
.editor-styles-wrapper .leat-spend-rules-list__grid {
  max-width: 100%;
}
.editor-styles-wrapper .leat-spend-rules-list__grid .leat-item__actions button[disabled] {
  cursor: not-allowed;
}
.editor-styles-wrapper .leat-spend-rules-list__empty-state {
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  background: #f9fafb;
}
.editor-styles-wrapper .leat-spend-rules-list__empty-state .components-notice {
  margin: 0 !important;
  box-shadow: none !important;
}

/**
 * Item Component Styles
 *
 * Flexible card component for rule lists and similar layouts.
 * Based on earn-rules-list card design with enhanced flexibility.
 */
.leat-item {
  background: var(--leat-card-background, #fff);
  border: 1px solid var(--leat-card-border, #ddd);
  border-radius: 8px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 0 transparent;
  transition: all 0.15s ease-out;
}
.leat-item:not(.leat-item--disabled):hover {
  border-color: var(--leat-card-border-hover, #949494);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.leat-item--disabled {
  pointer-events: none;
}
.leat-item--disabled:hover {
  transform: none;
  box-shadow: none;
}
.leat-item--compact {
  min-height: 220px;
}
.leat-item--compact .leat-item__content {
  padding: 16px 16px 12px;
}
.leat-item--compact .leat-item__media {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.leat-item--compact .leat-item__label {
  font-size: 13px;
  min-height: 32px;
}
.leat-item--compact .leat-item__meta {
  font-size: 16px;
}
.leat-item--compact .leat-item__actions {
  padding: 10px 12px;
  min-height: 48px;
}

.leat-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
  text-align: center;
}

.leat-item__media {
  width: 48px;
  height: 48px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leat-icon-color, #1e1e1e);
}
.leat-item__media svg {
  width: 100%;
  height: 100%;
}
.leat-item__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.leat-item__label {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: var(--leat-text-primary, #1e1e1e);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-block-leat-earn-rules-list .leat-item__label, .wp-block-leat-spend-rules-list .leat-item__label {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  text-transform: inherit;
  text-decoration: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0 0 8px 0;
  color: var(--leat-text-primary, #1e1e1e);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leat-item__meta {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin: 4px 0 0 0;
}
.leat-item__meta--default {
  color: var(--leat-primary-color, #2271b1);
}
.leat-item__meta--credits {
  color: var(--leat-primary-color, #2271b1);
}
.leat-item__meta--cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--leat-success-color, #059669);
  background: var(--leat-success-bg, #d1fae5);
  border-radius: 0.25rem;
}
.leat-item__meta--coupon-code {
  margin-top: 12px;
  pointer-events: auto;
}

.leat-item__description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--leat-text-secondary, #666);
  margin: 8px 0 0 0;
  text-align: center;
}
.wp-block-leat-earn-rules-list .leat-item__description, .wp-block-leat-spend-rules-list .leat-item__description {
  font-family: inherit;
  font-style: inherit;
  text-transform: inherit;
  text-decoration: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  font-size: 0.875em;
  color: var(--leat-text-secondary, #666);
  margin: 8px 0 0 0;
  text-align: center;
}

.leat-item__actions {
  border-top: 1px solid var(--leat-card-border, #ddd);
  padding: 12px 16px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: var(--leat-card-footer-bg, #f9f9f9);
  border-radius: 0 0 8px 8px;
}
.leat-item__actions .leat-button,
.leat-item__actions .leat-block-components-button {
  min-width: 140px;
  width: auto;
  min-height: 36px;
}
.leat-item__actions .leat-button.is-display-only,
.leat-item__actions .leat-block-components-button.is-display-only {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
}
.leat-item__actions .leat-button.is-display-only svg,
.leat-item__actions .leat-block-components-button.is-display-only svg {
  flex-shrink: 0;
}
.leat-item__actions .leat-button.leat-button--claimed,
.leat-item__actions .leat-block-components-button.leat-button--claimed {
  color: var(--leat-success-color, #00a32a);
  background: var(--leat-success-bg, #f0f6fc);
}
.leat-item__actions .leat-button.leat-button--claimed:hover,
.leat-item__actions .leat-block-components-button.leat-button--claimed:hover {
  opacity: 1;
}
.leat-item__actions .leat-button.leat-button--automatic,
.leat-item__actions .leat-block-components-button.leat-button--automatic {
  color: var(--leat-info-color, #757575);
  background: var(--leat-info-bg, #f0f0f0);
}
.leat-item__actions .leat-button.leat-button--automatic:hover,
.leat-item__actions .leat-block-components-button.leat-button--automatic:hover {
  opacity: 1;
}

.leat-item__error {
  color: var(--leat-error-color, #cc1818);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.leat-item__success {
  color: var(--leat-success-color, #00a32a);
  background: var(--leat-success-bg, #f0f6fc);
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
}

.leat-item__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 9999px;
  z-index: 1;
  color: var(--leat-badge-text, #fff);
  background: var(--leat-badge-background, #2271b1);
  transition: all 0.15s ease-out;
}

.leat-item__insufficient {
  font-size: 0.75rem;
  color: var(--leat-error-color, #dc2626);
  text-align: center;
  margin-top: 0.25rem;
}

.leat-item--skeleton {
  pointer-events: none;
}
.leat-item--skeleton .leat-block-components-skeleton__element {
  animation: leat-item-skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes leat-item-skeleton-loading {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 768px) {
  .leat-item {
    min-height: auto;
  }
  .leat-item--compact {
    min-height: auto;
  }
}
.leat-block-components-button:not(.is-link) {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  height: auto;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: box-shadow 0.1s linear;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.leat-block-components-button:not(.is-link):focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.leat-block-components-button:not(.is-link) .leat-block-components-button__text {
  display: block;
  text-wrap: balance;
  text-wrap: pretty;
}
.leat-block-components-button:not(.is-link) .leat-block-components-button__text > svg {
  fill: currentColor;
}
.leat-block-components-button:not(.is-link).text:not(.wp-block-button__link) {
  background: transparent;
  color: currentColor;
  padding: 0.5rem 1rem;
}
.leat-block-components-button:not(.is-link).text:not(.wp-block-button__link):hover {
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link).outlined, .leat-block-components-button:not(.is-link).is-style-outline {
  background: transparent;
  color: currentColor;
}
.leat-block-components-button:not(.is-link).outlined:not(:focus), .leat-block-components-button:not(.is-link).is-style-outline:not(:focus) {
  box-shadow: inset 0 0 0 1px currentColor;
}
.leat-block-components-button:not(.is-link).outlined:hover, .leat-block-components-button:not(.is-link).is-style-outline:hover {
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link).contained.wp-block-button__link:hover:not(:disabled) {
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link).contained:not(.wp-block-button__link) {
  background-color: var(--leat-button-bg, #1e1e1e);
  color: var(--leat-button-text, #ffffff);
}
.leat-block-components-button:not(.is-link).contained:not(.wp-block-button__link):hover:not(:disabled) {
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link):disabled {
  cursor: not-allowed;
}
.leat-block-components-button:not(.is-link):disabled .leat-block-components-button__text {
  opacity: 0.5;
}
.leat-block-components-button:not(.is-link).leat-button--pill {
  box-sizing: border-box;
  background: var(--leat-pill-bg, #000);
  color: var(--leat-pill-color, #fff);
  border: none;
  border-radius: 24px;
  padding: 14px 24px;
  min-height: 48px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.28px;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.leat-block-components-button:not(.is-link).leat-button--pill:hover:not([disabled]) {
  background: var(--leat-pill-bg, #000);
  color: var(--leat-pill-color, #fff);
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link).leat-button--pill[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.leat-block-components-button:not(.is-link).leat-button--pill-outline {
  box-sizing: border-box;
  background: transparent;
  color: var(--leat-pill-bg, #000);
  border: none;
  border-radius: 24px;
  padding: 14px 24px;
  min-height: 48px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.28px;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.leat-block-components-button:not(.is-link).leat-button--pill-outline:not(:focus) {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.leat-block-components-button:not(.is-link).leat-button--pill-outline:hover:not([disabled]) {
  opacity: 0.9;
}
.leat-block-components-button:not(.is-link).leat-button--pill-outline[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.leat-block-components-button:not(.is-link).leat-button--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  gap: 0.375rem;
}
.leat-block-components-button:not(.is-link).leat-button--small.text {
  padding: 0.375rem 0.75rem;
}
.leat-block-components-button:not(.is-link).leat-button--claimed.is-display-only {
  color: var(--leat-success-color, #00a32a) !important;
  background: var(--leat-success-bg, #f0f6fc) !important;
  cursor: default;
}
.leat-block-components-button:not(.is-link).leat-button--claimed.is-display-only:hover {
  opacity: 1;
}
.leat-block-components-button:not(.is-link).leat-button--automatic.is-display-only {
  color: var(--leat-info-color, #757575) !important;
  background: var(--leat-info-bg, #f0f0f0) !important;
  cursor: default;
}
.leat-block-components-button:not(.is-link).leat-button--automatic.is-display-only:hover {
  opacity: 1;
}
.leat-block-components-button:not(.is-link).leat-button--location.is-display-only {
  color: var(--leat-location-color, #92400e) !important;
  background: var(--leat-location-bg, #fef3c7) !important;
  cursor: default;
}
.leat-block-components-button:not(.is-link).leat-button--location.is-display-only:hover {
  opacity: 1;
}

/**
 * Skeleton Component Styles
 */
/**
 * Shared SCSS Mixins
 *
 * Common mixins used across Leat frontend blocks
 */
/**
 * Skeleton animation mixin
 *
 * Creates an animated shimmer effect for loading states
 */
/**
 * Skeleton animation fade mixin
 *
 * Adds smooth transitions for skeleton appearance/disappearance
 */
/**
 * Skeleton shimmer animation
 */
@keyframes leat-skeleton-shimmer {
  100% {
    transform: translateX(-100%);
  }
}
.leat-block-components-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leat-block-components-skeleton__element {
  background: color-mix(in srgb, currentColor 5%, transparent);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: none;
}
.leat-block-components-skeleton__element::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  /* stylelint-disable declaration-colon-newline-after, function-parentheses-space-inside, function-comma-space-after */
  background: linear-gradient(-90deg, transparent 0%, color-mix(in srgb, currentColor 5%, transparent) 50%, transparent 100%);
  /* stylelint-enable */
  animation: leat-skeleton-shimmer 1.25s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .leat-block-components-skeleton__element::after {
    animation: none;
  }
}
.leat-block-components-skeleton__element--static::after {
  display: none;
}
.leat-block-components-skeleton__element {
  transition: background-color 0.2s ease;
}
.leat-block-components-skeleton__element::after {
  transition: background-color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .leat-block-components-skeleton__element {
    transition: background-color 0.2s ease;
  }
  .leat-block-components-skeleton__element::after {
    transition: background-color 0.2s ease;
  }
}

/**
 * Spend Rules List Block - Styles
 * Applied to both editor and frontend
 *
 * Layout (per Figma):
 *   ┌───────────────────────────┐
 *   │   image (rounded, tall)   │
 *   │                           │
 *   │ TITLE (bold, uppercase)   │
 *   │ 200 points                │
 *   │                           │
 *   │ ┌─ Redeem reward ──────┐  │  <- enough points
 *   │ └──────────────────────┘  │
 *   │     OR                    │
 *   │ Earn 182 more …      9%   │  <- not enough points
 *   │ ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔   │
 *   └───────────────────────────┘
 */
.leat-spend-rules-list {
  width: 100%;
}

.leat-spend-rules-list__grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
@media (max-width: 1100px) {
  .leat-spend-rules-list__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .leat-spend-rules-list__grid {
    grid-template-columns: 1fr !important;
  }
}

.leat-spend-rules-list__grid .leat-item {
  --leat-image-aspect-ratio: 1 / 1;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 24px;
  gap: 24px;
  min-height: 0;
  box-shadow: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.leat-spend-rules-list__grid .leat-item:not(.leat-item--disabled):hover {
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.leat-spend-rules-list__grid .leat-item [data-slot=item-media] {
  width: 100%;
  height: auto;
  aspect-ratio: var(--leat-image-aspect-ratio, 1/1);
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.leat-spend-rules-list__grid .leat-item [data-slot=item-media] img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
  box-shadow: none;
}
.leat-spend-rules-list__grid .leat-item [data-slot=item-media] svg {
  width: 100%;
  height: 100%;
}
.leat-spend-rules-list__grid .leat-item [data-slot=item-content] {
  flex: 0 0 auto;
  padding: 0;
  align-items: flex-start;
  text-align: right;
  gap: 4px;
}
.leat-spend-rules-list__grid .leat-item .leat-item__label {
  margin: 0;
  min-height: 0;
  display: block;
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.1;
  color: #000;
}
.leat-spend-rules-list__grid .leat-item .leat-item__description {
  margin: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  color: var(--leat-text-secondary, #666);
}
.leat-spend-rules-list__grid .leat-item .leat-spend-rule-card__cost {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #000;
}
.leat-spend-rules-list__grid .leat-item [data-slot=item-actions] {
  border-top: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  width: 100%;
  align-items: stretch;
}

.leat-spend-rule-card__redeem-button.leat-block-components-button {
  width: 100%;
}

.leat-spend-rule-card__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.leat-spend-rule-card__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leat-spend-rule-card__progress-label {
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

.leat-spend-rule-card__progress-percentage {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: #000;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leat-spend-rule-card__progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #ededed;
  border-radius: 10px;
  overflow: hidden;
}

.leat-spend-rule-card__progress-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: #000;
  border-radius: 10px;
  transition: width 0.3s ease-out;
}

.leat-spend-rules-list__loading,
.leat-spend-rules-list__error,
.leat-spend-rules-list__empty {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

.leat-spend-rules-list__error {
  color: #dc2626;
}

.leat-spend-rules-list__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  min-height: 300px;
  text-align: center;
}
.leat-spend-rules-list__empty-state p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  max-width: 500px;
  line-height: 1.6;
}
.leat-spend-rules-list__empty-state .leat-block-components-button {
  min-width: 160px;
}

.leat-redeem-modal__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
.leat-redeem-modal__preview-media {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 7.273px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leat-redeem-modal__preview-media img,
.leat-redeem-modal__preview-media svg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.leat-redeem-modal__preview-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.leat-redeem-modal__preview-title {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 16.8px;
  color: #000;
  word-break: break-word;
}
.leat-redeem-modal__preview-cost {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  color: #000;
}
.leat-redeem-modal__terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.leat-redeem-modal__terms-label {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #000;
}
.leat-redeem-modal__terms-body {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #000;
}
.leat-redeem-modal__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #dc2626;
}