.er-list {
  border: 1px solid #aaa;
  width: 100%;
  min-width: 350px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  color: #333;
  border-radius: 0.4rem 0.4rem 0 0;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.er-list-head {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #999;
  background: #16a14b;
  color: white;
}

.er-list-head span {
  width: 120px;
  background: transparent;
  text-align: center;
  display: inline-block;
  padding: 5px 12px;
  word-break: keep-all;
  white-space: nowrap;
}

.er-list-head span:nth-child(3),
.er-list-head span:nth-child(4) {
  width: 80px;
}

.er-list-body {
  width: 100%;
  margin: 0;
  padding: 0;
}

.er-list-row {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 14px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #aaa;
}

.er-list-row:nth-child(odd) {
  background: #eee;
  color: #222;
}

/* .er-list-row:last-child {
  border: none;
} */

.er-list-row span {
  text-align: center;
  width: 120px;
  padding: 5px 12px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-weight: bold;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.er-list-row span:nth-child(1) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.er-list-row span:nth-child(2) {
  color: #2c9d58;
}

.er-list-row span:nth-child(3) {
  color: #257e66;
  justify-content: flex-end;
  width: 80px;
}

.er-list-row span:nth-child(4) {
  justify-content: flex-end;
  width: 80px;
}

.er-list-row span img {
  width: 30px !important;
  height: auto;
  background-color: transparent;
  margin-right: 10px;
}

#er-show-hide-all {
  width: 100%;
  background: #ffd64f;
  color: #333;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 6px 8px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.er-calculator {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 350px;
  width: 100%;
  max-width: 0 auto;
  margin: 0 0 10px 0;
  background-color: #16a14b;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  box-sizing: border-box;
  border-radius: 0 0 0.4rem 0.4rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.er-calculator-title {
  margin: 0 0 5px 0;
  font-size: 15px;
  color: #1967d2;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
}

.er-calc-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  margin: 0 0 10px 0;
  width: 100%;
}

.er-calc-form .header {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 0 5px 0;
}

.er-calc-form .header label {
  margin: 0 0 5px 0;
  padding: 0;
  font-weight: normal;
}

/* .er-calc-form .header .er-calc-currency-icon {
  width: 45px;
  height: 38px;
  border-radius: 5px;
  background: transparent;
  outline: none;
  cursor: not-allowed;
} */

.er-calc-form .header #er-calc-currency-selector {
  background: white;
  color: #333;
  font-size: 15px;
  width: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
  text-align: center;
  border-radius: 0.4rem;
}

.er-calc-form .header #er-calc-currency-selector:hover {
  border-color: #1967d2;
}

.er-calc-form .footer {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.er-calc-form .footer p {
  margin: 0;
  padding: 0;
  width: 100%;
  color: #eee;
}

.er-calc-modes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}

.er-calc-modes>div {
  width: 48%;
  overflow: hidden;
  border-radius: 5px;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
}

.er-calc-modes .er-calc-equal-value {
  background: transparent;
  width: 45px;
  text-align: center;
  color: #444;
  align-self: flex-end;
  height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.er-calc-modes .er-calc-equal-value p {
  margin: 0;
  padding: 0;
}

.er-calc-modes .er-calc-equal-value p#er-calc-equal-value-amount {
  font-size: 12px;
  color: #eee;
}

/* .er-calc-modes>div .er-calc-mode-descr {
  font-size: 13px;
  text-align: center;
  font-weight: normal;
  color: #eee;
  margin: 5px 0 5px 0;
  line-height: 18px;
} */

.er-calc-modes>div .input-field-container {
  width: calc(100% - 4px);
  border-radius: 0.4rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  padding: 10px;
  box-sizing: border-box;
  margin: 10px 2px 0 2px;
  background: white;
  height: 95px;
}

.input-field-container p {
  margin: 0 0 5px 0;
  font-size: 12px;
}

.input-field-container input {
  width: 100%;
  border: none;
  background: #eee;
  outline: none;
  font-size: 14px;
  padding: 5px;
  border-radius: 0.4rem;
  color: #333;
  font-weight: bold;
  text-align: right;
}

.input-field-container input:disabled {
  cursor: not-allowed;
}

.input-field-container #result-currency-name,
.input-field-container #required-currency-name {
  font-weight: bold;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.er-calc-mode-chagner-btn {
  box-sizing: border-box;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 0.4rem;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  color: #555;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.er-calc-mode-chagner-btn.active-mode {
  background: white;
  color: #333;
}

.er-calc-date-time {
  color: #333;
  font-size: 15px;
  font-weight: bold;
  width: 100%;
  min-width: 350px;
  margin: 0 auto;
  padding: 10px 0;
  box-sizing: border-box;
  color: #333;
  border-radius: 0.4rem 0.4rem 0 0;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  text-align: center;
}



@media screen and (max-width: 400px) {

  .er-list {
    width: 280px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .er-list-row,
  .er-list-head,
  .er-list-row span,
  .er-list-head span {
    font-size: 12px !important;
  }

  .er-list-row span img {
    height: 20px !important;
    width: 20px !important;
  }

  .er-list-row span,
  .er-list-head span {
    width: 100px;
  }

  .er-calculator {
    width: 280px;
    margin: 0 auto;
  }

  .input-field-container input {
    font-size: 13px;
  }

  .er-calc-mode-chagner-btn {
    font-size: 13px;
  }

  .input-field-container #result-currency-name,
  .input-field-container #required-currency-name {
    font-size: 13px;
  }

  .er-calc-form .header #er-calc-currency-selector {
    font-size: 13px;
  }

  .er-calc-date-time {
    font-size: 14px;
  }

}
