/**
 * Prestaworks AB
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the End User License Agreement(EULA)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://license.prestaworks.se/license.html
 *
 * @author    Prestaworks AB <info@prestaworks.se>
 * @copyright Copyright Prestaworks AB (https://www.prestaworks.se/)
 * @license   http://license.prestaworks.se/license.html
 */

/**
 * Position Klarna content
 */

.klarna-container-element {
  background-color: #fff;
  border: 1px solid #d6d4d4;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  margin-top: -14px;
  margin-bottom: 20px;
  padding: 15px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.klarna-container-element {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
     -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
     -ms-flex-direction: column;
         flex-direction: column;
  -webkit-box-pack: center;
     -ms-flex-pack: center;
   justify-content: center;
}
.klarna_errorbox {
  -webkit-box-ordinal-group: 0;
             -ms-flex-order: -1;
                      order: -1;
}
.kco-buy-button {
  -webkit-box-ordinal-group: 100;
             -ms-flex-order: 99;
                      order: 99;
}
.klarna-container-element iframe {
  display: block !important;
  margin-right: auto;
  margin-left: auto;
}

/**
 * Buy/confirm buttons
 */

.kco-buy-button {
  background-color: #ffb3c7;
  border: 0;
  border-radius: 5px;
  color: rgb(0, 0, 0);
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 15px auto 0;
  padding: 0.8em 1em;
  position: relative;
  text-transform: uppercase;
  max-width: 250px;
  width: 100%;
}
  .kco-buy-button:hover {
    background-color: #ff98b3;
    transition: 0.2s;
    border: 0;
  }
  .kco-buy-button:active,
  .kco-buy-button:focus {
    background-color: #ff98b3;
  }
  .kco-buy-button.is-processing {
    color: transparent !important;
  }
    .kco-buy-button.is-processing:after {
      -webkit-animation: spin 1s linear infinite;
              animation: spin 1s linear infinite;
      border: 2px solid rgba(255, 255, 255, 0.5);
      border-top-color: #fff;
      border-radius: 100%;
      content: '';
      display: block;
      height: 24px;
      width: 24px;

      position: absolute;
      top: calc(50% - 12px);
      left: calc(50% - 12px);
      z-index: 1;
    }





/**
 * Full page overlay
 */

.loading {
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-box-align: center;
     -ms-flex-align: center;
        align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
     -ms-flex-pack: center;
   justify-content: center;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1010;
}
  .loading:before {
    -webkit-animation: none;
            animation: none;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    content: '';
    display: block;
    height: 96px;
    width: 96px;

    position: absolute;
    top: calc(50% - 48px);
    left: calc(50% - 48px);
    z-index: 1015;
  }
  .loading:after {
    -webkit-animation: loading 750ms linear infinite;
            animation: loading 750ms linear infinite;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: black;
    border-radius: 100%;
    content: '';
    display: block;
    height: 48px;
    width: 48px;

    position: absolute;
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    z-index: 1020;
  }
  @-webkit-keyframes loading {
    0%   { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(359deg); }
  }
  @keyframes loading {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
  }





/**
 * Slightly override default theme styling
 */

p.payment_module_klarna a {
  background-position: 15px center;
  background-repeat: no-repeat;
  background-size: 45px auto;
  padding-left: 75px;
}