.pay {
  position: relative;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  font-family: "Raleway";
  width: 100%;
  /* CREDIT CARD IMAGE STYLING */
  /* CHANGEABLE CARD ELEMENTS */
  /* FRONT OF CARD */
  /* BACK OF CARD */
  /* FLIP ANIMATION */
}
.close-modal-button{
height: 2em;
}
.layer-card{
width: 100%;
  /* border: 1px solid red; */
  display: flex;
  padding-left: 1em;
  padding-right: 1em;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.pay .cache {
  position: absolute;
    /* display: none; */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background: #000;
  opacity: 0.8;
}
.pay .loading-container p {
  color: #fff;
  padding-top: 10px;
  font-size: 1.8em;
}
.pay .loading-container {
  /* display: none; */
    flex-direction: column;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pay .payment-title {
  width: 100%;
  text-align: center;
  color: #ccc;
  font-size: 1.8em;
}

.pay .form-container .field-container:first-of-type {
  grid-area: name;
}

.pay .form-container .field-container:nth-of-type(2) {
  grid-area: number;
}

.pay .form-container .field-container:nth-of-type(3) {
  grid-area: expiration;
}

.pay .form-container .field-container:nth-of-type(4) {
  grid-area: security;
}

.pay .field-container input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.pay .field-container {
  position: relative;
}

.pay .form-container {
  display: grid;
  grid-column-gap: 10px;
  grid-template-columns: auto auto;
  grid-template-rows: 90px 90px 90px;
  grid-template-areas: "name name" "number number" "expiration security";
  max-width: 400px;
  padding: 20px;
  color: #707070;
}

.pay label {
  padding-bottom: 5px;
  font-size: 13px;
}
.pay input:focus-visible {
  border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    border-top: 1px solid transparent !important;
    border-bottom: 1px solid #aaa;
}
.pay input:focus {
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid #aaa;
}
.pay .button-footer{
  padding-left: 6px;
  padding-right: 6px;

}
.pay .button-footer button.confirm {
  border-color: #03a9f4;
}
.pay .button-footer button.canncel {
  border-color: red;
}
.pay .button-footer button:hover {
  background-color: #ddd;
}
.pay .button-footer button:disabled {
  background-color: #bbb;
  border-color:transparent ;
}
.pay .button-footer button{
  background-color: #fff;
  width: 135px;
  border-radius: 0;
  border: 1px solid;
  padding: 3px;
  font-size: 1.6em;
}
.footer-pay .conditions .input-condition-container{
  display: flex;
  align-items: center;

}
.footer-pay .conditions .input-condition-container label {
  padding: 3px 0px 0 6px;
}
.footer-pay .conditions .input-condition-container input[type="checkbox"] {
  height: 20px;
  width: 20px;
}
.footer-pay .conditions .input-condition-container .agree-condition-container{
  padding: 0 3px;

}

.footer-pay .conditions {
  display: flex;
  
  justify-content: start;
  width: 50%;
  flex-direction: column;
    /* flex-grow: calc(100% - ); */
  }
.footer-pay .ctrl-buttons {
  display: flex;
}
.footer-pay{
  /* border:1px solid red; */
  border-top:  1px solid #ccc;

  align-items: center;
  width: 100%;
  display: flex;
  height: 70px;
  justify-content: space-between;
  flex-direction: row;
}
.pay input {
  margin-top: 3px;
  padding: 15px;
  font-size: 16px;
  width: 100%;
  border-radius: 3px;
  
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid #ccc;
}

.pay .ccicon {
  height: 38px;
  position: absolute;
  right: 6px;
  top: calc(50% - 17px);
  width: 60px;
}

.pay .preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}

.pay .container {
  width: 100%;
  max-width: 400px;
  max-height: 251px;
  height: 54vw;
  padding: 20px;
}

.pay #ccsingle {
  position: absolute;
  right: 15px;
  top: 20px;
}

.pay #ccsingle svg {
  width: 100px;
  max-height: 60px;
}

.pay .creditcard svg#cardfront,
.pay .creditcard svg#cardback {
  width: 100%;
  -webkit-box-shadow: 1px 5px 6px 0px black;
  box-shadow: 1px 5px 6px 0px black;
  border-radius: 22px;
}

.pay #generatecard {
  cursor: pointer;
  float: right;
  font-size: 12px;
  color: #fff;
  padding: 2px 4px;
  background-color: #909090;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

.pay .creditcard .lightcolor,
.pay .creditcard .darkcolor {
  -webkit-transition: fill 0.5s;
  transition: fill 0.5s;
}

.pay .creditcard .lightblue {
  fill: #03a9f4;
}

.pay .creditcard .lightbluedark {
  fill: #0288d1;
}

.pay .creditcard .red {
  fill: #ef5350;
}

.pay .creditcard .reddark {
  fill: #d32f2f;
}

.pay .creditcard .purple {
  fill: #ab47bc;
}

.pay .creditcard .purpledark {
  fill: #7b1fa2;
}

.pay .creditcard .cyan {
  fill: #26c6da;
}

.pay .creditcard .cyandark {
  fill: #0097a7;
}

.pay .creditcard .green {
  fill: #66bb6a;
}

.pay .creditcard .greendark {
  fill: #388e3c;
}

.pay .creditcard .lime {
  fill: #d4e157;
}

.pay .creditcard .limedark {
  fill: #afb42b;
}

.pay .creditcard .yellow {
  fill: #ffeb3b;
}

.pay .creditcard .yellowdark {
  fill: #f9a825;
}

.pay .creditcard .orange {
  fill: #ff9800;
}

.pay .creditcard .orangedark {
  fill: #ef6c00;
}

.pay .creditcard .grey {
  fill: #bdbdbd;
}

.pay .creditcard .greydark {
  fill: #616161;
}

.pay #svgname {
  text-transform: uppercase;
}

.pay #cardfront .st2 {
  fill: #fff;
}

.pay #cardfront .st3 {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
}

.pay #cardfront .st4 {
  font-size: 54.7817px;
}

.pay #cardfront .st5 {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
}

.pay #cardfront .st6 {
  font-size: 33.1112px;
}

.pay #cardfront .st7 {
  opacity: 0.6;
  fill: #fff;
}

.pay #cardfront .st8 {
  font-size: 24px;
}

.pay #cardfront .st9 {
  font-size: 36.5498px;
}

.pay #cardfront .st10 {
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
}

.pay #cardfront .st11 {
  font-size: 16.1716px;
}

.pay #cardfront .st12 {
  fill: #4c4c4c;
}

.pay #cardback .st0 {
  fill: none;
  stroke: #0f0f0f;
  stroke-miterlimit: 10;
}

.pay #cardback .st2 {
  fill: #111;
}

.pay #cardback .st3 {
  fill: #f2f2f2;
}

.pay #cardback .st4 {
  fill: #d8d2db;
}

.pay #cardback .st5 {
  fill: #c4c4c4;
}

.pay #cardback .st6 {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
}

.pay #cardback .st7 {
  font-size: 27px;
}

.pay #cardback .st8 {
  opacity: 0.6;
}

.pay #cardback .st9 {
  fill: #fff;
}

.pay #cardback .st10 {
  font-size: 24px;
}

.pay #cardback .st11 {
  fill: #eaeaea;
}

.pay #cardback .st12 {
  font-family: "Rock Salt", cursive;
}

.pay #cardback .st13 {
  font-size: 37.769px;
}

.pay .container {
  perspective: 1000px;
}

.pay .creditcard {
  width: 100%;
  max-width: 400px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: -webkit-transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
  transition: transform 0.6s, -webkit-transform 0.6s;
  cursor: pointer;
}

.pay .creditcard .front,
.pay .creditcard .back {
  position: absolute;
  width: 100%;
  max-width: 400px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  color: #47525d;
}

.pay .creditcard .back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.pay .creditcard.flipped {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}


/**
 * Extracted from: SweetAlert
 * Modified by: Istiak Tridip
 */
.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
  content: "";
  height: 100px;
  position: absolute;
  background: #ffffff;
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.success-checkmark .check-icon .icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }

  5% {
    transform: rotate(-45deg);
  }

  12% {
    transform: rotate(-405deg);
  }

  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* end success */


.success{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}



.inner {
  margin: 15px;
  padding: 10px;
  /* border: 1px solid #ccc; */
  background: #f5f5f53d;
  box-shadow: #0e0e0e 1px 4px 9px;
  /* border-radius: 10px; */
}

.info {
  padding: 10px;
  width: 86%;
  margin: auto;
}

.reclamation {
  cursor: pointer;
  border-radius: 5px;
  background: rgb(243, 6, 53);
  color: #fff;
  padding: 8px;
}
.bbp{
  background: #369AD4;
    cursor: pointer;
    border-radius: 5px;
    color: #fff;
    padding: 9px;
}
.retour {
  cursor: pointer;
  border-radius: 5px;
  background: green;
  color: #fff;
  padding: 9px;
}

.retour:hover {
  text-decoration: none;
  color: #fff;
  background: rgb(74, 233, 74);
}

.reclamation:hover {
  text-decoration: none;
  color: #fff;
  background: rgb(216, 26, 64);
}
.reject {
  background: rgb(245, 94, 131);
}
.en_cours {
  background: #eee;
}
.valid {
  background: rgb(120, 216, 149);
}
.message-done,.success{

  padding: 10px 10px 10px 10px;
}
/* payment buttons */
.payment-button span.icon {
  background-image: url(../img/bmci-transparent.png);
  background-size: cover;
  width: 35px;
  height: 35px;
}
.payment-button span.text {
  padding-left: 10px;
  color: #fff;
}
.payment-button:hover {
  text-decoration: none;
  background-color: #17a072;
}
.payment-button {
  cursor: pointer;
  text-decoration: none;
  background-color: #16b072;
  margin-bottom: 10px;
  border-radius: 2px;
  height: 45px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  /* border: 1px solid red; */
}

/* payment buttons */
.bp-button span.icon {
  background-image: url(../img/bp-transparent.png);
  background-size: cover;
  width: 200px;
  height: 35px;
}

.bp-button span.text {
  padding-left: 10px;
  color: #fff;
}

.bp-button:hover {
  text-decoration: none;
  background-color: #ccc;
}

.bp-button {
  border: 1px solid #369AD4;
  cursor: pointer;
  text-decoration: none;
  background-color: #eee;
  margin-bottom: 10px;
  border-radius: 2px;
  height: 45px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  /* border: 1px solid red; */
}

/* input css */
.done{
  display: block;
  width: 100%;
  text-align: center;
  font-size: 24px;
}
.done-payment { margin:10px auto; display: none;}
.done-payment span.title{
  margin-top: 10px;
  width: 100%;
  text-align: center;
  font-size: 24px;
  display: block;
}
.response-done{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-left: 2em;
  padding-right: 2em;

}
.message-done{
  width: 100%;
  padding-left: 2em;
  padding-right: 2em;
}
.message-done p{
  font-size: 1.6em;
    color: #aaa;
    font-style: italic;
    text-align: center;
}


.float-input {
  padding: 5px 0px 5px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", Helvetica,
    Arial, sans-serif;
  font-weight: 300;
  margin: 0;
}

.float-input h4 {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  opacity: 0.85;
}

.float-input label {
  font-size: 12.5px;
  color: #000;
  opacity: 0.8;
  font-weight: 400;
}

.float-input form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
}
.float-input form h4 {
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.5);
}
.float-input form h4 span {
  color: black;
  font-weight: 700;
}
.float-input form p {
  line-height: 155%;
  margin-bottom: 5px;
  font-size: 14px;
  color: #000;
  opacity: 0.65;
  font-weight: 400;
  max-width: 200px;
  margin-bottom: 40px;
}

.float-input a.discrete {
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
  border-bottom: solid 1px rgba(0, 0, 0, 0);
  padding-bottom: 4px;
  margin-left: auto;
  font-weight: 300;
  transition: all 0.3s ease;
  margin-top: 40px;
}
.float-input a.discrete:hover {
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

.float-input button {
  -webkit-appearance: none;
  width: auto;
  min-width: 100px;
  border-radius: 24px;
  text-align: center;
  padding: 15px 40px;
  margin-top: 5px;

  font-size: 14px;
  margin-left: auto;
  font-weight: 500;
  box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, 0.13);
  border: none;
  transition: all 0.3s ease;
  outline: 0;
}
.float-input button:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px -1px rgba(182, 157, 230, 0.65);
}
.float-input button:hover:active {
  transform: scale(0.99);
}

.float-input input {
  font-size: 16px;
  padding: 20px 0px;
  height: 56px;
  border: none;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  background: #fff;
  width: 280px;
  box-sizing: border-box;
  transition: all 0.3s linear;
  color: #000;
  font-weight: 400;
  -webkit-appearance: none;
}
.float-input input:focus {
  border-bottom: solid 1px #b69de6;
  outline: 0;
  box-shadow: 0 2px 6px -8px rgba(182, 157, 230, 0.45);
}

.float-input .floating-label {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}
.float-input .floating-label label {
  position: absolute;
  top: calc(50% - 7px);
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  padding-left: 5px;
}
.float-input .floating-label input {
  width: calc(100% - 5px);
  margin-left: auto;
  display: flex;
}
.float-input .floating-label .icon {
  position: absolute;
  top: 0;
  left: 0;
  height: 56px;
  width: 44px;
  display: flex;
}
.float-input .floating-label .icon svg {
  height: 30px;
  width: 30px;
  margin: auto;
  opacity: 0.15;
  transition: all 0.3s ease;
}
.float-input .floating-label .icon svg path {
  transition: all 0.3s ease;
}
.float-input .floating-label input:not(:-moz-placeholder-shown) {
  padding: 28px 0px 12px 0px;
}
.float-input .floating-label input:not(:-ms-input-placeholder) {
  padding: 28px 0px 12px 0px;
}
.float-input .floating-label input:not(:placeholder-shown) {
  padding: 28px 0px 12px 0px;
}
.float-input .floating-label input:not(:-moz-placeholder-shown) + label {
  transform: translateY(-10px);
  opacity: 0.7;
}
.float-input .floating-label input:not(:-ms-input-placeholder) + label {
  transform: translateY(-10px);
  opacity: 0.7;
}
.float-input .floating-label input:not(:placeholder-shown) + label {
  transform: translateY(-10px);
  opacity: 0.7;
}
.float-input
  .floating-label
  input:valid:not(:-moz-placeholder-shown)
  + label
  + .icon
  svg {
  opacity: 1;
}
.float-input
  .floating-label
  input:valid:not(:-ms-input-placeholder)
  + label
  + .icon
  svg {
  opacity: 1;
}
.float-input
  .floating-label
  input:valid:not(:placeholder-shown)
  + label
  + .icon
  svg {
  opacity: 1;
}
.float-input
  .floating-label
  input:valid:not(:-moz-placeholder-shown)
  + label
  + .icon
  svg
  path {
  fill: #b69de6;
}
.float-input
  .floating-label
  input:valid:not(:-ms-input-placeholder)
  + label
  + .icon
  svg
  path {
  fill: #b69de6;
}
.float-input
  .floating-label
  input:valid:not(:placeholder-shown)
  + label
  + .icon
  svg
  path {
  fill: #b69de6;
}
.float-input .floating-label input:not(:valid):not(:focus) + label + .icon {
  -webkit-animation-name: shake-shake;
  animation-name: shake-shake;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
}

@-webkit-keyframes shake-shake {
  0% {
    transform: translateX(-3px);
  }
  20% {
    transform: translateX(3px);
  }
  40% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0px);
  }
}

@keyframes shake-shake {
  0% {
    transform: translateX(-3px);
  }
  20% {
    transform: translateX(3px);
  }
  40% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0px);
  }
}
