/* Saved carts: cart page bar (displayInfrontMultiCart) + /saved-carts page */
.ift-mc-bar,
.ift-mc-page,
.ift-mc-guest {
  --mc-ink: #111827;
  --mc-text: #374151;
  --mc-muted: #6b7280;
  --mc-line: #e5e7eb;
  --mc-line-soft: #f0f1f3;
  --mc-soft: #f9fafb;
  --mc-accent: #c75012;
  --mc-accent-hover: #a8410b;
  --mc-danger: #b91c1c;
  --mc-radius: 10px;
  color: var(--mc-text);
  font-size: 14px;
}

/* buttons */
.ift-mc-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mc-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  list-style: none;
  transition: border-color .15s, color .15s, background-color .15s;
}

.ift-mc-btn::-webkit-details-marker {
  display: none;
}

.ift-mc-btn svg {
  flex: none;
  color: var(--mc-muted);
}

.ift-mc-btn:hover,
.ift-mc-btn:focus-visible,
.ift-mc-drop[open] > .ift-mc-btn {
  border-color: var(--mc-accent);
  color: var(--mc-accent);
  text-decoration: none;
  outline: 0;
}

.ift-mc-btn:hover svg,
.ift-mc-drop[open] > .ift-mc-btn svg {
  color: var(--mc-accent);
}

.ift-mc-btn--primary {
  border-color: var(--mc-accent);
  background: var(--mc-accent);
  color: #fff;
}

.ift-mc-btn--primary svg {
  color: #fff;
}

.ift-mc-btn--primary:hover,
.ift-mc-btn--primary:focus-visible {
  border-color: var(--mc-accent-hover);
  background: var(--mc-accent-hover);
  color: #fff;
}

.ift-mc-btn--primary:hover svg {
  color: #fff;
}

.ift-mc-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--mc-text);
}

.ift-mc-btn--danger:hover,
.ift-mc-btn--danger:focus-visible {
  border-color: transparent;
  color: var(--mc-danger);
}

.ift-mc-btn--sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

.ift-mc-btn:disabled {
  opacity: .6;
  cursor: progress;
}

.ift-mc-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mc-accent);
  white-space: nowrap;
}

.ift-mc-link:hover {
  color: var(--mc-accent-hover);
  text-decoration: underline;
}

.ift-mc-count {
  display: inline-block;
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 9px;
  background: var(--mc-line-soft);
  color: var(--mc-text);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

/* dropdowns */
.ift-mc-drop {
  position: relative;
}

.ift-mc-drop > summary {
  list-style: none;
}

.ift-mc-drop__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .12);
}

.ift-mc-drop--wide .ift-mc-drop__panel {
  width: 340px;
  padding: 6px;
}

.ift-mc-field {
  display: block;
  margin: 0 0 10px;
}

.ift-mc-field span {
  display: block;
  margin: 0 0 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mc-ink);
}

.ift-mc-field input,
.ift-mc-create input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--mc-ink);
  font: inherit;
  font-size: 14px;
}

.ift-mc-field input:focus,
.ift-mc-create input:focus {
  border-color: var(--mc-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(199, 80, 18, .15);
}

.ift-mc-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mc-muted);
}

.ift-mc-switch {
  max-height: 300px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.ift-mc-switch li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
}

.ift-mc-switch li + li {
  border-top: 1px solid var(--mc-line-soft);
}

.ift-mc-switch li:hover {
  background: var(--mc-soft);
}

.ift-mc-switch__info {
  min-width: 0;
}

.ift-mc-switch__info strong {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mc-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-switch__info small {
  font-size: 12px;
  color: var(--mc-muted);
}

.ift-mc-switch form {
  flex: none;
  margin: 0;
}

.ift-mc-switch__info {
  flex: 1 1 auto;
}

.ift-mc-info {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--mc-muted);
  cursor: pointer;
}

.ift-mc-info:hover,
.ift-mc-info:focus-visible {
  border-color: var(--mc-line);
  background: #fff;
  color: var(--mc-accent);
  outline: 0;
}

/* cart contents modal */
.ift-mc-peek {
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 24, 39, .22);
  color: var(--mc-text);
  overflow: hidden;
}

.ift-mc-peek[open] {
  display: flex;
  flex-direction: column;
}

.ift-mc-peek::backdrop {
  background: rgba(17, 24, 39, .45);
}

.ift-mc-peek.is-hover {
  position: fixed;
  z-index: 1060;
  width: min(440px, calc(100vw - 16px));
  max-height: min(520px, calc(100vh - 16px));
  margin: 0;
  border: 1px solid var(--mc-line);
  box-shadow: 0 14px 36px rgba(17, 24, 39, .18);
}

.ift-mc-peek.is-hover .ift-mc-peek__foot > .ift-mc-btn {
  display: none;
}

.ift-mc-peek__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--mc-line);
}

.ift-mc-peek__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  color: var(--mc-ink);
}

.ift-mc-peek__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mc-muted);
}

.ift-mc-peek__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mc-muted);
  cursor: pointer;
}

.ift-mc-peek__close:hover {
  background: var(--mc-soft);
  color: var(--mc-ink);
}

.ift-mc-peek__lines {
  flex: 1 1 auto;
  margin: 0;
  padding: 4px 20px;
  overflow-y: auto;
  list-style: none;
}

.ift-mc-peek__line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 90px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.ift-mc-peek__line + .ift-mc-peek__line {
  border-top: 1px solid var(--mc-line-soft);
}

.ift-mc-peek__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  background: var(--mc-soft);
  overflow: hidden;
}

.ift-mc-peek__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ift-mc-peek__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ift-mc-peek__name strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mc-ink);
}

.ift-mc-peek__name small {
  font-size: 12px;
  color: var(--mc-muted);
}

.ift-mc-peek__qty {
  font-size: 13px;
  color: var(--mc-muted);
  white-space: nowrap;
}

.ift-mc-peek__price {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-ink);
  white-space: nowrap;
}

.ift-mc-peek__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--mc-line);
  background: var(--mc-soft);
  font-size: 14px;
  color: var(--mc-text);
}

.ift-mc-peek__total small {
  font-size: 12px;
  color: var(--mc-muted);
}

.ift-mc-peek__total strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-ink);
}

.ift-mc-peek__empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--mc-muted);
}

.ift-mc-peek__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--mc-line);
}

.ift-mc-peek__foot form {
  margin: 0;
}

@media (max-width: 575px) {
  .ift-mc-peek__line {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .ift-mc-peek__price {
    grid-column: 2 / -1;
    text-align: left;
  }
}

/* one-off messages after an action */
.ift-mc-flash {
  margin: 0 0 10px;
}

.ift-mc-flash__msg {
  margin: 0 0 6px;
  padding: 9px 14px;
  border: 1px solid #b7e1da;
  border-radius: 8px;
  background: #f0faf8;
  color: #134e48;
  font-size: 13.5px;
}

.ift-mc-flash__msg--error {
  border-color: #f5c2c2;
  background: #fef2f2;
  color: #991b1b;
}

/* cart page bar */
.ift-mc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
}

.ift-mc-bar__current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ift-mc-bar__label {
  font-size: 12.5px;
  color: var(--mc-muted);
  white-space: nowrap;
}

.ift-mc-bar__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: var(--mc-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ift-mc-bar .ift-mc-drop:last-of-type .ift-mc-drop__panel {
  right: 0;
  left: auto;
}

.ift-mc-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 100%;
  margin: 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--mc-line-soft);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mc-text);
}

.ift-mc-tip > span:nth-child(2) {
  flex: 1 1 auto;
}

.ift-mc-new {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--mc-accent);
  border-radius: 4px;
  color: var(--mc-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ift-mc-tip__close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--mc-muted);
  cursor: pointer;
}

.ift-mc-tip__close:hover,
.ift-mc-tip__close:focus-visible {
  background: var(--mc-line-soft);
  color: var(--mc-ink);
  outline: 0;
}

.ift-mc-guest .ift-mc-new {
  margin-right: 6px;
}

.ift-mc-guest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-soft);
  font-size: 13.5px;
}

.ift-mc-guest svg {
  margin-right: 4px;
  color: var(--mc-muted);
}

.ift-mc-guest a {
  font-weight: 600;
  color: var(--mc-accent);
}

/* manage page */
.ift-mc-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0 0 18px;
}

.ift-mc-page__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--mc-ink);
}

.ift-mc-page__intro {
  max-width: 520px;
  margin: 0;
  color: var(--mc-muted);
}

.ift-mc-create {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
}

.ift-mc-create input {
  flex: 1 1 auto;
  min-width: 0;
}

.ift-mc-create .ift-mc-btn {
  height: 38px;
}

.ift-mc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ift-mc-card {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
}

.ift-mc-card.is-current {
  border-color: var(--mc-accent);
  box-shadow: inset 3px 0 0 var(--mc-accent);
}

.ift-mc-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.ift-mc-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ift-mc-card__title h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  color: var(--mc-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e6f4f2;
  color: var(--mc-accent);
  font-size: 11.5px;
  font-weight: 600;
}

.ift-mc-card__meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--mc-muted);
}

.ift-mc-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.ift-mc-thumbs {
  display: flex;
  gap: 8px;
  min-height: 56px;
}

.ift-mc-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 3px;
  border: 1px solid var(--mc-line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ift-mc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ift-mc-thumb--more {
  background: var(--mc-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-muted);
}

.ift-mc-card__total {
  text-align: right;
  white-space: nowrap;
}

.ift-mc-card__total strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-ink);
}

.ift-mc-card__total small {
  font-size: 12px;
  color: var(--mc-muted);
}

.ift-mc-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--mc-line-soft);
}

.ift-mc-card__actions form {
  margin: 0;
}

.ift-mc-card__actions > form:last-child {
  margin-left: auto;
}

/* my account panel: one row per cart */
.ift-mc-dash {
  margin: 24px 0 0;
  padding: 20px 22px 8px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
  text-align: left;
}

.ift-mc-dash__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 6px;
}

.ift-mc-dash__heading {
  flex: 1 1 280px;
  min-width: 0;
}

.ift-mc-dash__title {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mc-ink);
}

.ift-mc-dash .ift-mc-page__intro {
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.45;
}

.ift-mc-dash__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ift-mc-dash__tools .ift-mc-drop__panel {
  right: 0;
  left: auto;
}

.ift-mc-dash__tools .ift-mc-drop__panel .ift-mc-btn {
  justify-content: center;
  width: 100%;
  height: 38px;
}

.ift-mc-dash a.ift-mc-btn:link,
.ift-mc-dash a.ift-mc-btn:visited {
  color: var(--mc-ink);
}

.ift-mc-dash a.ift-mc-btn:hover,
.ift-mc-dash a.ift-mc-btn:focus-visible {
  color: var(--mc-accent);
}

.ift-mc-dash .ift-mc-btn--ghost:hover,
.ift-mc-dash .ift-mc-btn--ghost:focus-visible {
  border-color: transparent;
  background: var(--mc-soft);
}

.ift-mc-rows {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ift-mc-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 116px 262px;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--mc-line-soft);
}

.ift-mc-row.is-current {
  margin: 0 -22px;
  padding: 16px 22px 16px 19px;
  border-left: 3px solid var(--mc-accent);
  background: #f6faf9;
}

.ift-mc-row__thumbs {
  display: flex;
  gap: 6px;
}

.ift-mc-row .ift-mc-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-color: var(--mc-line);
}

.ift-mc-thumb--empty {
  border-style: dashed !important;
  background: var(--mc-soft);
  color: #9ca3af;
}

.ift-mc-row__info {
  min-width: 0;
}

.ift-mc-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ift-mc-row__name h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mc-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-row__summary {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--mc-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-row.is-empty .ift-mc-row__summary {
  color: var(--mc-muted);
  white-space: normal;
}

.ift-mc-row__more {
  color: var(--mc-muted);
}

.ift-mc-row__meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--mc-muted);
}

.ift-mc-row__total {
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.ift-mc-row__total strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-ink);
}

.ift-mc-row__total small {
  font-size: 12px;
  color: var(--mc-muted);
}

.ift-mc-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ift-mc-row__actions form {
  margin: 0;
}

.ift-mc-row__actions .ift-mc-btn {
  justify-content: center;
  min-width: 96px;
}

.ift-mc-dash__more {
  margin: 0;
  padding: 12px 0 6px;
  border-top: 1px solid var(--mc-line-soft);
}

.ift-mc-dash__empty {
  margin: 8px 0 12px;
  color: var(--mc-muted);
}

@media (max-width: 1199.98px) {
  .ift-mc-row {
    grid-template-columns: 156px minmax(0, 1fr) auto;
    gap: 10px 16px;
  }

  .ift-mc-row__actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .ift-mc-dash {
    padding: 16px 14px 6px;
  }

  .ift-mc-dash__tools {
    width: 100%;
  }

  .ift-mc-dash__tools > * {
    flex: 1 1 0;
  }

  .ift-mc-dash__tools .ift-mc-btn {
    justify-content: center;
    width: 100%;
    height: 40px;
  }

  .ift-mc-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 14px 0;
  }

  .ift-mc-row.is-current {
    margin: 0 -14px;
    padding: 14px 14px 14px 11px;
  }

  .ift-mc-row__thumbs {
    display: none;
  }

  .ift-mc-row__name h3 {
    white-space: normal;
  }

  .ift-mc-row__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-column: 1 / -1;
  }

  .ift-mc-row__actions .ift-mc-btn {
    width: 100%;
    height: 42px;
  }
}

.ift-mc-empty {
  padding: 28px 20px;
  border: 1px dashed var(--mc-line);
  border-radius: var(--mc-radius);
  text-align: center;
}

.ift-mc-empty p {
  margin: 0 0 8px;
}

@media (max-width: 575.98px) {
  .ift-mc-bar {
    padding: 10px 12px;
  }

  .ift-mc-bar__actions {
    width: 100%;
  }

  .ift-mc-drop__panel {
    position: fixed;
    top: auto;
    right: 12px !important;
    bottom: 12px;
    left: 12px !important;
    width: auto;
    max-width: none;
  }

  .ift-mc-drop--wide .ift-mc-drop__panel {
    width: auto;
  }

  .ift-mc-create {
    max-width: none;
  }

  .ift-mc-card {
    padding: 14px;
  }

  .ift-mc-card__body {
    align-items: flex-end;
  }

  .ift-mc-thumb {
    width: 48px;
    height: 48px;
  }

  .ift-mc-card__actions > form:last-child {
    margin-left: 0;
  }
}

/* manage page (/saved-carts) — card layout */
.ift-mc-page .ift-mc-page__head {
  align-items: center;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--mc-line);
}

.ift-mc-page .ift-mc-page__heading {
  flex: 1 1 320px;
  min-width: 0;
}

.ift-mc-page .ift-mc-page__title {
  font-size: 24px;
  line-height: 1.2;
}

.ift-mc-page .ift-mc-page__intro {
  font-size: 14px;
  line-height: 1.5;
}

.ift-mc-page .ift-mc-create {
  flex: 0 1 440px;
}

.ift-mc-page .ift-mc-list {
  gap: 14px;
}

.ift-mc-page .ift-mc-card {
  padding: 18px 20px 16px;
  transition: border-color .15s, box-shadow .15s;
}

.ift-mc-page .ift-mc-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
}

.ift-mc-page .ift-mc-card.is-current,
.ift-mc-page .ift-mc-card.is-current:hover {
  border-color: var(--mc-accent);
  box-shadow: inset 3px 0 0 var(--mc-accent);
}

.ift-mc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ift-mc-card__heading {
  min-width: 0;
}

.ift-mc-page .ift-mc-card__title h3 {
  font-size: 17px;
  line-height: 1.3;
}

.ift-mc-page .ift-mc-card__meta {
  margin: 3px 0 0;
  font-size: 13px;
}

.ift-mc-page .ift-mc-card__total {
  flex: none;
  line-height: 1.2;
}

.ift-mc-page .ift-mc-card__total strong {
  font-size: 19px;
}

.ift-mc-items {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ift-mc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--mc-text);
}

.ift-mc-page .ift-mc-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 3px;
}

.ift-mc-item__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ift-mc-item__qty {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-muted);
}

.ift-mc-item--more {
  padding-left: 60px;
  font-size: 13px;
  color: var(--mc-muted);
}

.ift-mc-page .ift-mc-card__actions {
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
}

.ift-mc-card__main,
.ift-mc-card__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ift-mc-card__tools {
  gap: 2px;
}

.ift-mc-card__main form,
.ift-mc-card__tools form {
  margin: 0;
}

.ift-mc-page .ift-mc-card a.ift-mc-btn:link,
.ift-mc-page .ift-mc-card a.ift-mc-btn:visited,
.ift-mc-page .ift-mc-empty a.ift-mc-btn:link,
.ift-mc-page .ift-mc-empty a.ift-mc-btn:visited {
  color: var(--mc-ink);
}

.ift-mc-page .ift-mc-card a.ift-mc-btn:hover,
.ift-mc-page .ift-mc-card a.ift-mc-btn:focus-visible {
  color: var(--mc-accent);
}

.ift-mc-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mc-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s, color .15s;
}

.ift-mc-tool::-webkit-details-marker {
  display: none;
}

.ift-mc-tool:hover,
.ift-mc-tool:focus-visible,
.ift-mc-drop[open] > .ift-mc-tool {
  background: var(--mc-soft);
  color: var(--mc-ink);
  outline: 0;
}

.ift-mc-tool--danger:hover,
.ift-mc-tool--danger:focus-visible {
  background: #fef2f2;
  color: var(--mc-danger);
}

.ift-mc-card__tools .ift-mc-drop__panel {
  right: 0;
  left: auto;
}

@media (max-width: 767.98px) {
  body.page-ift-saved-carts .account-header-row,
  body.page-ift-saved-carts .my-account-side-links {
    display: none;
  }

  body.page-ift-saved-carts .my-account-page-content-wrapper > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .ift-mc-page .ift-mc-page__head {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .ift-mc-page .ift-mc-page__title {
    font-size: 22px;
  }

  .ift-mc-page .ift-mc-create {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .ift-mc-page .ift-mc-create input {
    flex: 1 1 100%;
    height: 44px;
  }

  .ift-mc-page .ift-mc-create .ift-mc-btn {
    flex: 1 1 100%;
    justify-content: center;
    height: 44px;
  }

  .ift-mc-page .ift-mc-card {
    padding: 14px 14px 10px;
  }

  .ift-mc-page .ift-mc-card__title h3 {
    font-size: 16px;
    white-space: normal;
  }

  .ift-mc-page .ift-mc-card__total strong {
    font-size: 17px;
  }

  .ift-mc-page .ift-mc-thumb {
    width: 44px;
    height: 44px;
  }

  .ift-mc-item--more {
    padding-left: 56px;
  }

  .ift-mc-page .ift-mc-card__actions {
    display: block;
  }

  .ift-mc-card__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ift-mc-card__main > :only-child {
    grid-column: 1 / -1;
  }

  .ift-mc-card__main .ift-mc-btn {
    justify-content: center;
    width: 100%;
    height: 42px;
  }

  .ift-mc-card__tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    margin-top: 8px;
  }

  .ift-mc-card__tools .ift-mc-tool {
    justify-content: center;
    width: 100%;
    height: 40px;
  }

  .ift-mc-page .ift-mc-card__actions > form:last-child {
    margin-left: 0;
  }
}

/* cart page on phones: full-width band like the other cart sections */
@media (max-width: 767.98px) {
  body#cart #main.ift-cart-v2 .ift-mc-bar,
  body#cart #main.ift-cart-v2 .ift-mc-guest {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    border-width: 1px 0;
    border-radius: 0;
  }
}
