.loyalty-widget {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  min-width: 200px;

  &--loading {
    .skeleton-line {
      height: 14px;
      background: linear-gradient(90deg, #f5f5f5 25%, #eeeeee 50%, #f5f5f5 75%);
      background-size: 200% 100%;
      animation: shimmer 1.2s infinite;
      border-radius: 4px;
      margin-bottom: 10px;

      &.short { width: 60%; }
    }

    @keyframes shimmer {
      to { background-position: -200% 0; }
    }
  }

  &--empty {
    color: #9e9e9e;
    font-size: 13px;
    text-align: center;
  }

  .expiry-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #e65100;
    margin-bottom: 12px;

    .warn-icon { font-size: 14px; }
  }

  .widget-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tier-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;

    &--silver   { background: #e0e0e0; color: #424242; }
    &--gold     { background: #fff8e1; color: #f57f17; border: 1px solid #ffd54f; }
    &--platinum { background: #e8eaf6; color: #283593; }
    &--default  { background: #f5f5f5; color: #616161; }
  }

  .points-row {
    display: flex;
    align-items: baseline;
    gap: 6px;

    .points-value { font-size: 28px; font-weight: 700; color: #1976d2; line-height: 1; }
    .points-label { font-size: 13px; color: #616161; }
  }

  .currency-value {
    font-size: 13px;
    color: #388e3c;
    font-weight: 500;
  }

  .expiry-row {
    font-size: 12px;
    color: #757575;

    .expiry-label { margin-right: 4px; }
    .expiry-soon  { color: #e65100; font-weight: 600; }
  }
}
