/**
 * store.css
 * Stripe Payments Demo. Created by Romain Huet (@romainhuet).
 */

:root {
  --primary-color: #0078FF;
}

.text-primary{
  color: var(--primary-color)  !important;
}


.text-primary-hover:hover, .color-primary-hover:hover, .color-primary-hover:hover *, .item-action:hover *{
  color: var(--primary-color)  !important;
}



.bg-primary{
  background-color: var(--primary-color)  !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

 #div_loading{
    width: 100%;
    height: 100%;
    display: table;
 }

 #div_loading p{
   display: inline;
   margin: auto;
   display: table-cell; 
   vertical-align: middle;
 }

 .i-order-link{
   width: 100%;
   padding: 6px;  
 }

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.4em;
  color: #525f7f;
}

body {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f8fbfd;
}

/* Overall Container */

#main {
  width: 100%;
  height: 100vh;
  text-align: center;
  transition: width 0.3s ease-in-out;
}

#main.checkout:not(.success):not(.error) {
  width: 100%
}

header {
  background-color: white;
  height: auto;
  text-align: center;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  display: none;
}

header p{
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px; 
  width: 100%
}

/* Checkout */

#checkout {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear 0.5s;
}

#main.checkout #checkout {
  visibility: visible;
  opacity: 1;
}

section {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

h1 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 500;
}

h2 {
  margin: 15px 0;
  color: #32325d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 13px;
  font-weight: 500;
}

/* Payment Request */

#st-shipping-type, #store-location{
    padding-left: 15px;
    padding-right: 15px;
}

#store-location{
  display: none;
  max-width: 100%;
  padding-bottom: 20px;
}

#payment-request {
  display: none;
  visibility: hidden;
  opacity: 0;
  min-height: 100px;
  padding: 20px 0 !important;
  transition: visibility 0s, opacity 0.3s ease-in;
}

#payment-request.visible {
  visibility: visible;
  opacity: 1;
}

#payment-form {
  margin: 0px;
  padding: 15px;
}

/* Form */

fieldset {
  margin-bottom: 20px;
  background: #fff;
  /*box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.15), 0 4px 6px 0 rgba(112, 157, 199, 0.15);*/
  border-radius: 4px;
  border: none;
  font-size: 0;
}

fieldset label {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 42px;
  padding: 10px 0;
  align-items: center;
  justify-content: center;
  color: #8898aa;
  font-weight: 400;
}

fieldset label:not(:last-child) {
  border-bottom: 1px solid #f0f5fa;
}

/*fieldset label.state {
  display: inline-flex;
  width: 75%;
}*/

fieldset:not(.with-state) label.state {
  display: none;
}

/*fieldset label.zip {
  display: inline-flex;
  width: 25%;
  padding-right: 60px;
}*/

fieldset:not(.with-state) label.zip {
  width: 100%;
}

fieldset label span {
  min-width: 125px;
  padding: 0 15px;
  text-align: right;
}

fieldset .redirect label span {
  width: 100%;
  text-align: center;
}

p.instruction {
  display: none;
  margin-top: -32px;
  padding: 0 5px;
  text-align: center;
  background: #f8fbfd;
}



.field {
  flex: 1;
  padding: 0 15px;
  background: transparent;
  font-weight: 400;
  color: #31325f;
  outline: none;
  cursor: text;
}

#my-card-elemet ::-webkit-input-placeholder {
  color: #777 !important;
}

#my-card-elemet ::-moz-placeholder {

  color: #777 !important; 
  opacity: 1;
}

#my-card-elemet *:-ms-input-placeholder {
  color: #777 !important;
}
#my-card-elemet *::-ms-input-placeholder {
  color: #777 !important;
}

#my-card-elemet ::placeholder {
  color: #777 !important;
}

.field::-webkit-input-placeholder {
  color: #aab7c4;
}
.field::-moz-placeholder {
  color: #aab7c4;
}
.field:-ms-input-placeholder {
  color: #aab7c4;
}

fieldset .select::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 5px;
  right: 20px;
  top: 50%;
  margin-top: -2px;
  background-image: url('../images/dropdown.svg');
  pointer-events: none;
}

input {
  flex: 1;
  border-style: none;
  outline: none;
  color: #313b3f;
}

select:not(#s_extrafee) {
  flex: 1;
  border-style: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  color: #313b3f;
  cursor: pointer;
  background: transparent;
}

#s_extrafee{
  padding-left: 0.5rem;
  height: 2.2rem;
  border-color: #eee;
  border-radius: 4px;
}

select:focus {
  color: #666ee8;
}

::-webkit-input-placeholder {
  color: #cfd7e0;
}
::-moz-placeholder {
  color: #cfd7e0;
  opacity: 1;
}
:-ms-input-placeholder {
  color: #cfd7e0;
}

input:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #666ee8;
  transition: background-color 100000000s;
  -webkit-animation: 1ms void-animation-out 1s;
}

.StripeElement--webkit-autofill {
  background: transparent !important;
}

#card-element {
  margin-top: -1px;
}

#ideal-bank-element {
  padding: 0;
}

button {
  display: block;
  background: var(--primary-color);
  color: #fff;
  /*box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);*/
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  width: 100%;
  height: 40px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

button:focus {
  background: #555abf;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px 0 rgba(50, 50, 93, 0.1),
    0 3px 6px 0 rgba(0, 0, 0, 0.08);
}

button:active {
  background: #43458b;
}

#country {
  display: flex;
  align-items: center;
}

#country select {
  margin: 0 -15px 0 -30px;
  padding: 0 15px 0 30px;
}


/* Payment Methods */

nav {
  margin: 0 0 20px;
  border-bottom: 2px solid #e8e8fb;
}

nav li {
  display: none;
}

nav li.visible {
  display: inline-block;
  margin: 0 20px 0 0;
  list-style: none;
}

nav input {
  display: none;
}

nav label {
  display: flex;
  flex: 1;
  cursor: pointer;
}

nav input + label {
  position: relative;
  padding: 5px 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
}

nav label::before {
  content: '';
  position: absolute;
  width: 100%;
  bottom: -2px;
  left: 0;
  border-bottom: 2px solid var(--primary-color);
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.25s ease-in-out;
}

nav label:hover {
  color: var(--primary-color);
  cursor: pointer;
}

nav input:checked + label {
  color: var(--primary-color);
}

nav label:hover::before,
nav input:checked + label::before {
  opacity: 1;
  transform: scaleX(1);
}

nav,
.payment-info {
  display: none;
}

#shipping-type{
  display: block;
}



.payment-info:not(.card) {
  margin-bottom: 15px;
}

.payment-info.ideal {
  margin-bottom: 0;
}

nav.visible,
.payment-info.visible {
  display: block;
}

.payment-info.card.visible,
.payment-info.sepa_debit.visible {
  text-align: center;
}

.payment-info p.notice {
  font-size: 14px;
  color: #8898aa;
  text-align: left;
}

#wechat-qrcode img {
  margin: 0 auto;
}

.element-errors {
  display: inline-flex;
  height: 20px;
  margin: 15px auto 0;
  padding-left: 20px;
  color: #e25950;
  opacity: 0;
  transform: translateY(10px);
  transition-property: opacity, transform;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  background: url('../images/error.svg') center left no-repeat;
  background-size: 15px 15px;
}

.element-errors.visible {
  opacity: 1;
  transform: none;
}

#iban-errors {
  margin-top: -20px;
}




#demo {
  padding: 15px;
  margin: -15px -15px 0;
  background: #f6f9fc;
  border-radius: 5px;
}

#demo p.label {
  margin: 0 0 10px;
  color: #666ee8;
}

#demo p.note {
  display: block;
  margin: 10px 0 0;
  font-size: 14px;
}

#demo p.note a,
#demo p.note em {
  font-size: 14px;
}

#demo p.note a:hover {
  text-decoration: none;
}

/* Order Confirmation */

#confirmation {
  display: flex;
  align-items: center;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  visibility: hidden;
  overflow-x: hidden;
  opacity: 0;
  background: #f8fbfd;
  text-align: left;
  transition: visibility 0s, opacity 0.5s linear 0.5s;
}

#main.success #confirmation,
#main.error #confirmation {
  visibility: visible;
  opacity: 1;
}

#main.success #order,
#main.error #order {
  visibility: hidden;
  opacity: 0;
}

#confirmation h1 {
  font-size: 42px;
  font-weight: 300;
  color: #6863d8;
  letter-spacing: 0.3px;
  margin-bottom: 30px;
}


#confirmation .status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 15px;
  max-width: 75%;
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.15);
  border-radius: 6px;
  width: auto;
  height: auto;
  margin: auto;
}

#confirmation .status.error {
  display: none;
}

#confirmation .status p {
  margin: 0 0 15px;
}

#confirmation .status li {
  margin-bottom: 5px;
  list-style: none;
}

#main.success:not(.processing) #confirmation .status.processing,
#main.success:not(.receiver) #confirmation .status.receiver {
  display: none;
}

#main.processing #confirmation .status.success,
#main.receiver #confirmation .status.success {
  display: none;
}

#main.error #confirmation .status.success,
#main.error #confirmation .status.processing,
#main.error #confirmation .status.receiver {
  display: none;
}

#main.error #confirmation .status.error {
  display: flex;
}

#main.error #confirmation .error-message {
  font-family: monospace;
}


#store-location pre {
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}



#div_coupon{
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 1.5rem;
}

#div_coupon input{
  padding: 4px 4px;
}
  
@media only screen and (max-width: 800px) {
 
  #payment-request {
    padding-top: 0;
    min-height: 80px;
  }
 
  
  #confirmation .status {   
    max-width: 85%;
  }

  #confirmation h1 {
    font-size: 30px;
    margin-bottom: 25px;
  }
}

@media only screen and (max-width: 650px) {
  #confirmation .status {   
    max-width: 90%;
  }

  #payment-form {
    margin: 0;
    padding: 0 15px;
    border-width: 2px 0 0 0;
    border-radius: 0;
  }
  .payment-info span {
    display: none;
  }
  fieldset {
    margin-bottom: 15px;
  }
  fieldset label.state,
  fieldset label.zip {
    display: flex;
    width: inherit;
    padding: 10px 0;
  }
  

    #confirmation h1 {
      font-size: 25px;
      margin-bottom: 20px;
    }
}

@media only screen and (max-width: 500px) {   
  #payment-request {
    min-height: 0;
    padding-right: 15px;
    padding-left: 15px;
  }
  
  p.instruction {
    margin-top: -12px;
    font-size: 14px;
  }
  p.tip {
    margin-bottom: 0;
    font-size: 13px;
  }
  
  
  #checkout {
    margin-bottom: 0;
  }
  
  #confirmation h1 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

.hide{
  display: none !important;
}
