@charset "UTF-8";
/**
 * 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;
}

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

/**
 * 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: left;
  gap: 2px;
}
.leat-earn-rules-list__grid .leat-item .leat-item__label {
  margin: 0;
  min-height: 0;
  display: block;
  text-align: left;
  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-left: 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;
}