@import "src/assets/styles/responsive-base.scss";

:host{
  display: flex;
  height: 100%;

  >div{
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;

    >div{
      position: absolute;
    }
  }
}

form{
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

#products-container {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 10px;
  row-gap: 10px;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
}

.form-radio-button {
  margin: 10px 0;
}

.form-title{
  font-size: 16px;
}
.form-description{
  font-size: 12px;
  .smaller{
    font-size: 10px;
  }
}

.mat-error{
  font-size: 12px;
}

.license-form-row{
  margin-bottom: 20px;
  &:last-of-type{
    margin-bottom: 0;
  }

  &.tax-errors{
    .mat-card-title{
      font-size: 14px;
      margin-bottom: 0;
    }
    .mat-list-item{
      font-size: 12px;
      height: unset;
    }
  }

  &.discount-row{
    display: flex;
    .mat-form-field{
      padding-right: 26px;
    }
    button{
      font-size: 12px;
    }

    @include screen('phone'){
      flex-direction: column;
    }
  }

  &.inverse{
    .mat-card-title{
      font-size: 16px;
    }
    p{
      font-size: 12px;
      text-align: justify;
    }
  }
}
.one-row{
  margin-top: 10px;
  display: flex;
  align-items: center;
  .one-row-button{
    padding-bottom: 1.34375em;
    padding-left: 20px;
    button{
      font-size: 12px
    }
  }

  @include screen('phone'){
    flex-direction: column;
  }
}
.form-radio-extra-input{
  margin-top: 10px;
}
.button-row{
  text-align: right;
  margin-top: 20px;
  button{
    margin: 0 10px;
  }
}

.explain-row{
  display: block;
  margin-bottom: 5px;
  &:first-of-type{
    margin-top: 10px;
  }
}

.order-info-col{
  display: flex;
  flex-direction: column;
  
  >label{
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-size: 12px;
  }
  >span{
    max-width: 400px;
    font-size: 12px;
    padding-bottom: 5px;
  }
  >small{
    font-size: 10px;
    padding-bottom: 5px;
  }
  
  a{
    text-decoration: underline;
    cursor: pointer;
    display: block;
    margin-top: 10px;
  }
}

.margin-top{
  margin-top: 10px;
}

.price-row{
  margin-left: 10px;
  margin-top: 10px !important;
  font-size: 16px;
}
.discount-row{
  font-size: 12px;
  margin-top: 5px;
  margin-left: 10px;
  @include screen('phone'){
    margin-left: 0;
  }
  
}
.checkout-button{
  a{
    color: inherit;
    text-decoration: none;
  }
}
.simple-pay-icon{
  max-height: 40px;
}
#simple-pay-logo-container{
  text-align: center;
  margin-top: 10px;
  
  img{
    max-width: 300px;
    width: 100%;
  }
}
.payment-button-row{
  text-align: right;
}
.payment-button-row-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  @include screen('phone'){
    flex-direction: column;

    .payment-row-image{
      margin-bottom: 10px;
    }
  }
}

.tax-row{
  display: flex;
  align-items: center;
  .tax-prefix{
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    padding-bottom: 3px;
    padding-right: 2px;
  }
}