.calc-credit-field {
  position: relative;
  margin: 0 0 20px;
}
.calc-credit-field__label {
  position: absolute;
  top: -10px;
  left: 7px;
  padding: 0 5px;
  font-size: 14px;
  background-color: #fff;
  color: #777777;
}
.calc-credit-field__icon {
  position: absolute;
  top: 11px;
  right: 12px;
}

.calc-credit, .calc-credit *, .calc-credit :before, .calc-credit :after {
  box-sizing: border-box;
}

.ui-widget-header {
  border-color: #fff;
  background-color: #fff;
}

.ui-datepicker {
  font-size: 16px;
}

.ui-datepicker-calendar thead th {
  font-weight: 300;
  color: #333e50;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
  border-color: #fff;
  background-color: #fff;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
  color: #2ab5c4;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
  border-top-color: #2ab5c4 !important;
  border-right-color: #2ab5c4 !important;
  border-bottom-color: #2ab5c4 !important;
  border-left-color: #2ab5c4 !important;
  color: #000;
}

.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
  border-bottom: none;
}

.ui-datepicker .ui-datepicker-prev span {
  transform: rotate(90deg);
}

.ui-datepicker .ui-datepicker-next span {
  transform: rotate(-90deg);
}

.ui-widget-header .ui-icon {
  width: 15px;
  height: 15px;
  background: rgba(0, 0, 0, 0) url(../images/icon-arrow.svg) no-repeat 50% 50%;
}

.ui-state-default, .ui-widget-content .ui-state-default {
  padding: 5px 0;
  text-align: center;
}

.ui-state-active, .ui-widget-content .ui-state-active {
  border-color: #28467f;
  border-radius: 5px;
  background-color: #28467f;
  color: #fff;
}

.ui-datepicker table {
  border: none !important;
}

.calc-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-credit-col:first-child {
  padding-right: 5px;
  width: 65%;
}

.calc-credit-col:last-child {
  padding-left: 5px;
  width: 35%;
}

.calc-credit-input {
  padding: 12px !important;
  width: 100% !important;
  border: 1px solid #dadee2 !important;
  border-radius: 3px !important;
  font-size: 16px !important;
  background-color: #fff !important;
  color: #333e50 !important;
  transition: all 0.25s !important;
}
.calc-credit-input:focus {
  outline: 0 !important;
}

.calc-credit-datepicker {
  padding-right: 44px !important;
  cursor: pointer !important;
}

.calc-credit-icon {
  color: #c6cbd2;
}

.calc-credit-icon-calendar {
  width: 18px;
  height: 22px;
}

.calc-credit {
  display: flex;
  margin: 0 0 30px;
  border: 1px solid #e8ecef;
  border-radius: 5px;
}

.calc-credit-filter {
  padding: 20px 30px;
  width: 40%;
  border-right: 1px solid #e8ecef;
}

.calc-credit-result {
  padding: 25px 30px 15px 30px;
  width: 60%;
  background-color: #f0f0f0;
}
.calc-credit-result__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}
.calc-credit-result__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-credit-result__left {
  padding: 0 40px 0 0;
  width: calc(100% - 240px);
}
.calc-credit-result__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 240px;
}
.calc-credit-result__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #dadee2;
  font-size: 16px;
}
.calc-credit-result__row > div:first-child {
  color: #333e50;
}
.calc-credit-result__row > div:last-child {
  color: #333e50;
}

.calc-credit-button {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 10px auto 0 !important;
  padding: 11px 40px 12px !important;
  border: 1px solid #E04E39 !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  font-weight: normal !important;
  text-transform: none !important;
  text-align: center !important;
  background-color: #E04E39 !important;
  color: #FFFFFF !important;
  outline: 0 !important;
  transition: all 0.25s !important;
  cursor: pointer !important;
}
.calc-credit-button:hover, .calc-credit-button:active, .calc-credit-button:focus {
  text-decoration: none !important;
}
.calc-credit-button__icon {
  margin-right: 8px;
  color: #FFFFFF;
}

.calc-credit-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 190px;
  height: 190px;
  border: 10px solid #E04E39;
  border-radius: 50%;
  font-size: 16px !important;
  color: #333e50;
}
.calc-credit-circle > div {
  margin-top: 5px;
  font-size: 18px !important;
  text-align: center;
  color: #333e50;
}

.calc-credit-modal {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999;
}
.calc-credit-modal-outer {
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
}
.calc-credit-modal-close {
  position: absolute;
  top: 3px;
  right: 10px;
  font-size: 30px;
  opacity: 0.3;
  cursor: pointer;
}
.calc-credit-modal-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
}
.calc-credit-modal-container {
  padding: 30px 0 0;
  height: 80vh;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  background: #fff;
}
.calc-credit-modal__title {
  padding: 0 30px;
  font-size: 18px;
  font-weight: 700;
  color: #333e50;
}
.calc-credit-modal__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 21px);
}

.calc-credit-table {
  overflow-y: auto;
}
.calc-credit-table__row {
  display: flex;
  border-bottom: 1px solid #e9edf0;
}
.calc-credit-table__col {
  padding: 20px 10px;
  width: 25%;
  font-size: 14px;
  white-space: nowrap;
  color: #777777;
}
.calc-credit-table__col:first-child {
  padding-left: 30px;
}
.calc-credit-table__col:last-child {
  padding-right: 30px;
}
.calc-credit-table__col span {
  font-size: 16px;
  color: #333e50;
}

.calc-credit-modal-total {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e9edf0;
  background-color: #f0f0f0;
}
.calc-credit-modal-total:before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to bottom, rgba(241, 244, 247, 0) 0, #f0f0f0 100%);
}
.calc-credit-modal-total__item {
  padding: 0 10px;
  width: 100%;
  font-size: 18px;
  white-space: nowrap;
  color: #333e50;
}
.calc-credit-modal-total__item:first-child {
  padding-left: 30px;
}
.calc-credit-modal-total__item:last-child {
  padding-right: 30px;
}
.calc-credit-modal-total__item span {
  padding-bottom: 5px;
  font-size: 14px;
  color: #777777;
}

.calc-credit-message {
  display: none;
  position: absolute;
  top: -37px;
  left: 50%;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 14px;
  white-space: nowrap;
  background: #fff;
  color: #000;
  opacity: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, 0);
  transition: opacity 0.2s;
  pointer-events: none;
}
.calc-credit-message:before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  border-style: solid;
  border-width: 7px 7px 0 7px;
  border-color: #fff transparent transparent transparent;
}

.calc-credit-mobile {
  display: none;
}

@media (max-width: 1120px) {
  .calc-credit {
    display: block;
  }

  .calc-credit-filter {
    width: 100%;
  }

  .calc-credit-result {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .calc-credit-result__body {
    flex-direction: column;
  }

  .calc-credit-result__left {
    padding-right: 0;
    width: 100%;
  }

  .calc-credit-result__right {
    order: -1;
    margin-bottom: 20px;
    width: 100%;
  }
}
@media (max-width: 680px) {
  .calc-credit-mobile {
    display: block;
  }

  .calc-credit-table__row-header {
    display: none;
  }

  .calc-credit-table__row:not(.calc-credit-table__row-header) {
    display: block;
  }

  .calc-credit-table__col {
    padding: 10px 30px !important;
    width: 100%;
    color: #333e50;
  }
  .calc-credit-table__col > span:first-child {
    color: #777777;
  }
}
@media (max-width: 560px) {
  .calc-credit-modal-total__item:first-child {
    display: none;
  }
}
@media (max-width: 540px) {
  .calc-credit-modal-total {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .calc-credit-modal-total__item {
    margin-bottom: 5px;
  }
}
@media (max-width: 450px) {
  .calc-credit-field__label {
    font-size: 12px;
  }

  .calc-credit-filter {
    padding-right: 10px;
    padding-left: 10px;
  }

  .calc-credit-button {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}
