#block-martis-cart,
#block-martis-cart .container-wrap,
#block-martis-cart .block-content,
#block-martis-cart .cart--cart-block {
  --jd-mini-deep: #3b0a5c;
  --jd-mini-purple: #6716aa;
  --jd-mini-violet: #9d4edd;
  --jd-mini-lilac: #f3e8ff;
  --jd-mini-mist: #faf5ff;
  --jd-mini-ink: #1a0a24;
  --jd-mini-muted: #5c5470;
  --jd-mini-border: #e9d5ff;
  --jd-mini-danger: #a12632;
  overflow: visible !important;
}

#block-martis-cart .container-wrap,
#block-martis-cart .block-content {
  margin: 0 !important;
  padding: 0 !important;
}

html body #wrapper #block-martis-cart .cart--cart-block {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
}

html body #wrapper #block-martis-cart .cart-block--summary,
html body #wrapper .header-cart .cart-block--summary,
html body #wrapper .cart--cart-block .cart-block--summary {
  border: 0 !important;
  border-color: transparent !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #wrapper #block-martis-cart .cart-block--link__expand {
  align-items: center !important;
  background: var(--jd-mini-deep) !important;
  border: 2px solid #24063a !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(59, 10, 92, 0.18) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  height: 48px !important;
  justify-content: center !important;
  min-width: 72px !important;
  padding: 0 18px !important;
  position: relative;
  text-decoration: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

html body #wrapper #block-martis-cart .cart-block--link__expand:hover,
html body #wrapper #block-martis-cart .cart-block--link__expand[aria-expanded='true'] {
  background: var(--jd-mini-purple) !important;
  border-color: var(--jd-mini-deep) !important;
  box-shadow: 0 12px 26px rgba(59, 10, 92, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html body #wrapper #block-martis-cart .cart-block--link__expand:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72), 0 0 0 7px rgba(157, 78, 221, 0.45) !important;
  outline: 2px solid transparent !important;
}

html body #wrapper #block-martis-cart .cart-block--link__expand .jd-cart-icon {
  color: #ffffff !important;
  display: block !important;
  height: 23px;
  margin: 0 !important;
  width: 23px;
}

html body #wrapper #block-martis-cart .jd-cart-icon svg,
html body #wrapper #block-martis-cart .jd-cart-empty-icon svg,
html body #wrapper #block-martis-cart .cart-item-image--placeholder svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 100%;
}

html body #wrapper #block-martis-cart .cart-block--summary__count {
  align-items: center;
  background: #ffffff !important;
  border: 2px solid var(--jd-mini-deep);
  border-radius: 999px !important;
  color: var(--jd-mini-deep) !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  height: 21px !important;
  justify-content: center;
  line-height: 1 !important;
  min-width: 21px !important;
  padding: 0 4px !important;
  position: absolute;
  right: -7px;
  top: -7px;
}

html body #wrapper #block-martis-cart .cart-block--contents {
  background: #ffffff !important;
  border: 1px solid var(--jd-mini-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 58px rgba(59, 10, 92, 0.22) !important;
  color: var(--jd-mini-ink) !important;
  display: none;
  font-size: 0.94rem !important;
  left: auto;
  margin: 0 !important;
  max-height: min(70vh, 38rem);
  max-width: calc(100vw - 24px);
  min-width: 320px;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 380px;
  z-index: 1200;
}

html body #wrapper #block-martis-cart .cart-block--contents.jd-cart-panel--open {
  display: block;
  left: var(--jd-cart-panel-left) !important;
  max-height: var(--jd-cart-panel-max-height, min(70vh, 38rem));
  position: fixed !important;
  right: auto !important;
  top: var(--jd-cart-panel-top) !important;
  width: var(--jd-cart-panel-width, 380px) !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__inner {
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  padding: 0 !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__heading {
  background: linear-gradient(120deg, var(--jd-mini-deep), var(--jd-mini-violet));
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 !important;
  padding: 15px 18px !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__items {
  margin: 0 !important;
  max-height: min(48vh, 25rem);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 6px 16px !important;
  scrollbar-color: var(--jd-mini-border) transparent;
  scrollbar-width: thin;
}

html body #wrapper #block-martis-cart .cart-block-item {
  align-items: center;
  border-bottom: 1px solid #e2eee7 !important;
  display: grid !important;
  gap: 11px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  margin: 0 !important;
  min-height: 78px;
  padding: 12px 0 !important;
}

html body #wrapper #block-martis-cart .cart-block-item:last-child {
  border-bottom: 0 !important;
}

html body #wrapper #block-martis-cart .cart-item-image {
  align-items: center;
  background: var(--jd-mini-mist) !important;
  border: 1px solid var(--jd-mini-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  display: flex;
  height: 54px !important;
  justify-content: center;
  min-height: 54px !important;
  min-width: 54px !important;
  overflow: hidden;
  padding: 0 !important;
  width: 54px !important;
}

html body #wrapper #block-martis-cart .cart-item-image :is(.field, .field-item, picture) {
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

html body #wrapper #block-martis-cart .cart-item-image img {
  border: 0 !important;
  border-radius: 11px !important;
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 4px !important;
  width: 100% !important;
}

html body #wrapper #block-martis-cart .cart-item-image--placeholder {
  color: var(--jd-mini-purple) !important;
  font-size: 1.25rem !important;
}

html body #wrapper #block-martis-cart .cart-item-body {
  min-width: 0;
}

html body #wrapper #block-martis-cart .cart-item-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--jd-mini-ink) !important;
  display: -webkit-box;
  font-size: 0.91rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  overflow: hidden;
}

html body #wrapper #block-martis-cart .cart-item-qty {
  color: var(--jd-mini-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  margin-top: 5px !important;
}

html body #wrapper #block-martis-cart .cart-item-price {
  color: var(--jd-mini-purple) !important;
  font-size: 0.93rem !important;
  font-weight: 850 !important;
  text-align: right;
  white-space: nowrap;
}
html body #wrapper #block-martis-cart .cart-block--contents__items table {
  border: 0 !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  table-layout: fixed;
  width: 100% !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__items td {
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #e2eee7 !important;
  color: var(--jd-mini-ink) !important;
  font-size: 0.84rem !important;
  padding: 12px 5px !important;
  vertical-align: middle !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__items .views-field-quantity {
  color: var(--jd-mini-muted) !important;
  font-weight: 750 !important;
  width: 42px !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__items .views-field-title {
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}

html body #wrapper #block-martis-cart .cart-block--contents__items .views-field-total-price__number {
  color: var(--jd-mini-purple) !important;
  font-weight: 850 !important;
  text-align: right !important;
  white-space: nowrap;
  width: 72px !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links {
  background: var(--jd-mini-mist) !important;
  border-top: 1px solid var(--jd-mini-border) !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: 1fr 1fr;
  margin: 0 !important;
  padding: 13px 16px 15px !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a,
html body #wrapper #block-martis-cart .cart-block-empty a.view-more-products {
  align-items: center;
  border-radius: 10px !important;
  display: inline-flex !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  justify-content: center;
  line-height: 1.2 !important;
  min-height: 44px;
  padding: 10px 12px !important;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a:first-child {
  background: var(--jd-mini-violet) !important;
  border: 1px solid var(--jd-mini-violet) !important;
  color: #ffffff !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a:first-child:hover {
  background: var(--jd-mini-purple) !important;
  border-color: var(--jd-mini-purple) !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a[href='/cart']::before {
  content: none !important;
  display: none !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a.view-more-products {
  background: #ffffff !important;
  border: 1px solid var(--jd-mini-border) !important;
  color: var(--jd-mini-purple) !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a.view-more-products:hover {
  background: var(--jd-mini-lilac) !important;
  border-color: var(--jd-mini-violet) !important;
}

html body #wrapper #block-martis-cart .cart-block--contents__links a:focus-visible,
html body #wrapper #block-martis-cart .cart-block-empty a:focus-visible {
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.24) !important;
  outline: 2px solid transparent !important;
}

html body #wrapper #block-martis-cart .cart-block-empty {
  background: linear-gradient(180deg, #ffffff 0%, var(--jd-mini-mist) 100%) !important;
  color: var(--jd-mini-muted) !important;
  min-width: 0;
  padding: 26px 20px 22px !important;
  text-align: center;
}

html body #wrapper #block-martis-cart .cart-block-empty > .jd-cart-empty-icon {
  align-items: center;
  background: var(--jd-mini-lilac) !important;
  border-radius: 999px;
  color: var(--jd-mini-purple) !important;
  display: inline-flex !important;
  height: 58px;
  justify-content: center;
  margin: 0 auto 12px !important;
  padding: 16px;
  width: 58px;
}

html body #wrapper #block-martis-cart .cart-block-empty__title {
  color: white !important;
  -webkit-text-fill-color: white !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
  margin: 0 0 5px !important;
}

html body #wrapper #block-martis-cart .cart-block-empty p {
  color: var(--jd-mini-muted) !important;
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
  margin: 0 auto 15px !important;
}

html body #wrapper #block-martis-cart .cart-block-empty a.view-more-products {
  background: var(--jd-mini-violet) !important;
  border: 1px solid var(--jd-mini-violet) !important;
  color: #ffffff !important;
  margin: 0 auto;
  width: min(100%, 220px);
}

@media (max-width: 767px) {
  html body #wrapper #block-martis-cart .cart-block--link__expand {
    height: 46px !important;
    min-width: 62px !important;
    padding: 0 15px !important;
  }

  html body #wrapper #block-martis-cart .cart-block--contents {
    border-radius: 16px !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 240px !important;
    width: calc(100vw - 24px);
  }

  html body #wrapper #block-martis-cart .cart-block-item {
    gap: 9px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 70px;
  }

  html body #wrapper #block-martis-cart .cart-item-image {
    height: 48px !important;
    min-height: 48px !important;
    min-width: 48px !important;
    width: 48px !important;
  }

  html body #wrapper #block-martis-cart .cart-block--contents__links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  html body #wrapper #block-martis-cart .cart-block--contents__items {
    padding-inline: 12px !important;
  }

  html body #wrapper #block-martis-cart .cart-block-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html body #wrapper #block-martis-cart .cart-item-price {
    grid-column: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #wrapper #block-martis-cart *,
  html body #wrapper #block-martis-cart *::before,
  html body #wrapper #block-martis-cart *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
html body #wrapper #block-martis-cart .cart-block--contents__items {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body #wrapper #block-martis-cart .cart-block-custom-items {
  margin: 0 !important;
  padding: 0 !important;
}

html body #wrapper #block-martis-cart .cart-block-custom-items > .cart-block-item:first-child {
  margin-top: 0 !important;
}
