/**
 * Skip & Pause Card Styles
 *
 * Styles for the SkipPauseCard component used in subscription detail page.
 *
 * @package ArraySubs
 */

.arraysubs-skip-pause-card {
  // Section within the card
  .arraysubs-skip-pause-section {
    padding: 12px 0;
    border-bottom: 1px solid #eee;

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

    &:first-child {
      padding-top: 0;
    }

    &__title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #1e1e1e;
      margin: 0 0 12px 0;
    }
  }

  // Status boxes
  .arraysubs-status-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 4px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;

    > .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      white-space: nowrap;
    }

    &__content {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      flex: 1;

      > svg {
        flex-shrink: 0;
        margin-top: 2px;
      }

      > div {
        flex: 1;

        strong {
          display: block;
          margin-bottom: 4px;
        }

        p {
          margin: 0;
          font-size: 12px;
          color: #757575;
          line-height: 1.5;
        }
      }
    }

    &__actions {
      display: flex;
      flex-direction: column;
      gap: 6px;

      .button {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
      }
    }

    // Variants
    &--info {
      background: #f0f6fc;
      border-color: #c5d9ed;

      > svg,
      .arraysubs-status-box__content > svg {
        color: var(--arraysubs-fb-primary-color, #0073aa);
      }
    }

    &--warning {
      background: #fcf9e8;
      border-color: #e5d7a3;

      > svg,
      .arraysubs-status-box__content > svg {
        color: #826200;
      }
    }

    &--paused {
      background: #f0f0f1;
      border-color: #c3c4c7;

      > svg,
      .arraysubs-status-box__content > svg {
        color: #646970;
      }
    }

    &--disabled {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #f0f0f1;
      border-color: #dcdcde;
      color: #646970;
    }

    // Responsive
    @media (max-width: 600px) {
      flex-direction: column;
      align-items: stretch;

      &__actions {
        flex-direction: row;
        justify-content: flex-end;
      }
    }
  }

  // Pause history summary
  .arraysubs-pause-history-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dcdcde;
    font-size: 12px;
    color: #646970;
  }

  // Loading state
  .arraysubs-loading-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #646970;
    padding: 20px 0;
    justify-content: center;
  }
}

// Modal actions
.arraysubs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dcdcde;

  .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

// Spin animation
.arraysubs-spin {
  animation: arraysubs-spin 1s linear infinite;
}

@keyframes arraysubs-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
