@import '../../../../../assets/scss/variables';

.customer-edit-container {
  background-color: white;
  width: 100%;
  border-radius: 4px;
  font-family: 'Open Sans';
  line-height: 21px;
  height: 100%;
}

.customer-section-edit-description {
  font-size: 22px;
  width: 359px;
  padding-top: 15px;
  text-align: center;
}

.history-button {
  position: absolute;
  right: 0;
  margin-top: -10px;
}

.creation-data {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 165px 1fr;
  padding-left: 20px;

  .labels,
  .data {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .data span {
    font-weight: bold;
  }
}

.not-editable {
  font-size: 18px;
  color: #939ca5;
  padding-right: 25px;
}

.edit-wrapper {
  margin-top: 35px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;

  form {
    width: 100%;
  }

  input {
    -webkit-text-fill-color: black;
    -webkit-opacity: 1;
    color: black;
    font-family: 'Open Sans';
  }

  .invalid-feedback {
    position: absolute;
    width: 285px;
    text-align: right;
    right: 125px;
    animation: shake 0.3s cubic-bezier(0.7, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
    font-size: 14px;
    font-weight: bold;
    color: $hima-error-msg-color;
  }

  .error-message {
    animation: shake 0.3s cubic-bezier(0.7, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
    position: absolute;
    left: 45%;
    font-size: 14px;
    font-weight: bold;
    color: $hima-error-msg-color;
  }

  .error-visible {
    width: 65%;
  }

  .input {
    font-family: 'Open Sans';
    padding: 15px 0;
    border: none;
    font-size: 16px;
    color: black;
    opacity: 1;
    text-align: left;
    line-height: 21px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    caret-color: #f70400;
  }

  .input-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 75%;
  }

  .line-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  input:focus {
    outline: none;
    border: none;
  }

  input:disabled {
    background-color: transparent;
  }

  label {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    line-height: 21px;
    padding-left: 20px;
    white-space: nowrap;
    padding-right: 15px;
  }

  .clear-icon {
    height: 23px;
    width: 23px;
    padding-right: 10px;
  }

  .btn-container {
    text-align: center;
    margin-top: 1.8rem;
    margin-bottom: 2rem;
  }
}

.title-text {
  font-size: 22px;
  width: 359px;
  text-align: center;
  margin: 15px auto 15px auto;
  font-weight: normal;
}

.additional {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 135px 0 30px 0;

  .data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 25px 0 0;

    span {
      font-weight: bold;
      color: #557596;
      font-size: 16px;
    }
  }
}

.fixed-card-container {
  border-radius: 5px;
}

@keyframes shake {
  10% {
    transform: translate3d(-1px, 0, 0);
  }

  50% {
    transform: translate3d(2px, 0, 0);
  }

  70% {
    transform: translate3d(-3px, 0, 0);
  }

  90% {
    transform: translate3d(3px, 0, 0);
  }
}

/* 
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .additional {
    margin: 135px 0 30px 0;
  }
}

/* 
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .additional {
    margin: 135px 0 30px 0;
  }
}

/* 
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .additional {
    margin: 155px 0 30px 0;
  }
}
