/**
 * store.css
 * Stripe Payments Demo. Created by Romain Huet (@romainhuet).
 */

/* Overall Container */
  #main {
    position: absolute;
    top: 0;
    left: 0;
  }
  #main {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%; /* Ensures it covers the full viewport */
    transition: all 0.2s ease-in-out;
    font-size: 15px;
    color: #525f7f;
    background: rgba(0, 0, 0, 0.66);
  }
  
  #main.checkout:not(.success):not(.error) {
    width: 100%;
  }
  
  /* Checkout */
  
  #checkout {
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 0;
    position: relative;
    transition: visibility 0s, opacity 0.5s linear 0.5s;
  }
  #checkout-background-top {
    width: calc(100% + 60px);
    left: -30px;
    top: 30px;
    height: 50%;
    position: absolute;
    z-index: -1;
    border-radius: 4px 4px 0px 0px;
    border: 1px solid #1f1f1f;
    background-color: #232829;
  }
  #checkout-background-bottom {
    width: calc(100% + 60px);
    left: -30px;
    bottom: 30px;
    height: 48.4%;
    position: absolute;
    z-index: -1;
    border-radius: 0px 0px 4px 4px;
    border: 1px solid #e8e8fb;
    background-color: #f8fbfd;
  }
  
  #main.checkout #checkout {
    visibility: visible;
    opacity: 1;
  }
  
  section {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
  }
  
  section > h1 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 500;
  }
  
  section > h2 {
    margin: 15px 0;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 13px;
    font-weight: 500;
  }
  
  /* Payment Request */
  
  #payment-request {
    visibility: hidden;
    opacity: 0;
    min-height: 100px;
    padding: 20px 0;
    transition: visibility 0s, opacity 0.3s ease-in;
  }
  
  #payment-request.visible {
    visibility: visible;
    opacity: 1;
  }
  
  #payment-form {
    position: relative;
    margin: 0 -30px;
    padding: 45px 50px;
    border-radius: 4px;
  }
  #payment-form > .info {
    text-align: left;
    font-size: 12px;
    text-align: center;
  }
  #payment-form > #error {
    color: #f5494d;
    text-align: center;
    line-height: 40px;
  }
  #payment-form > .cancel-button {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    padding: 28px;
    padding-top: 21px;
    cursor: pointer;
  }
  #payment-form > .cancel-button > img {
    filter: opacity(50%) invert();
    transition: filter 200ms;
  }
  #payment-form > .cancel-button:hover > img {
    filter: opacity(75%) invert();
  }
  .stepIndicator {
    color: rgba(255, 255, 255, 0.6);
  }
  .stepIndicator > b {
    color: #f1f1f1;
  }
  
  /* Form */
  .fieldset {
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(245, 73, 77, 0.15),
      0 4px 6px 0 rgba(245, 73, 77, 0.15);
    border-radius: 4px;
    border: none;
  }
  fieldset {
    margin: 0;
    border: none;
    padding: 10px 0px;
  }
  
  fieldset label {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 41px;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    overflow: hidden;
  }
  
  fieldset label:not(:last-child) {
    border-bottom: 1px solid #f0f5fa;
  }
  
  fieldset label.state {
    display: inline-flex;
    width: 100%;
    overflow: hidden;
  }
  
  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 0px 0px;
    text-align: right;
  }
  
  fieldset .redirect label span {
    width: 100%;
    text-align: center;
  }
  
  p.instruction {
    margin: 8px 0px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 23px;
    color: #f1f1f1;
  }
  
  p.tip {
    margin: -10px auto 10px;
    padding: 5px 0 5px 30px;
    font-size: 14px;
    background: url(/assets/svg/checkout/tip.svg) left center no-repeat;
  }
  
  span#generate {
    cursor: pointer;
    /*color: #525f7f;*/
    text-decoration: underline;
  }
  span#generate:hover {
    text-decoration: none;
  }
  
  .field {
    flex: 1;
    padding: 0 15px;
    font-size: 15px;
    background: transparent;
    font-weight: 400;
    color: #31325f;
    outline: none;
    cursor: text;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  }
  
  .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(/assets/svg/checkout/dropdown.svg);
    pointer-events: none;
  }
  
  input {
    flex: 1;
    border-style: none;
    outline: none;
    color: #313b3f;
  }
  
  select {
    flex: 1;
    border-style: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    color: #313b3f;
    cursor: pointer;
    background: transparent;
  }
  
  select:focus {
    color: #313b3f;
  }
  ::-webkit-input-placeholder {
    color: #aab7c4;
  }
  ::-moz-placeholder {
    color: #aab7c4;
    opacity: 1;
  }
  :-ms-input-placeholder {
    color: #aab7c4;
  }
  
  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;
  }
  
  .payment-button {
    display: block;
    background: #666ee8; 
    /*background: rgba(212,175,55, 0.66);*/
    border: 1px solid rgba(218, 206, 148, 0.25);
    color: #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: 0; */
    /* font-weight: 700; */
    width: 100%;
    height: 40px;
    margin-top: 20px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .payment-button:focus {
    background: #555abf;
  }
  .payment-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);
  }
  
  #country {
    display: flex;
    align-items: center;
    width: 50%;
  }
  
  #country select {
    width: 50%;
  }
 
  @media only screen and (max-width: 1024px) {
    #main.checkout:not(.success):not(.error) {
      width: 100%;
    }
    #summary {
      width: 320px;
      right: -320px;
    }
    #main.checkout:not(.success):not(.error) + #summary {
      right: 0;
    }
    #summary .line-item p {
      margin-top: 0;
    }
    #summary .line-item .image {
      width: 40px;
      height: 40px;
    }
    #summary .line-item .label {
      margin: 0;
    }
  }
  
  @media only screen and (max-width: 800px) {
    #main.checkout:not(.success):not(.error) {
      width: 100%;
    }
    #payment-request {
      padding-top: 0;
      min-height: 80px;
    }
    #summary {
      display: none;
    }
  }
  
  @media only screen and (max-width: 500px) {
    #main {
      background-color: #f8fbfd;
    }
    #payment-request {
      min-height: 0;
      padding-right: 15px;
      padding-left: 15px;
    }
    #payment-form {
      margin: 0;
      padding: 20px 15px;
      border-width: 2px 0 0 0;
      border-radius: 0;
    }
    .payment-info span {
      display: none;
    }
    fieldset {
      min-inline-size: auto;
    }
    #payment-form > .cancel-button {
      padding: 20px;
    }
    p.instruction {
      font-size: 18px;
      text-align: left;
      margin-top: 22px;
      margin-right: 50px;
    }
    p.tip {
      margin-bottom: 0;
      font-size: 13px;
    }
    #country::before {
      display: none;
    }
    #checkout {
      margin: 0;
      max-width: none;
      padding: 0;
    }
    #checkout-background-top {
      width: 100%;
      left: 0px;
      top: 0px;
      height: 287px;
      border-radius: 0px;
      border: none;
      background-color: #201919;
    }
    #checkout-background-bottom {
      display: none;
    }
    #payment-form > .info {
      margin-top: 28px;
    }
  }