.msh-cart-preview-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.msh-cart-preview-trigger {
  font-family: inherit;
  cursor: pointer;
}

.msh-cart-flight {
  position: fixed;
  z-index: 100000;
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #eaf2ff;
  box-shadow: 0 12px 30px rgba(22, 55, 108, .32);
  color: #315fae;
  font-size: 20px;
  font-weight: 800;
  pointer-events: none;
  will-change: transform, opacity;
}

.msh-cart-flight img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msh-cart-flight--fallback {
  background: #ffe391;
  color: #101b2c;
}

.msh-cart-form-feedback {
  width: 100%;
  margin: 12px 0 0 !important;
  padding: 11px 14px;
  border: 1px solid #d69791;
  border-radius: 14px;
  background: #fff1ee;
  color: #7a2f29;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

/* The cart flight and live counter replace WooCommerce's appended text link. */
.added_to_cart.wc-forward {
  display: none !important;
}

.msh-cart-preview-trigger.is-cart-arrival,
a.msh-cart.is-cart-arrival,
.msh-mobile-cart.is-cart-arrival {
  animation: msh-cart-arrival 620ms cubic-bezier(.22, .78, .2, 1);
}

.msh-cart-preview-trigger.is-cart-arrival .msh-cart-count,
a.msh-cart.is-cart-arrival .msh-cart-count,
.msh-mobile-cart.is-cart-arrival .msh-cart-count {
  animation: msh-cart-count-arrival 620ms cubic-bezier(.22, .78, .2, 1);
}

@keyframes msh-cart-arrival {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.06); }
}

@keyframes msh-cart-count-arrival {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.35); background: #ffe391; color: #101b2c; }
}

.msh-cart-preview__overlay[hidden],
.msh-cart-preview[hidden] {
  display: none !important;
}

.msh-cart-preview__overlay {
  position: fixed;
  z-index: 998;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 36, .48);
  backdrop-filter: blur(2px);
  cursor: default;
}

.msh-cart-preview {
  position: absolute;
  z-index: 999;
  top: calc(100% + 13px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 150px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(30, 30, 30, .12);
  border-radius: 24px;
  background: #fdfaf3;
  box-shadow: 0 24px 70px rgba(24, 38, 59, .22);
  color: #1e1e1c;
  overscroll-behavior: contain;
}

.msh-cart-preview::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 47px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(30, 30, 30, .12);
  border-left: 1px solid rgba(30, 30, 30, .12);
  background: #fdfaf3;
  transform: rotate(45deg);
}

.msh-cart-preview__header,
.msh-cart-preview__line,
.msh-cart-preview__footer > p,
.msh-cart-preview__actions {
  display: flex;
  align-items: center;
}

.msh-cart-preview__header {
  position: relative;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
}

.msh-cart-preview__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #4d7fe5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.msh-cart-preview h2,
.msh-cart-preview h3,
.msh-cart-preview p {
  margin: 0;
}

.msh-cart-preview h2 {
  color: inherit;
  font-family: Lora, Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}

.msh-cart-preview__close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid rgba(30, 30, 30, .13);
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.msh-cart-preview__items {
  border-top: 1px solid rgba(30, 30, 30, .1);
}

.msh-cart-preview__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(30, 30, 30, .1);
}

.msh-cart-preview__thumb {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 14px;
  background: #eaf2ff;
}

.msh-cart-preview__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msh-cart-preview__item-copy {
  min-width: 0;
}

.msh-cart-preview h3 {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.msh-cart-preview h3 a {
  color: inherit;
}

.msh-cart-preview__meta {
  margin-top: 5px;
  color: #6c6b66;
  font-size: 12px;
  line-height: 1.35;
}

.msh-cart-preview__selection {
  display: inline-flex;
  margin-top: 7px !important;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #315fae;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.msh-cart-preview__meta dl.variation,
.msh-cart-preview__meta dl.variation dt,
.msh-cart-preview__meta dl.variation dd,
.msh-cart-preview__meta dl.variation p {
  margin: 0;
}

.msh-cart-preview__meta dl.variation dt,
.msh-cart-preview__meta dl.variation dd {
  display: inline;
  float: none;
}

.msh-cart-preview__meta dl.variation dt::after {
  content: "";
}

.msh-cart-preview__meta dl.variation dd::after {
  content: "\A";
  white-space: pre;
}

.msh-cart-preview__line {
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px !important;
  color: #6c6b66;
  font-size: 12px;
}

.msh-cart-preview__line strong {
  color: #1e1e1c;
  font-size: 13px;
}

.msh-cart-preview__more {
  padding: 11px 0 0;
  color: #4d7fe5;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.msh-cart-preview__footer {
  padding-top: 17px;
}

.msh-cart-preview__footer > p {
  justify-content: space-between;
  color: #6c6b66;
  font-size: 14px;
}

.msh-cart-preview__footer > p strong {
  color: #1e1e1c;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
}

.msh-cart-preview__actions {
  gap: 9px;
  margin-top: 15px;
}

.msh-cart-preview__actions a {
  display: flex;
  min-height: 44px;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #4d7fe5;
  border-radius: 999px;
  color: #4d7fe5;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.msh-cart-preview__actions a.is-primary {
  background: #4d7fe5;
  color: #fff;
}

.msh-cart-preview__empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-top: 1px solid rgba(30, 30, 30, .1);
  color: #6c6b66;
  text-align: center;
}

.msh-cart-preview__empty span {
  color: #4d7fe5;
  font-size: 30px;
}

.msh-cart-preview--roomy {
  width: min(510px, calc(100vw - 32px));
  padding: 26px;
}

.msh-cart-preview--roomy .msh-cart-preview__item {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 17px;
  padding: 18px 0;
}

.msh-cart-preview--roomy .msh-cart-preview__thumb {
  width: 82px;
  height: 82px;
}

.msh-cart-preview--roomy h3 {
  font-size: 16px;
}

.msh-cart-preview--drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, calc(100vw - 24px));
  max-height: none;
  padding: 30px 28px;
  border-width: 0 0 0 1px;
  border-radius: 30px 0 0 30px;
  box-shadow: -24px 0 70px rgba(24, 38, 59, .22);
}

.msh-cart-preview--drawer::before {
  display: none;
}

body.msh-cart-preview-open {
  overflow: hidden;
}

html[data-milksy-theme="dark"] .msh-cart-preview {
  border-color: #354a66;
  background: #142135;
  color: #faf6ec;
  box-shadow: 0 24px 76px rgba(0, 0, 0, .5);
}

html[data-milksy-theme="dark"] .msh-cart-flight {
  border-color: #213149;
  background: #203759;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .46);
}

html[data-milksy-theme="dark"] .msh-cart-form-feedback {
  border-color: #804c50;
  background: #2f2027;
  color: #ffd0cb;
}

html[data-milksy-theme="dark"] .msh-cart-preview::before {
  border-color: #354a66;
  background: #142135;
}

html[data-milksy-theme="dark"] .msh-cart-preview__close {
  border-color: #354a66;
  background: #1a2a40;
}

html[data-milksy-theme="dark"] .msh-cart-preview__items,
html[data-milksy-theme="dark"] .msh-cart-preview__item,
html[data-milksy-theme="dark"] .msh-cart-preview__empty {
  border-color: #354a66;
}

html[data-milksy-theme="dark"] .msh-cart-preview__meta,
html[data-milksy-theme="dark"] .msh-cart-preview__line,
html[data-milksy-theme="dark"] .msh-cart-preview__footer > p,
html[data-milksy-theme="dark"] .msh-cart-preview__empty {
  color: #acb9cc;
}

html[data-milksy-theme="dark"] .msh-cart-preview__selection {
  background: #203759;
  color: #b9ceff;
}

html[data-milksy-theme="dark"] .msh-cart-preview__line strong,
html[data-milksy-theme="dark"] .msh-cart-preview__footer > p strong {
  color: #faf6ec;
}

html[data-milksy-theme="dark"] .msh-cart-preview__eyebrow,
html[data-milksy-theme="dark"] .msh-cart-preview__more,
html[data-milksy-theme="dark"] .msh-cart-preview__empty span {
  color: #8eb2ff;
}

@media (max-width: 900px) {
  .msh-cart-preview-wrap--desktop {
    display: none;
  }

  .msh-cart-preview {
    position: fixed;
    z-index: 999;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: min(78vh, 680px);
    padding: 21px 18px 18px;
    border: 1px solid rgba(30, 30, 30, .12);
    border-radius: 27px;
    box-shadow: 0 -20px 65px rgba(24, 38, 59, .28);
  }

  .msh-cart-preview::before {
    display: none;
  }

  .msh-cart-preview--roomy .msh-cart-preview__item,
  .msh-cart-preview--drawer .msh-cart-preview__item {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
  }

  .msh-cart-preview--roomy .msh-cart-preview__thumb,
  .msh-cart-preview--drawer .msh-cart-preview__thumb {
    width: 66px;
    height: 66px;
  }

  .msh-cart-preview--roomy h3,
  .msh-cart-preview--drawer h3 {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msh-cart-preview-trigger.is-cart-arrival,
  a.msh-cart.is-cart-arrival,
  .msh-mobile-cart.is-cart-arrival,
  .msh-cart-preview-trigger.is-cart-arrival .msh-cart-count,
  a.msh-cart.is-cart-arrival .msh-cart-count,
  .msh-mobile-cart.is-cart-arrival .msh-cart-count {
    animation-duration: 1ms;
  }
}
