/* ==========================================================
   REUTPRINT GLOBAL CART v1.0
   ========================================================== */

/* ---------- TOP BAR TRIGGER ---------- */

#sp-top2 .rp-global-cart-trigger {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 34px;

  padding: 0;

  background: transparent;
  border: 0;

  color: #fff;

  cursor: pointer;
}

#sp-top2 .rp-global-cart-trigger__icon {
  display: block;

  width: 21px;
  height: 21px;

  background-color: currentColor;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L20.5 8H6.2M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L20.5 8H6.2M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

#sp-top2 .rp-global-cart-trigger__count {
  position: absolute;
  top: 1px;
  right: 0;

  min-width: 17px;
  height: 17px;

  padding: 0 4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #fff;
  color: #333;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

#sp-top2 .rp-global-cart-trigger__count[hidden] {
  display: none !important;
}

#sp-top2 .rp-global-cart-trigger:hover {
  opacity: .82;
}

#sp-top2 .rp-global-cart-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* ---------- BACKDROP ---------- */

.rp-global-cart__backdrop {
  position: fixed;
  inset: 0;
  z-index: 13001;

  background: rgba(22, 20, 32, .48);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .25s ease,
    visibility .25s ease;
}


/* ---------- PANEL ---------- */

.rp-global-cart__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 13002;

  width: min(430px, 94vw);
  height: 100dvh;

  display: flex;
  flex-direction: column;

  background: #fff;

  box-shadow: -12px 0 38px rgba(0, 0, 0, .18);

  transform: translateX(102%);
  visibility: hidden;

  transition:
    transform .32s cubic-bezier(.22, 1, .36, 1),
    visibility .32s ease;
}


/* ---------- OPEN STATE ---------- */

body.rp-global-cart-open {
  overflow: hidden;
}

body.rp-global-cart-open .rp-global-cart__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.rp-global-cart-open .rp-global-cart__panel {
  transform: translateX(0);
  visibility: visible;
}


/* ---------- HEADER ---------- */

.rp-global-cart__header {
  flex: 0 0 auto;

  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 14px 18px 14px 22px;

  border-bottom: 1px solid #ecebf2;

  background: #fff;
}

.rp-global-cart__header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rp-global-cart__eyebrow {
  color: #393185;

  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;

  letter-spacing: .08em;
}

.rp-global-cart__header strong {
  color: #292735;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.rp-global-cart__close {
  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #f3f2f6;
  color: #393185;

  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
}

.rp-global-cart__close:hover {
  background: #393185;
  color: #fff;
}


/* ---------- CONTENT ---------- */

.rp-global-cart__content {
  flex: 1 1 auto;

  min-height: 0;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 18px;
}

.rp-global-cart__items {
  display: grid;
  gap: 12px;
}


/* ---------- EMPTY ---------- */

.rp-global-cart__empty {
  min-height: 240px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 28px 20px;

  text-align: center;

  color: #74717d;
}

.rp-global-cart__empty[hidden] {
  display: none !important;
}

.rp-global-cart__empty-icon {
  width: 42px;
  height: 42px;

  margin-bottom: 14px;

  background-color: #aaa5b2;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L20.5 8H6.2M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L20.5 8H6.2M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.rp-global-cart__empty strong {
  margin-bottom: 6px;

  color: #292735;

  font-size: 17px;
  font-weight: 800;
}

.rp-global-cart__empty p {
  margin: 0;

  font-size: 13px;
  line-height: 1.5;
}


/* ---------- ITEM ---------- */

.rp-global-cart-item {
  position: relative;

  padding: 15px 44px 15px 15px;

  border: 1px solid #eceaf2;
  border-radius: 14px;

  background: #faf9fc;
}

.rp-global-cart-item__service {
  display: block;

  margin-bottom: 8px;

  color: #292735;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.rp-global-cart-item__params {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;

  margin: 0 0 10px;
}

.rp-global-cart-item__param {
  color: #74717d;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.rp-global-cart-item__param:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #bbb7c3;
}

.rp-global-cart-item__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.rp-global-cart-item__qty {
  color: #74717d;

  font-size: 12px;
  font-weight: 600;
}

.rp-global-cart-item__price {
  color: #393185;

  font-size: 15px;
  font-weight: 800;
}

.rp-global-cart-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: #918c9c;

  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.rp-global-cart-item__remove:hover {
  background: #f0edf5;
  color: #393185;
}


/* ---------- FOOTER ---------- */

.rp-global-cart__footer {
  flex: 0 0 auto;

  padding: 16px 18px 18px;

  border-top: 1px solid #ecebf2;

  background: #fff;
}

.rp-global-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 14px;
}

.rp-global-cart__total span {
  color: #74717d;

  font-size: 13px;
  font-weight: 700;
}

.rp-global-cart__total strong {
  color: #292735;

  font-size: 20px;
  font-weight: 800;
}

.rp-global-cart__actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.rp-global-cart__clear,
.rp-global-cart__checkout {
  min-height: 46px;

  padding: 10px 14px;

  border-radius: 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}

.rp-global-cart__clear {
  border: 1px solid #dcd8e7;

  background: #fff;
  color: #393185;
}

.rp-global-cart__clear:hover {
  background: #f7f5fc;
}

.rp-global-cart__checkout {
  border: 1px solid #393185;

  background: #393185;
  color: #fff;
}

.rp-global-cart__checkout:disabled {
  border-color: #d8d5df;

  background: #e9e7ed;
  color: #9995a1;

  cursor: not-allowed;
}


/* ---------- MOBILE ---------- */

@media (max-width: 820px) {

  .rp-global-cart__panel {
    width: min(100%, 390px);
  }

  .rp-global-cart__content {
    padding: 14px;
  }

  .rp-global-cart__footer {
    padding: 14px;
  }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  .rp-global-cart__panel,
  .rp-global-cart__backdrop {
    transition: none;
  }
}
