body.rj-cart-drawer-open {
  overflow: hidden;
}

.rj-cart-trigger {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rj-cart-count {
  position: absolute;
  top: -10px;
  left: 19px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2ca8b5;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.rj-cart-drawer-root {
  position: fixed;
  z-index: 1100;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  contain: layout paint;
}

.admin-bar .rj-cart-drawer-root {
  top: 32px;
}

.rj-cart-drawer-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.rj-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 36, 43, .52);
  opacity: 0;
  cursor: default;
  transition: opacity .28s ease;
}

.rj-cart-drawer-root.is-open .rj-cart-drawer__overlay {
  opacity: 1;
}

.rj-cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(440px, 100%);
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: -18px 0 55px rgba(18, 45, 54, .2);
  color: #103f50;
  transform: translate3d(100%, 0, 0);
  transition: transform .3s ease;
}

.rj-cart-drawer-root.is-open .rj-cart-drawer {
  transform: translate3d(0, 0, 0);
}

.rj-cart-drawer__header {
  display: flex;
  min-height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #eaf1f3;
  background: #fff;
}

.rj-cart-drawer__header h2 {
  margin: 0;
  color: #103f50;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.rj-cart-drawer__close {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #103f50;
  cursor: pointer;
}

.rj-cart-drawer__close:hover,
.rj-cart-drawer__close:focus-visible {
  background: #eaf7fa;
}

.rj-cart-drawer__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.rj-cart-drawer__notice {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 22px;
  background: #fff2f2;
  color: #b42318;
  font-size: 13px;
}

.rj-cart-drawer__content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.rj-cart-drawer__items {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 22px;
}

.rj-cart-drawer__item {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid #eaf1f3;
  transition: opacity .2s ease;
}

.rj-cart-drawer__item.is-updating {
  opacity: .48;
  pointer-events: none;
}

.rj-cart-drawer__image {
  display: block;
  overflow: hidden;
  width: 76px;
  height: 84px;
  border-radius: 9px;
  background: #eaf7fa;
}

.rj-cart-drawer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rj-cart-drawer__details {
  min-width: 0;
}

.rj-cart-drawer__name {
  display: block;
  color: #103f50;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rj-cart-drawer__details dl.variation {
  margin: 5px 0 0;
  color: #6a8088;
  font-size: 11px;
  line-height: 1.35;
}

.rj-cart-drawer__details dl.variation dt,
.rj-cart-drawer__details dl.variation dd {
  display: inline;
  float: none;
  margin: 0;
}

.rj-cart-drawer__details dl.variation dd::after {
  display: block;
  content: "";
}

.rj-cart-drawer__details dl.variation p {
  display: inline;
  margin: 0;
}

.rj-cart-drawer__unit-price {
  display: block;
  margin-top: 5px;
  color: #6a8088;
  font-size: 12px;
}

.rj-cart-drawer__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.rj-cart-drawer__quantity {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  overflow: hidden;
  height: 32px;
  border: 1px solid #d8e7eb;
  border-radius: 999px;
  text-align: center;
}

.rj-cart-drawer__quantity button {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #103f50;
  cursor: pointer;
}

.rj-cart-drawer__quantity button:hover:not(:disabled) {
  background: #eaf7fa;
}

.rj-cart-drawer__quantity button:disabled {
  color: #b7c2c6;
  cursor: not-allowed;
}

.rj-cart-drawer__quantity span {
  font-size: 12px;
  font-weight: 700;
}

.rj-cart-drawer__remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #6a8088;
  font-size: 11px;
  cursor: pointer;
}

.rj-cart-drawer__remove:hover {
  color: #c92a2a;
}

.rj-cart-drawer__remove svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rj-cart-drawer__line-total {
  align-self: start;
  color: #103f50;
  font-size: 13px;
  white-space: nowrap;
}

.rj-cart-drawer__footer {
  flex: 0 0 auto;
  padding: 18px 22px 22px;
  border-top: 1px solid #eaf1f3;
  background: #fff;
}

.rj-cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #103f50;
  font-size: 15px;
}

.rj-cart-drawer__total strong {
  font-size: 17px;
}

.rj-cart-drawer__footer p {
  margin: 5px 0 16px;
  color: #6a8088;
  font-size: 11px;
  line-height: 1.45;
}

.rj-cart-drawer__checkout {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #2ca8b5;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rj-cart-drawer__checkout:hover,
.rj-cart-drawer__checkout:focus-visible {
  background: #218d98;
  color: #fff;
}

.rj-cart-drawer__empty {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 44px 24px;
  text-align: center;
}

.rj-cart-drawer__empty svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: #2ca8b5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rj-cart-drawer__empty p {
  margin: 18px 0 0;
  color: #103f50;
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .rj-cart-drawer {
    width: 100vw;
    max-width: 100%;
  }

  .rj-cart-drawer__header {
    min-height: 68px;
    padding: 14px 18px;
  }

  .rj-cart-drawer__items {
    padding-inline: 18px;
  }

  .rj-cart-drawer__item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .rj-cart-drawer__image {
    width: 68px;
    height: 76px;
  }

  .rj-cart-drawer__name {
    padding-right: 76px;
  }

  .rj-cart-drawer__line-total {
    position: absolute;
    top: 18px;
    right: 0;
  }

  .rj-cart-drawer__footer {
    padding: 16px 18px 18px;
  }

  .rj-cart-count {
    top: -4px;
    left: 25px;
  }
}

@media (max-width: 782px) {
  .admin-bar .rj-cart-drawer-root {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rj-cart-drawer,
  .rj-cart-drawer__overlay {
    transition: none;
  }
}
