@use 'spectre-css/variables';

.account,
.account-home-index,
.account-holds-index,
.appointment-form {
  .rule-list {
    @media all and (min-width: 841px) {
      margin-left: 2rem;
    }
    @media all and (max-width: 840px) {
      margin-top: 2rem;
    }
    ul {
      list-style: outside;
    }
  }

  .loan-summary,
  .hold-summary {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .loan-list,
  .hold-list {
    margin: 0;
    list-style: none outside;
    li {
      margin-bottom: 1rem;
      padding-bottom: 1rem;
    }
    .image {
      float: left;
      width: 8rem;
      height: 100%;
      padding-right: 0.8rem;
      img {
        max-width: 100%;
      }
    }
    .item {
      font-size: 0.9rem;
    }
    .status {
      display: block;
    }
    .pickup {
      display: block;
    }
    .actions {
      margin-top: 0.8rem;
      form {
        margin-top: 0.5rem;
      }
      .message {
        margin-right: 0.5rem;
      }
    }
    @media all and (max-width: 840px) {
      .image {
        width: 25%;
      }
      .actions {
        width: 100%;
      }
    }
  }
}

.account-appointments-index {
  .section-header {
    align-items: center;
  }
  .appointment-list {
    margin: 0;
  }
  .appointment {
    margin-top: 1rem;
    list-style: none outside;
    h3 {
      line-height: 1.2rem;
    }
    .schedule {
      display: flex;
      justify-content: space-between;
      .time {
        font-size: 0.9rem;
        color: variables.$gray-color;
      }
      .actions {
        text-align: right;
        form {
          display: inline-block;
        }
      }
    }
  }
}

.account .appointment-form {
  margin-top: 1rem;
  .status {
    margin-left: 1.8rem;
  }
}

.account .cancel-appointment {
  margin-top: 2rem;
}
