@charset "UTF-8";
/**
 * 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;
  }
}
/**
 * Product Choice Picker - Styles
 *
 * Rendered inside the `.leat-redeem-modal` (and equivalent checkout modal)
 * containers, so it borrows the same visual language as the rest of the
 * redeem modal (rounded 8px surfaces, #f5f5f5 neutral background).
 */
.leat-product-choice-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.leat-product-choice-picker__heading {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}
.leat-product-choice-picker__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leat-product-choice-picker__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.leat-product-choice-picker__option:has(input:checked) {
  border-color: #000;
  background: #fff;
}
.leat-product-choice-picker__option:has(input:focus-visible) {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.leat-product-choice-picker__input {
  flex: 0 0 auto;
  margin: 0;
}
.leat-product-choice-picker__media {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.leat-product-choice-picker__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.leat-product-choice-picker__name {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
  word-break: break-word;
}

.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 - 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;
}

/**
 * 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;
}

/**
 * Earn Rules List Block - Editor Styles
 *
 * Minimal editor-only adjustments. Layout is owned by style.scss
 * and shared with the frontend so the editor preview matches.
 */
.editor-styles-wrapper .leat-earn-rules-list {
  margin: 1rem 0;
}
.editor-styles-wrapper .leat-earn-rules-list__grid {
  max-width: 100%;
}
.editor-styles-wrapper .leat-earn-rules-list__grid .leat-item__actions button[disabled] {
  cursor: not-allowed;
}

/**
 * Earn Rules List Block - Styles
 * Applied to both editor and frontend.
 *
 * Layout (per Figma):
 *   ┌──────────────────────────────────────────────────────────┐
 *   │  [icon]   Add a review                       ADD A REVIEW│
 *   │           100 points                                     │
 *   └──────────────────────────────────────────────────────────┘
 */
.leat-earn-rules-list {
  width: 100%;
}

.leat-earn-rules-list__grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .leat-earn-rules-list__grid {
    grid-template-columns: 1fr !important;
  }
}

.leat-earn-rules-list__grid .leat-item {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: none;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-media] {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leat-icon-color, #000);
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-media] > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-media] svg {
  width: 100%;
  height: 100%;
  display: block;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-media] svg.leat-earn-rule-icon {
  fill: currentColor;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-media] img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-content] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  gap: 2px;
}
.leat-earn-rules-list__grid .leat-item .leat-item__label {
  margin: 0;
  min-height: 0;
  display: block;
  text-align: right;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.2;
  color: #000;
}
.leat-earn-rules-list__grid .leat-item .leat-item__meta {
  margin: 0;
  padding: 0;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  display: block;
}
.leat-earn-rules-list__grid .leat-item [data-slot=item-actions] {
  flex: 0 0 auto;
  flex-direction: row;
  border-top: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  margin-right: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button {
  background: transparent;
  border: none;
  color: #000;
  padding: 0;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
  white-space: nowrap;
  box-shadow: none;
}
.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button:hover:not([disabled]) {
  background: transparent;
  color: #000;
}
.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: transparent;
}
.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button.leat-button--claimed {
  background-color: #ededed !important;
  color: #000 !important;
  text-decoration: none !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 12px;
  line-height: 16.8px;
}
.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button.leat-button--claimed svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.leat-earn-rules-list__grid .leat-item__actions .leat-block-components-button.leat-button--claimed:hover {
  background-color: #ededed !important;
  text-decoration: none !important;
}

.leat-earn-rules-list__loading,
.leat-earn-rules-list__error,
.leat-earn-rules-list__empty-state {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}
.leat-earn-rules-list__loading p,
.leat-earn-rules-list__error p,
.leat-earn-rules-list__empty-state p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

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

.leat-earn-rules-list__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

/**
 * Spend Rules Checkout Block Styles
 *
 * Checkout-optimized layout for rewards display
 * Imports base styles from the regular spend-rules-list block
 */
.leat-rewards-checkout-tabs {
  width: 100%;
}
.leat-rewards-checkout-tabs__list {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
  gap: 0;
}
.leat-rewards-checkout-tabs__trigger {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
  text-align: center;
}
.leat-rewards-checkout-tabs__trigger:hover:not([disabled]) {
  color: #333;
  background-color: rgba(0, 0, 0, 0.04);
}
.leat-rewards-checkout-tabs__trigger:focus-visible {
  outline: 2px solid var(--wp--preset--color--vivid-cyan-blue, #0693e3);
  outline-offset: -2px;
}
.leat-rewards-checkout-tabs__trigger[data-state=active] {
  color: #333;
}
.leat-rewards-checkout-tabs__trigger[data-state=active]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--wp--preset--color--vivid-cyan-blue, #0693e3);
}
.leat-rewards-checkout-tabs__trigger[disabled] {
  color: #999;
  cursor: not-allowed;
}
.leat-rewards-checkout-tabs__content {
  outline: none;
}
.leat-rewards-checkout-tabs__content:focus-visible {
  outline: 2px solid var(--wp--preset--color--vivid-cyan-blue, #0693e3);
  outline-offset: 2px;
}

.wp-block-leat-spend-rules-checkout {
  margin: 0;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__preview {
  padding: 16px;
  background: #ffffff;
  border: 1px dashed #ddd;
  border-radius: 4px;
  text-align: center;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__preview--disabled {
  background: #f5f5f5;
  color: #999;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__preview--disabled p {
  margin: 0;
  font-style: italic;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview {
  background: #fff;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview .leat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview .leat-button--contained {
  background: #333;
  color: #fff;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview .leat-button--contained:hover {
  opacity: 0.9;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview .leat-button--compact {
  padding: 6px 12px;
  font-size: 13px;
  min-width: 70px;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__editor-preview .leat-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__grid {
  display: grid;
  gap: 16px;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__grid[style*="repeat(1"] {
  grid-template-columns: 1fr;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__grid[style*="repeat(2"] {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__grid[style*="repeat(2"] {
    grid-template-columns: 1fr;
  }
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__empty-state,
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__empty {
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 4px;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__empty-state p,
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__empty p {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__error {
  padding: 12px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  font-size: 14px;
}
.wp-block-leat-spend-rules-checkout .leat-item .leat-item__content {
  padding: 12px;
}
.wp-block-leat-spend-rules-checkout .leat-item .leat-item__media img,
.wp-block-leat-spend-rules-checkout .leat-item .leat-item__media svg {
  max-height: var(--leat-image-height, 150px);
}
.wp-block-leat-spend-rules-checkout .leat-item .leat-spend-rule-card__label--no-description {
  font-size: 14px;
}
.wp-block-leat-spend-rules-checkout .leat-item .leat-item__description {
  font-size: 13px;
}
.wp-block-leat-spend-rules-checkout .leat-spend-rule-card__progress {
  margin-top: 12px;
}
.wp-block-leat-spend-rules-checkout .leat-button--small {
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
}
.wp-block-leat-spend-rules-checkout .leat-item__badge {
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 12px;
}
.wp-block-leat-spend-rules-checkout .leat-item__success {
  margin-top: 12px;
  padding: 8px;
  background: #d4edda;
  border-radius: 4px;
  color: #155724;
  font-size: 13px;
  text-align: center;
}
.wp-block-leat-spend-rules-checkout .leat-item__meta--coupon-code {
  margin-top: 8px;
}

.wc-block-checkout .wp-block-leat-spend-rules-checkout {
  background: #fff;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.wc-block-checkout .wp-block-leat-spend-rules-checkout:not(:last-child) {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .leat-rewards-checkout-tabs__list {
    flex-wrap: nowrap;
  }
  .leat-rewards-checkout-tabs__trigger {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wp-block-leat-spend-rules-checkout .leat-spend-rules-checkout__grid {
    gap: 12px;
  }
  .wp-block-leat-spend-rules-checkout .leat-item .leat-item__content {
    padding: 10px;
  }
}
.leat-checkout-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
.leat-checkout-list::-webkit-scrollbar {
  width: 5px;
}
.leat-checkout-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}
.leat-checkout-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.leat-checkout-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.leat-checkout-list {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

.leat-checkout-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.15s ease;
}
.leat-checkout-list-item:last-child {
  border-bottom: none;
}
.leat-checkout-list-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.leat-checkout-list-item__media {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #f5f5f5;
  overflow: hidden;
}
.leat-checkout-list-item__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.leat-checkout-list-item__media svg {
  width: 24px;
  height: 24px;
  color: #666;
}
.leat-checkout-list-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.leat-checkout-list-item__label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leat-checkout-list-item__meta {
  font-size: 12px;
  color: #666;
  margin: 0;
}
.leat-checkout-list-item__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}
.leat-checkout-list-item__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.leat-checkout-list-item .leat-button--compact {
  padding: 6px 12px;
  font-size: 13px;
  min-width: 70px;
}
.leat-checkout-list-item--disabled {
  opacity: 0.6;
}
.leat-checkout-list-item--disabled .leat-checkout-list-item__label {
  color: #999;
}
.leat-checkout-list-item--applied {
  background-color: rgba(0, 208, 132, 0.08);
}
.leat-checkout-list-item--applied .leat-checkout-list-item__label {
  color: #155724;
}
.leat-checkout-list-item__error {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
}
.leat-checkout-list-item__success {
  font-size: 12px;
  color: #155724;
  margin-top: 4px;
}

.leat-checkout-list-item__progress {
  width: 100%;
  margin-top: 4px;
}
.leat-checkout-list-item__progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
.leat-checkout-list-item__progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.leat-checkout-list-item__progress-text {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .leat-checkout-list-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
    gap: 8px;
  }
  .leat-checkout-list-item__media {
    margin: 0 auto;
  }
  .leat-checkout-list-item__content {
    align-items: center;
  }
  .leat-checkout-list-item__label {
    white-space: normal;
    text-align: center;
  }
  .leat-checkout-list-item__action {
    justify-content: center;
    margin-top: 8px;
  }
  .leat-checkout-list-item .leat-button--compact {
    width: 100%;
  }
}