/**
 * Customer Portal Subscription Notes Styles
 *
 * @package ArraySubs
 */

.subscription-notes {
  margin-top: 2em;

  h3 {
    margin-bottom: 1em;
    font-size: 1.1em;
    font-weight: 600;
  }
}

.subscription-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 900px;
  overflow-y: auto;
  background: #fff;
}

.subscription-note {
  padding: 1em;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  margin-bottom: 8px;

  &:last-child {
    border-bottom: none;
  }

  &--system {
    background-color: #f8f9fa;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background-color: #2271b1;
    }
  }

  &__content {
    margin-bottom: 0.5em;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;

    p {
      margin: 0 0 0.5em 0;

      &:last-child {
        margin-bottom: 0;
      }
    }

    a {
      color: #2271b1;
      text-decoration: underline;

      &:hover {
        color: #135e96;
      }
    }

    ul,
    ol {
      margin: 0.5em 0;
      padding-left: 1.5em;
    }
  }

  &__meta {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
  }

  &__author-name {
    font-size: 0.85em;
    color: #666;
  }

  &__author-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.7em;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;

    &--system {
      background: #d5e5fa;
      color: #1d4f91;
    }

    &--admin {
      background: #e8e2ff;
      color: #5b35b0;
    }

    &--customer {
      background: #d1f3d9;
      color: #006908;
    }

    &--gateway {
      background: #e7f3ff;
      color: #0a66c2;
    }
  }

  &__date {
    font-size: 0.85em;
    color: #666;
  }
}

// Mobile responsive
@media (max-width: 600px) {
  .subscription-note {
    padding: 0.75em;

    &__content {
      font-size: 0.9em;
    }

    &__date {
      font-size: 0.8em;
    }
  }
}
