input.cvv::-moz-selection {
  color: transparent;
  background: transparent;
}

input.cvv::selection {
  color: transparent;
  background: transparent;
}

input.flatnumber::-webkit-outer-spin-button,
input.flatnumber::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.flatnumber {
  -moz-appearance: textfield;
}

html,
body {
  height: 100%;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
}
body,
p,
td {
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  font-size: 1rem;
}

.merchant-payment-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  color: #000000;
}

.merchant-payment-header {
  height: 70px;
  background: #4cb5ae;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 20px #333333;
  font-size: 21px;
  font-weight: bold;
  color: #ffffff;
  padding: 0 30px 0 6%;
  position: relative;
}

#merchant-logo {
  max-height: 50px;
  margin-right: 10px;
}
#merchant-platform {
  max-height: 40px;
}

#signature {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

#signature canvas {
  width: 250px;
  height: 250px;
  border: 1px solid #000;
}

#signature-pad-clear {
  cursor: pointer;
  color: #060043;
  border: none;
  outline: none;
  background: none;
}

.signature-top {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.content-wrapper {
  background-image: url('./main-bg.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto 100%;
  flex-grow: 1;
  padding: 60px 30px 60px 6%;
}
.content-wrapper.success {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-wrapper.success .message h3 {
  font-size: 21px;
  font-weight: bold;
  margin-top: 40px;
}
.content-wrapper.success .message p {
  font-size: 13px;
  line-height: 16px;
  font-weight: normal;
}
.content-wrapper.success .payment-info .payment-info-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.content-wrapper.success .payment-info .payment-info-row > div:first-child {
  font-size: 13px;
  font-weight: normal;
  color: #575962;
  padding-right: 20px;
  text-align: right;
  width: 120px;
}
.content-wrapper.success .payment-info .payment-info-row > div:last-child {
  font-size: 16px;
  font-weight: bold;
}
.content-wrapper .merchant-payment-steps {
  width: 600px;
  display: none;
}
.content-wrapper .step-navigation {
  display: flex;
  justify-content: space-between;
}
.content-wrapper .step-navigation .btn,
.content-wrapper.success .btn {
  width: 190px;
  background: #4cb5ae !important;
  border-color: #4cb5ae !important;
  font-size: 13px;
  line-height: 20px;
  font-weight: bold;
}
.content-wrapper .step-navigation .btn.btn-back i {
  margin-right: 15px;
}
.content-wrapper .step-navigation .btn.btn-next i {
  margin-left: 15px;
}
.content-wrapper.success .btn {
  min-width: 230px;
  letter-spacing: 1px;
}
.content-wrapper .step-navigation .btn:hover,
.content-wrapper .step-navigation .btn:active,
.content-wrapper .step-navigation .btn:focus,
.content-wrapper.success .btn:hover,
.content-wrapper.success .btn:active,
.content-wrapper.success .btn:focus {
  background: #4cb5ae !important;
  border-color: #4cb5ae !important;
}
.content-wrapper .step-navigation .btn.btn-inverse {
  background: none !important;
  border: none !important;
  color: #4cb5ae;
}
.content-wrapper .step-navigation .btn.btn-inverse:hover {
  color: #4cb5ae;
}
.content-wrapper .step-navigation .btn:disabled {
  background: #b7b7b7 !important;
  border-color: #b7b7b7 !important;
}

#step-1 {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}
#step-1-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-title h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 10px 0;
}

#step-1 .payment {
  width: 380px;
  margin-bottom: 25px;
}

#step-1 .payment-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
#step-1 .payment-row label {
  font-weight: bold;
  margin-right: 15px;
}
#step-1 .payment-row input#amount-input {
  width: 255px;
  text-align: left;
  height: 40px !important;
}
#step-1 .payment-row textarea#comment {
  width: 255px;
  text-align: left;
  resize: none;
}

.merchant-payment-form {
  margin: 0 0 15px;
}
.merchant-payment-form .title {
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.merchant-payment-form .title > h2 {
  font-size: 21px;
  font-weight: bold;
}
.merchant-payment-form .title > div > div {
  text-align: right;
  font-size: 12px;
  margin-top: 10px;
}

.merchant-payment-form .merchant-payment-label {
  font-weight: 600;
  font-size: 13px;
}
.merchant-payment-form .merchant-payment-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.merchant-payment-form .merchant-payment-form-row > div:first-child {
  text-align: right;
  padding: 0 1% 0 0;
  flex-grow: 1;
  width: 25%;
  font-size: 13px;
  font-weight: 600;
}
.merchant-payment-form .merchant-payment-form-row > div:last-child {
  padding: 0 0 0 1%;
  width: 73%;
  display: flex;
  justify-content: space-between;
}
.merchant-payment-form .merchant-payment-form-row > div > div.half {
  width: 150%;
}
.merchant-payment-form .cvv-help i {
  font-size: 1rem;
}

#step-2 .total {
  width: 73%;
  margin-left: 27%;
  font-size: 13px;
  text-align: right;
  border-top: 1px solid #dddddd;
  font-weight: bold;
  padding: 10px 0;
}
#step-2 .total .amount {
  font-size: 16px;
  font-weight: bold;
}

.swal2-modal #payment-logo {
  max-width: 40%;
  margin: 8px 0 20px;
}
.swal2-title {
  font-family: 'Lato', sans-serif;
  color: #000000 !important;
  font-size: 24px !important;
  font-weight: bold !important;
}
.swal2-p {
  font-family: 'Lato', sans-serif;
  color: #000000 !important;
  font-size: 14px !important;
  line-height: 18px;
  font-weight: normal !important;
}
.swal2-cancel {
  font-family: 'Lato', sans-serif;
  background: none !important;
  color: #4cb5ae !important;
}

.merchant-payment-footer {
  font-size: 10px;
  color: #575962;
  text-align: right;
  position: absolute;
  right: 30px;
  bottom: 25px;
}
.merchant-payment-footer img {
  margin: -6px 0 0 15px;
  height: 30px;
}

/* ------------------------------ */
/* ----------- MOBILE ----------- */
/* ------------------------------ */

html#merchant-payment-mobile,
html#merchant-payment-mobile body {
  height: 100vh;
  font-size: 1rem;
}

#merchant-payment-mobile .merchant-payment-header {
  display: none;
}

#merchant-payment-mobile .content-wrapper {
  /* background-image: url('./mobile-main-bg.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain; */
  background-size: cover;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#merchant-payment-mobile .content-wrapper .merchant-payment-steps {
  width: 100%;
  padding: 0 30px;
  margin-bottom: 30px;
}

#merchant-payment-mobile #step-1,
#merchant-payment-mobile .content-wrapper.success > div {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
}
#merchant-payment-mobile .content-wrapper.success > div {
  padding: 0 30px;
}

#merchant-payment-mobile .content-wrapper.success .message {
  text-align: left;
}
#merchant-payment-mobile .content-wrapper.success .message h3 {
  margin-top: 20px;
}

#merchant-payment-mobile .main-title h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0;
}

#merchant-payment-mobile #step-1 .payment {
  text-align: left;
  width: auto;
}
#merchant-payment-mobile #step-1 .payment-row label {
  min-width: 60px;
}

#merchant-payment-mobile #step-1 .payment-row input#amount-input {
  width: 100%;
}
#merchant-payment-mobile #step-1 .payment-row textarea#comment {
  width: 100%;
}

#merchant-payment-mobile .merchant-payment-form {
  margin: 10px 0 30px;
}
#merchant-payment-mobile .merchant-payment-form .merchant-payment-form-row {
  display: block;
}
#merchant-payment-mobile .merchant-payment-form .merchant-payment-form-row.exp-security-wrap {
  display: flex;
  align-items: center;
}
#merchant-payment-mobile .merchant-payment-form .merchant-payment-form-row > div:first-child {
  text-align: left;
  padding: 0 0 2px 0;
  width: 100%;
}
#merchant-payment-mobile .merchant-payment-form .merchant-payment-form-row > div:last-child {
  padding: 0;
  width: 100%;
}
#merchant-payment-mobile .merchant-payment-form .cvv-help i {
  font-size: 1.5rem;
}

#merchant-payment-mobile #step-2 .total {
  width: auto;
  font-size: 13px;
  text-align: left;
  border-top: none;
  border-bottom: 1px solid #dddddd;
  font-weight: normal;
  margin: 50px 0 0;
}
#merchant-payment-mobile #step-2 .total .amount {
  font-size: 13px;
}

#merchant-payment-mobile .merchant-payment-footer {
  position: static !important;
  padding-bottom: 20px !important;
  text-align: center !important;
  display: block !important;
}

.credit-card-fields .cvv-row > div {
  position: relative;
}

.credit-card-fields .cvv-row > div > input,
.credit-card-fields input.mobile-cc-cvc {
  color: transparent !important;
  caret-color: #060043;
}

.credit-card-fields .cvv-placeholder {
  font-size: 13px;
  font-weight: 400;
  line-height: 40px;
  position: absolute;
  height: 40px;
  padding: 0 16px;
  pointer-events: none;
}

/* ------------------------------ */
/* ----------- UTILS ----------- */
/* ------------------------------ */

.highlight {
  color: #4cb5ae;
}

.btn:disabled {
  background: #b7b7b7 !important;
  border-color: #b7b7b7 !important;
}

#merchant-payment-desktop .mobile-only {
  display: none !important;
}
#merchant-payment-mobile .desktop-only {
  display: none !important;
}

input[type='text'].btn,
input[type='number'].btn {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1px 5px;
}

.cvv-help {
  color: #4cb5ae;
}

.toggle-cvv {
  font-size: 15px;
  position: relative;
  z-index: 10;
  margin-right: 12px;
  margin-left: -36px;
  cursor: pointer;
  color: #4cb5ae;
}

.has-error .form-control {
  border-color: #ebedf2 !important;
  color: #495057 !important;
}

.has-error > .form-control {
  border-color: #f25961 !important;
  color: #f25961 !important;
}
