/**
 * 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
 */


/**
 * Cart: Common
 */
.pwsc {
  background-color: #fff;
  border: 0;
  display: flex;
  font-size: 14px;
  flex-direction: column;
  margin: 0;
  max-width: 600px;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  pointer-events: none;
  transition: opacity 300ms, transform 300ms;
  z-index: 1002;
}
  .pwsc[open] {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }



/**
 * Cart: Drawer container
 */
.pwsc-drawer {
  box-shadow: 
     -1px 0  2px rgba(0,0,0,0.07), 
     -2px 0  4px rgba(0,0,0,0.07), 
     -4px 0  8px rgba(0,0,0,0.07), 
     -8px 0 16px rgba(0,0,0,0.07),
    -16px 0 32px rgba(0,0,0,0.07), 
    -32px 0 64px rgba(0,0,0,0.07);
  height: 100dvh;
  max-height: none;
  transform: translateX(100%);
  width: calc(100% - 44px);

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
}
  .pwsc-drawer[open] {
    transform: translateX(0);
  }



/**
 * Cart: Dropdown container
 */
.pwsc-dropdown {
  box-shadow: 
    0  1px  2px rgba(0,0,0,0.07), 
    0  2px  4px rgba(0,0,0,0.07), 
    0  4px  8px rgba(0,0,0,0.07), 
    0  8px 16px rgba(0,0,0,0.07),
    0 16px 32px rgba(0,0,0,0.07), 
    0 32px 64px rgba(0,0,0,0.07);
  opacity: 0;
  max-width: min(var(--mw), 600px);
  transform: translateY(0.5rem);
  width: 100%;

  position: absolute;
  top: 0;
  right: 0;
  left: auto;
}
  .pwsc-dropdown[open] {
    transform: translateY(0);
  }



/**
 * Cart: Drawer header
 */
.pwsc__header {
  align-items: center;
  border-bottom: 2px solid #eee;
  display: flex;
  position: relative;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 1em;
}
.pwsc__header button {
  background-color: transparent;
  border-width: 0;
  padding: 0;
  line-height: 1;
  outline: 0 !important;
}
.pwsc__header button svg {
  pointer-events: none;
}
.pwsc-close {
  background-color: transparent;
  border-width: 0;
  padding: 0;
  line-height: 1;
}
  .pwsc-close:focus {
    outline: 0;
  }



/**
 * Cart: Content
 */
.pwsc__content {
  flex: 0 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1em;
}
  .pwsc__content--large {
    flex: 1 1 auto;
  }
.pwsc .alert {
  margin: 0;
}



/**
 * Cart: Products
 */
.pwsc_products {
  font-size: 0.8125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
  .pwsc_product {
    align-items: flex-start;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
  }
    .pwsc_product:not(:last-child) {
      margin-bottom: 1em;
    }
    .pwsc_product__image {
      flex: 0 0 64px;
    }
      .pwsc_product__image img {
        display: block;
        height: auto;
        max-width: 64px;
      }
    .pwsc_product__info {
      flex: 1 1 auto;
      padding-left: 1em;
    }
      .pwsc-productname {
        display: block;
        margin-bottom: 0.25em;
      }
      .pwsc-attributes {
        margin-bottom: 0.25em;
      }
      .pwsc-customizations {
        margin-bottom: 0.25em;
      }
      .pwsc-prices {
        display: flex;
        margin-right: -0.25em;
        margin-left: -0.25em;
      }
        .pwsc-prices--unit {
          margin-bottom: 0.25em;
        }
        .pwsc-price {
          padding-right: 0.25em;
          padding-left: 0.25em;
        }
    .pwsc_product__footer {
      align-items: center;
      display: flex;
      justify-content: space-between;
    }
    .pwsc-remove-product {
      background-color: white;
      color: #777777;
      display: block;
      height: 24px;
      width: 24px;
      position: absolute;
      top: 0;
      left: 0;
    }
      .pwsc-remove-product * {
        pointer-events: none !important;
      }



/**
 * Cart: Footer
 */
.pwsc__footer {
  flex: 0;
}



/**
 * Cart: Drawer/dropdown summary/totals
 */
.pwsc__footer__totals {
  border-top: 2px solid #eee;
  padding: 1em;
}
  .pwsc__footer__totals table {
    width: 100%;
  }
    .pwsc__footer__totals table td {
      white-space: nowrap;
    }
      .pwsc__footer__totals table td:first-child {
        width: 100%;
      }
      .pwsc__footer__totals table td:last-child {
        text-align: right;
        width: 1%;
      }
    .pwsc__footer__totals tr:not(:first-child) td {
      padding-top: 0.25em;
    }
    .pwsc__footer__totals tr:not(:last-child) td {
      padding-bottom: 0.25em;
    }



/**
 * Cart: Drawer/dropdown actions
 */
.pwsc__footer__actions {
  align-items: center;
  border-top: 2px solid #eee;
  display: flex;
  flex-direction: column;
  padding: 1em;
}
  .pwsc__footer__actions .btn {
    text-align: center;
    width: 100%;
  }
  .pwsc__footer__actions .btn-primary {
    margin-bottom: 0.5em;
    order: -1;
  }
  @media (min-width: 576px) {
  .pwsc__footer__actions {
    flex-direction: row;
  }
  .pwsc__footer__actions .btn {
    flex: 0 0 auto;
    width: auto;
  }
  .pwsc__footer__actions .btn + .btn {
    margin-left: 1em;
  }
  .pwsc__footer__actions .btn-primary {
    flex: 1 1 auto;
    margin-bottom: 0;
    order: 99;
  } }



/**
 * Utility: Loader/spinner
 */
.pwsc .is-processing {
  position: relative;
}
  .pwsc .is-processing:before,
  .pwsc .is-processing:after {
    content: '';
    display: block;
    position: absolute;
  }
    .pwsc .is-processing:before {
      background-color: rgba(255, 255, 255, 0.8);
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 10;
    }
    .pwsc .is-processing:after {
      animation: pwscSpin 500ms linear infinite;
      border: 2px solid rgba(0, 0, 0, 0.1);
      border-top-color: #000000;
      border-radius: 100%;
      height: 48px;
      width: 48px;
      top: calc(50% - 24px);
      left: calc(50% - 24px);
      z-index: 11;
    }
    @keyframes pwscSpin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(359deg); }
    }



/**
 * Utility: Small font-size
 */
[id*="pwsc"] small,
[id*="pwsc"] .small {
  font-size: 90%;
}
/* [id*="pwsc"] .large {
  font-size: 114%;
} */



/**
 * Utility: Overlay
 */
.pwsc::backdrop {
  background-color: var(--backdrop-bg, rgba(0, 0, 0, 0.5));

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 1001;
}
  /* .pwsc-overlay.is-hidden {
    display: none;
  }
  .pwsc-overlay:not(.is-open) {
    pointer-events: none;
  }
  .pwsc-overlay.is-open {
    opacity: 1;
  } */



/**
 * Widget: Trigger/Cart button
 */
.pwsc-trigger {
  align-items: center;
  background-color: transparent;
  block-size: 2.5rem;
  border-width: 0;
  display: flex;
  flex-wrap: nowrap;
  inline-size: 2.5rem;
  justify-content: center;
  padding: 0;
  position: relative;
}
  .pwsc-trigger svg {
    height: 24px;
    width: 24px;
  }
  /* .pwsc-trigger * + * {
    margin-left: 0.5em;
  } */
  .pwsc-trigger *,
  [data-toggle-pwsc] * {
    pointer-events: none;
  }
  .pwsc-trigger__quantity-pill {
    --_s: 20px;
    background-color: var(--bs-primary);
    border-radius: 3em;
    box-shadow: 0 0 0 2px white;
    color: white;
    display: block;
    font-size: 10px;
    font-weight: 700;
    height: var(--_s);
    line-height: var(--_s);
    min-width: var(--_s);
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
  
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 0;
  }



/**
 * Cart: Voucher form
 */
.pwsc__footer__voucherform {
  border-top: 2px solid #eee;
  padding: 1rem;
}
  .pwsc__footer__voucherform form {
    display: flex;
    flex-wrap: wrap;
  }
  .pwsc__footer__voucherform input {
    flex: 1;
    font: inherit;
    width: 100%;
  }
  .pwsc__footer__voucherform button {
    flex: 0;
    font: inherit;
    margin-left: 1em;
    text-transform: none;
  }
  .pwsc__footer__voucherform .alert {
    flex: 1 0 100%;
    margin: 1em 0 0;
  }



/**
 * Remove some of the default styling to improve legibility
 */
.pwsc .bootstrap-touchspin {
  box-shadow: none;
}



/**
 * Modal
 */
.pwsc-modal {
  border: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  opacity: 0;
  padding: 0;
  max-width: 600px;
  transform: translateY(-0.5rem);
  transition: opacity 300ms, transform 300ms;
}
  .pwsc-modal[open] {
    opacity: 1;
    transform: translateY(0);
  }
  .pwsc-modal .alert {
    border: 0;
    flex: 0;
    margin: 0;
  }
  .pwsc-added-product {
    flex: 1;
    padding: 1em;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .pwsc-added-product [class*="col"] {
    padding-left: 1em;
    padding-right: 1em;
  }
  .pwsc-added-product .row {
    margin-right: -1em;
    margin-left: -1em;
  }