:root {
  --msp-sc-blue: #1099d6;
  --msp-sc-blue-dark: #087fb6;
  --msp-sc-blue-deep: #0a5f91;
  --msp-sc-green: #18a77a;
  --msp-sc-ink: #101318;
  --msp-sc-text: #243142;
  --msp-sc-muted: #657386;
  --msp-sc-border: #dbe7ee;
  --msp-sc-soft: #edf8fd;
  --msp-sc-white: #ffffff;
  --msp-sc-danger: #bc2b35;
  --msp-sc-viewport-height: 100dvh;
  --msp-sc-viewport-top: 0px;
}

body.msp-sc-is-open {
  position: fixed !important;
  width: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.msp-sc-is-open .msp-hi-cart-toast {
  opacity: 0 !important;
  pointer-events: none !important;
}

.msp-sc,
.msp-sc * {
  box-sizing: border-box;
}

.msp-sc {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  visibility: hidden;
  pointer-events: none;
  font-family: "Poppins", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--msp-sc-text);
}

.msp-sc.is-open {
  visibility: visible;
  pointer-events: auto;
}

.msp-sc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 31, 0.54);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.msp-sc.is-open .msp-sc__backdrop {
  opacity: 1;
}

.msp-sc__drawer {
  position: absolute;
  top: var(--msp-sc-viewport-top, 0px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: var(--msp-sc-viewport-height, 100dvh);
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--msp-sc-white);
  box-shadow: -18px 0 54px rgba(8, 18, 36, 0.22);
  transform: translate3d(104%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
  outline: 0;
  overscroll-behavior: contain;
}

.msp-sc.is-open .msp-sc__drawer {
  transform: translate3d(0, 0, 0);
}

.msp-sc__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: max(17px, env(safe-area-inset-top));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: 16px;
  padding-left: max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--msp-sc-border);
  background: var(--msp-sc-white);
}

.msp-sc__header h2,
.msp-sc__empty h3 {
  margin: 0 !important;
  color: var(--msp-sc-ink) !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

.msp-sc__header h2 {
  font-size: 25px !important;
  line-height: 1.1 !important;
}

.msp-sc__eyebrow {
  margin: 0 0 4px !important;
  color: var(--msp-sc-blue-dark) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.13em;
}

.msp-sc__close,
.msp-sc__remove,
.msp-sc__quantity button,
.msp-sc__coupon-toggle,
.msp-sc__coupon-form button,
.msp-sc__coupon-chip button,
.msp-sc__continue {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  cursor: pointer;
}

#msp-side-cart button.msp-sc__close {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: var(--msp-sc-soft) !important;
  color: var(--msp-sc-blue-dark) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: background 0.18s ease, transform 0.18s ease;
}

#msp-side-cart button.msp-sc__close:hover {
  background: #dff1f9 !important;
  transform: rotate(4deg);
}

.msp-sc__close svg,
.msp-sc__remove svg,
.msp-sc__empty-icon svg,
.msp-sc__coupon-toggle svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#msp-side-cart .msp-sc__close svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.msp-sc__notice {
  flex: 0 0 auto;
  margin: 10px max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f8f2;
  color: #075f48;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.msp-sc__notice.is-error {
  background: #fff0f1;
  color: var(--msp-sc-danger);
}

.msp-sc__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.msp-sc__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  color: var(--msp-sc-muted);
  font-size: 14px;
  font-weight: 650;
}

.msp-sc__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #dcebf0;
  border-top-color: var(--msp-sc-blue);
  border-radius: 50%;
  animation: msp-sc-spin 0.7s linear infinite;
}

@keyframes msp-sc-spin {
  to { transform: rotate(360deg); }
}

.msp-sc__cart {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.msp-sc__items {
  flex: 1 1 auto;
  min-height: 80px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.msp-sc__item {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--msp-sc-border);
}

.msp-sc__image {
  display: grid !important;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #cfe0e8;
  border-radius: 12px;
  background: #f8fbfc;
}

.msp-sc__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
}

.msp-sc__item-info {
  min-width: 0;
  padding-right: 22px;
}

.msp-sc__item-name {
  display: block;
  margin: 1px 0 5px !important;
  color: var(--msp-sc-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.msp-sc__item-name:hover {
  color: var(--msp-sc-blue-dark) !important;
}

.msp-sc__item-meta,
.msp-sc__item-meta p,
.msp-sc__item-meta dl,
.msp-sc__item-meta dt,
.msp-sc__item-meta dd {
  margin: 0 !important;
  color: var(--msp-sc-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.msp-sc__item-meta dl.variation {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 5px;
}

.msp-sc__item-meta dt {
  font-weight: 700 !important;
}

.msp-sc__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.msp-sc__item-price {
  min-width: 0;
  white-space: nowrap;
  color: var(--msp-sc-ink);
  font-size: 15px;
  font-weight: 800;
}

#msp-side-cart .msp-sc__quantity {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  flex: 0 0 auto;
  width: 116px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #b9c8d0;
  border-radius: 8px;
  background: white;
}

#msp-side-cart .msp-sc__quantity button {
  position: static !important;
  display: grid !important;
  place-items: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: white !important;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

#msp-side-cart .msp-sc__quantity button:hover,
#msp-side-cart .msp-sc__quantity button:focus,
#msp-side-cart .msp-sc__quantity button:active {
  background: #edf8fd !important;
  color: #000 !important;
  transform: none !important;
}

#msp-side-cart .msp-sc__quantity input {
  position: relative !important;
  z-index: 1 !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #d5dfe4 !important;
  border-left: 1px solid #d5dfe4 !important;
  border-radius: 0 !important;
  background: white !important;
  color: var(--msp-sc-ink) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 36px !important;
  text-align: center !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

#msp-side-cart .msp-sc__quantity input::-webkit-outer-spin-button,
#msp-side-cart .msp-sc__quantity input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#msp-side-cart button.msp-sc__remove {
  position: absolute !important;
  top: 18px !important;
  right: 0 !important;
  display: grid !important;
  place-items: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #7a8796 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#msp-side-cart button.msp-sc__remove:hover {
  background: #fff0f1 !important;
  color: var(--msp-sc-danger) !important;
}

#msp-side-cart .msp-sc__remove svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.msp-sc__footer {
  flex: 0 0 auto;
  max-height: min(58vh, 430px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 14px;
  padding-right: max(22px, env(safe-area-inset-right));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(22px, env(safe-area-inset-left));
  border-top: 1px solid var(--msp-sc-border);
  background: white;
  box-shadow: 0 -10px 30px rgba(5, 62, 83, 0.06);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.msp-sc__coupon {
  margin-bottom: 11px;
}

.msp-sc__coupon-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  min-height: 0 !important;
  padding: 2px 0 8px !important;
  background: transparent !important;
  color: var(--msp-sc-blue-dark) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-align: left;
}

.msp-sc__coupon-toggle svg {
  width: 18px;
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.msp-sc__coupon-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.msp-sc__coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-bottom: 8px;
}

.msp-sc__coupon-form[hidden] {
  display: none !important;
}

.msp-sc__coupon-form input {
  width: 100% !important;
  height: 42px !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #c9dce5 !important;
  border-radius: 8px !important;
  background: white !important;
  box-shadow: none !important;
  color: var(--msp-sc-ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}

.msp-sc__coupon-form input:focus {
  border-color: var(--msp-sc-blue) !important;
  outline: 2px solid rgba(16, 153, 214, 0.14) !important;
}

.msp-sc__coupon-form button {
  height: 42px !important;
  min-height: 0 !important;
  padding: 0 17px !important;
  border-radius: 8px !important;
  background: var(--msp-sc-blue) !important;
  color: white !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.msp-sc__coupon-form button:hover,
.msp-sc__coupon-form button:focus {
  background: var(--msp-sc-blue-dark) !important;
}

.msp-sc__applied-coupons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.msp-sc__coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  background: #e6f8f1;
  color: #07684e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msp-sc__coupon-chip button {
  display: grid !important;
  place-items: center;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(7, 104, 78, 0.12) !important;
  color: #07684e !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.msp-sc__summary {
  padding: 11px 0 12px;
  border-top: 1px solid var(--msp-sc-border);
}

.msp-sc__summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 5px;
  color: var(--msp-sc-muted);
  font-size: 13px;
}

.msp-sc__summary strong {
  color: var(--msp-sc-ink);
  font-weight: 800;
}

.msp-sc__summary .msp-sc__discount strong {
  color: #087858;
}

.msp-sc__summary .msp-sc__total {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--msp-sc-ink);
  font-size: 16px;
  font-weight: 800;
}

.msp-sc__summary .msp-sc__total strong {
  font-size: 18px;
}

.msp-sc__summary p {
  margin: 5px 0 0 !important;
  color: var(--msp-sc-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.msp-sc__button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
}

.msp-sc__button--primary {
  background: linear-gradient(100deg, var(--msp-sc-blue) 0%, var(--msp-sc-blue-dark) 100%) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(16, 153, 214, 0.22) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.msp-sc__button--primary:hover {
  color: white !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(16, 153, 214, 0.28) !important;
}

.msp-sc__continue {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 9px !important;
  padding: 3px !important;
  background: transparent !important;
  color: var(--msp-sc-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.msp-sc__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding-top: 42px;
  padding-right: max(28px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(28px, env(safe-area-inset-left));
  text-align: center;
}

.msp-sc__empty-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7f6fa, #edf8fd);
  color: var(--msp-sc-blue-dark);
}

.msp-sc__empty-icon svg {
  width: 38px;
  stroke-width: 1.7;
}

.msp-sc__empty h3 {
  font-size: 23px !important;
  line-height: 1.2 !important;
}

.msp-sc__empty p {
  max-width: 320px;
  margin: 10px 0 24px !important;
  color: var(--msp-sc-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.msp-sc__empty .msp-sc__button {
  max-width: 280px;
}

.msp-sc.is-busy .msp-sc__drawer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.38);
  cursor: wait;
}

.msp-sc button:focus-visible,
.msp-sc a:focus-visible,
.msp-sc input:focus-visible {
  outline: 3px solid rgba(16, 153, 214, 0.28) !important;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .msp-sc__drawer {
    width: 100vw;
    max-width: none;
  }

  .msp-sc__header {
    min-height: 74px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 13px;
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .msp-sc__header h2 {
    font-size: 22px !important;
  }

  .msp-sc__items {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .msp-sc__item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
  }

  .msp-sc__image {
    width: 76px;
    height: 76px;
  }

  .msp-sc__item-info {
    padding-right: 18px;
  }

  .msp-sc__item-name {
    font-size: 14px !important;
  }

  .msp-sc__item-bottom {
    margin-top: 10px;
    gap: 9px;
  }

  #msp-side-cart .msp-sc__quantity {
    grid-template-columns: 40px 44px 40px;
    width: 124px;
    height: 42px;
  }

  #msp-side-cart .msp-sc__quantity button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  #msp-side-cart .msp-sc__quantity input {
    width: 44px !important;
    min-width: 44px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 16px !important;
    line-height: 40px !important;
  }

  .msp-sc__coupon-form input {
    font-size: 16px !important;
  }

  .msp-sc__footer {
    max-height: min(60vh, 430px);
    padding-top: 12px;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .msp-sc__summary {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .msp-sc__button {
    min-height: 48px !important;
  }
}

@media (max-width: 360px) {
  .msp-sc__item {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
  }

  .msp-sc__image {
    width: 66px;
    height: 66px;
  }

  .msp-sc__item-info {
    padding-right: 14px;
  }

  .msp-sc__item-bottom {
    flex-wrap: wrap;
  }

  .msp-sc__item-price {
    margin-left: auto;
    font-size: 14px;
  }

  .msp-sc__coupon-form {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

@media (max-height: 680px) {
  .msp-sc__header {
    min-height: 66px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }

  .msp-sc__footer {
    max-height: 62vh;
    padding-top: 9px;
  }

  .msp-sc__summary {
    padding-top: 7px;
    padding-bottom: 8px;
  }

  .msp-sc__continue {
    margin-top: 5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msp-sc__drawer,
  .msp-sc__backdrop,
  .msp-sc__button--primary {
    transition: none !important;
  }

  .msp-sc__spinner {
    animation-duration: 1.4s;
  }
}
