.machine-card {
  background-color: var(--gray-soft-lightest);
  border: 1px solid var(--gray-soft-dark);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;

  &.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 29, 29, 0.5);
    border-radius: 6px;
    margin: -1px;
    z-index: 1;
  }

  &.loading::after {
    content: '\f1ce';
    font-family: 'Font Awesome 5 Free';
    text-align: center;
    font-weight: 900;
    position: absolute;
    width: 100%;
    font-size: 4em;
    top: 110px;
    color: white;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    100% { transform: rotate(360deg);}
  }

  .machine-picture {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    cursor: pointer;
    padding: 0;
    color: #333333;
    border-bottom: 1px solid #ebebeb;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;

    &.no-picture {
      background-image: url('../../../../images/default-image.png');
    }
  }

  .machine-name {
    text-align: center;
    padding: 15px;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #000;
    margin: 0;
    height: 4em;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .machine-actions {
    padding: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: center;
    display: flex;

    & > span {
      width: 50%;

      & > button {
        border: none !important;
        padding: 15px 12px;
        display: block;
        width: 100%;
        background-color: #fbfbfb;
        margin-bottom: 0;
        font-weight: normal;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        font-size: 16px;
        line-height: 1.5;
        border-radius: 4px;
        color: var(--main);

        & > i {
          margin-right: 5px;
        }

        &.reserve-button {
          border-right: 1px solid #dddddd !important;
        }
      }

    }
  }

  &.disabled {
    opacity: 0.5;
  }

  &.disabled,
  &.unreservable {
    .machine-actions > span {
      width: 100%;
    }
  }
}
