:root {
  --mf-cart-accent: #559eeb;
  --mf-cart-accent-dark: #397fc4;
  --mf-cart-ink: #343434;
  --mf-cart-bg: #fbfaf9;
  --mf-cart-white: #ffffff;
  --mf-cart-border: rgba(52, 52, 52, 0.11);
  --mf-cart-muted: rgba(52, 52, 52, 0.68);
  --mf-cart-success: #00a650;
  --mf-cart-success-dark: #008a43;
}

cart-drawer.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

cart-drawer.drawer.active {
  visibility: visible;
  pointer-events: auto;
}

cart-drawer.drawer:not(.active) {
  visibility: hidden !important;
  pointer-events: none !important;
}

cart-drawer.drawer:not(.active) .drawer__inner {
  transform: translateX(100%) !important;
}

.cart-drawer,
.cart-drawer__overlay {
  position: absolute;
  inset: 0;
}

.cart-drawer__overlay {
  background: rgba(20, 20, 20, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer.active .cart-drawer__overlay {
  opacity: 1;
}

.drawer__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 520px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mf-cart-bg);
  color: var(--mf-cart-ink);
  box-shadow: -16px 0 36px rgba(20, 20, 20, 0.14);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.drawer.active .drawer__inner {
  transform: translateX(0);
}

.drawer__header {
  flex: 0 0 auto;
  min-height: 82px;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mf-cart-border);
  background: var(--mf-cart-bg);
}

.mf-cart-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer__heading {
  margin: 0;
  color: var(--mf-cart-accent);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.mf-cart-heading__count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mf-cart-accent);
  color: var(--mf-cart-white);
  font-size: 1.2rem;
  font-weight: 800;
}

.drawer__close {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mf-cart-ink);
  cursor: pointer;
}

.drawer__close:hover {
  background: rgba(52, 52, 52, 0.06);
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

cart-drawer-items {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
}

cart-drawer-items.is-empty {
  display: none;
}

.cart-drawer__form,
.drawer__contents {
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.drawer__contents {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 52, 52, 0.25) transparent;
}

.mf-cart-list {
  padding: 10px 22px 18px;
}

.mf-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mf-cart-border);
}

.mf-cart-item:last-child {
  border-bottom: 0;
}

.mf-cart-item__media {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(52, 52, 52, 0.07);
  border-radius: 10px;
  background: var(--mf-cart-white);
}

.mf-cart-item__media .cart-item__image,
.mf-cart-item__media .placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mf-cart-item__details {
  min-width: 0;
}

.mf-cart-item__name {
  display: block;
  margin: 0 0 5px;
  color: var(--mf-cart-ink);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 750;
  text-decoration: none;
}

.mf-cart-item__name:hover {
  color: var(--mf-cart-accent);
}

.mf-cart-item__options,
.mf-cart-item__property,
.mf-cart-item__plan {
  margin: 0 0 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: var(--mf-cart-muted);
  font-size: 1.15rem;
  line-height: 1.35;
}

.mf-cart-item__property a {
  color: inherit;
  text-decoration: underline;
}

.mf-cart-item__price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.mf-cart-item__price s {
  color: var(--mf-cart-muted);
  font-size: 1.15rem;
}

.mf-cart-item__price strong {
  color: var(--mf-cart-success);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 850;
}

.mf-cart-item__price small {
  color: var(--mf-cart-success-dark);
  font-size: 1.05rem;
  font-weight: 750;
}

.mf-cart-item__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-cart-quantity.quantity {
  width: 108px;
  min-height: 36px;
  height: 36px;
  border: 1px solid var(--mf-cart-border);
  border-radius: 8px;
  background: var(--mf-cart-white);
}

.mf-cart-quantity.quantity::before,
.mf-cart-quantity.quantity::after {
  display: none;
}

.mf-cart-quantity .quantity__button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mf-cart-ink);
}

.mf-cart-quantity .quantity__button svg {
  width: 12px;
  height: 12px;
}

.mf-cart-quantity .quantity__input {
  width: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mf-cart-accent);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.mf-cart-quantity .quantity__input::-webkit-inner-spin-button,
.mf-cart-quantity .quantity__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.mf-cart-remove {
  width: 36px;
  height: 36px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(52, 52, 52, 0.58);
  cursor: pointer;
}

.mf-cart-remove:hover {
  background: rgba(85, 158, 235, 0.11);
  color: var(--mf-cart-accent);
}

.mf-cart-remove svg {
  width: 17px;
  height: 17px;
}

.mf-cart-item > .loading__spinner {
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  background: rgba(251, 250, 249, 0.72);
}

.cart__items--disabled {
  pointer-events: none;
  opacity: 0.65;
}

.cart-item__error {
  margin-top: 7px;
  color: #b42318;
  font-size: 1.15rem;
}

.mf-cart-errors {
  padding: 0 22px 10px;
  color: #b42318;
  font-size: 1.2rem;
}

.mf-cart-discounts {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
  list-style: none;
  color: var(--mf-cart-accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.mf-cart-discounts li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mf-cart-discounts svg {
  width: 14px;
  height: 14px;
}

.drawer__footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--mf-cart-border);
  background: var(--mf-cart-white);
  box-shadow: 0 -10px 26px rgba(20, 20, 20, 0.05);
}

cart-drawer.is-empty .drawer__footer {
  display: none;
}

.cart-drawer__footer {
  padding: 18px 22px 0;
}

.mf-cart-discounts--summary {
  margin: 0 0 10px;
}

.mf-cart-summary__total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.mf-cart-summary__total > span {
  margin-right: 2px;
  color: var(--mf-cart-ink);
  font-size: 1.8rem;
}

.mf-cart-summary__total strong {
  color: var(--mf-cart-success);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mf-cart-summary__total small {
  color: var(--mf-cart-success-dark);
  font-size: 1.15rem;
  font-weight: 750;
}

.mf-cart-summary p {
  margin: 6px 0 14px;
  color: var(--mf-cart-muted);
  font-size: 1.2rem;
}

.mf-cart-summary p strong {
  color: var(--mf-cart-ink);
}

.mf-cart-checkout {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: var(--mf-cart-success);
  color: var(--mf-cart-white);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.mf-cart-checkout:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

/* Mantém os botões de pagamento adicionados por apps no mesmo verde da finalização. */
#CartDrawer .drawer__footer .cart-drawer__footer > :is(button, a, input[type='button'], input[type='submit']),
#CartDrawer .drawer__footer .cart-drawer__footer > * :is(button, a, input[type='button'], input[type='submit']) {
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  border-color: var(--mf-cart-success) !important;
  background: var(--mf-cart-success) !important;
  color: var(--mf-cart-white) !important;
  font-size: 1.15rem !important;
  line-height: 1.1 !important;
}

#CartDrawer .drawer__footer .cart-drawer__footer > :is(button, a, input[type='button'], input[type='submit']):hover,
#CartDrawer .drawer__footer .cart-drawer__footer > * :is(button, a, input[type='button'], input[type='submit']):hover {
  background: var(--mf-cart-success-dark) !important;
  border-color: var(--mf-cart-success-dark) !important;
}

.mf-cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mf-cart-checkout svg {
  width: 23px;
  height: 23px;
}

.mf-cart-shipping {
  width: 100%;
  margin: 10px 0 12px;
  padding: 9px 12px 9px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(85, 158, 235, 0.24);
  border-left: 4px solid var(--mf-cart-accent);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(85, 158, 235, 0.13), rgba(85, 158, 235, 0.05));
  color: var(--mf-cart-ink);
  text-align: left;
}

.mf-cart-shipping__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mf-cart-accent);
  color: var(--mf-cart-white);
}

.mf-cart-shipping__icon svg {
  width: 16px;
  height: 16px;
}

.mf-cart-shipping__text {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.mf-cart-shipping__text small {
  color: var(--mf-cart-accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.mf-cart-shipping__text strong {
  color: var(--mf-cart-ink);
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 850;
}

.mf-cart-shipping__check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(85, 158, 235, 0.16);
  color: var(--mf-cart-accent-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.mf-cart-upsell {
  margin: 2px 22px 18px;
  padding: 14px 0 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(85, 158, 235, 0.18);
  border-radius: 14px;
  background: var(--mf-cart-white);
  box-shadow: 0 8px 24px rgba(52, 52, 52, 0.05);
}

.mf-cart-upsell__heading {
  margin-bottom: 10px;
  padding-right: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mf-cart-upsell__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--mf-cart-accent-dark);
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mf-cart-upsell h3 {
  margin: 0;
  color: var(--mf-cart-ink);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 850;
}

.mf-cart-upsell__hint {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--mf-cart-muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.mf-cart-upsell__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 14px 4px 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.mf-cart-upsell__track::-webkit-scrollbar {
  display: none;
}

.mf-cart-upsell__track:active {
  cursor: grabbing;
}

.mf-cart-upsell__card {
  flex: 0 0 min(88%, 370px);
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  scroll-snap-align: start;
  border: 1px solid rgba(52, 52, 52, 0.09);
  border-radius: 12px;
  background: var(--mf-cart-bg);
}

.mf-cart-upsell__media {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mf-cart-white);
}

.mf-cart-upsell__media img,
.mf-cart-upsell__media .placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mf-cart-upsell__content {
  min-width: 0;
}

.mf-cart-upsell__type {
  display: block;
  margin-bottom: 3px;
  color: var(--mf-cart-accent-dark);
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mf-cart-upsell__title {
  color: var(--mf-cart-ink);
  font-size: 1.16rem;
  line-height: 1.28;
  font-weight: 780;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mf-cart-upsell__compatibility {
  margin: 4px 0 8px;
  color: var(--mf-cart-muted);
  font-size: 0.96rem;
  line-height: 1.25;
}

.mf-cart-upsell__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mf-cart-upsell__price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.mf-cart-upsell__price strong {
  color: var(--mf-cart-success);
  font-size: 1.22rem;
  line-height: 1;
  font-weight: 900;
}

.mf-cart-upsell__price small {
  color: var(--mf-cart-success-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.mf-cart-upsell__button {
  min-height: 32px;
  padding: 7px 10px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--mf-cart-accent);
  color: var(--mf-cart-white);
  font: inherit;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.mf-cart-upsell__button:hover {
  background: var(--mf-cart-accent-dark);
}

.mf-cart-upsell__button[aria-busy='true'] {
  opacity: 0.7;
  cursor: wait;
}

.drawer__inner-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.mf-cart-empty {
  max-width: 320px;
  text-align: center;
}

.mf-cart-empty__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: flex;
  color: var(--mf-cart-accent);
}

.mf-cart-empty__icon svg {
  width: 100%;
  height: 100%;
}

.mf-cart-empty h3 {
  margin: 0 0 7px;
  color: var(--mf-cart-ink);
  font-size: 2rem;
}

.mf-cart-empty p {
  margin: 0 0 20px;
  color: var(--mf-cart-muted);
  font-size: 1.35rem;
  line-height: 1.5;
}

.mf-cart-empty__button {
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--mf-cart-accent);
  color: var(--mf-cart-white);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 380px) {
  .mf-cart-shipping {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 6px;
    padding-inline: 8px;
  }

  .mf-cart-shipping__icon {
    width: 28px;
    height: 28px;
  }

  .mf-cart-shipping__text strong {
    font-size: 0.94rem;
  }

  .mf-cart-upsell__card {
    flex-basis: 92%;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .mf-cart-upsell__media {
    width: 72px;
    height: 72px;
  }

  .mf-cart-upsell__bottom {
    align-items: flex-end;
  }

  .mf-cart-upsell__button {
    padding-inline: 8px;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .drawer__header {
    min-height: 72px;
    padding: 17px 18px 14px;
  }

  .mf-cart-list {
    padding-inline: 18px;
  }

  .mf-cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .mf-cart-item__media {
    width: 84px;
    height: 84px;
  }

  .cart-drawer__footer {
    padding-inline: 18px;
  }

  .mf-cart-upsell {
    margin-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer__overlay,
  .drawer__inner,
  .mf-cart-checkout {
    transition: none;
  }
}


/* Modifika: título único do bloco de complementos. */
.mf-cart-upsell__heading > div{display:flex;align-items:center;min-height:24px}
.mf-cart-upsell__heading h3{font-size:1.55rem;letter-spacing:-.01em}

/* MODIFIKA — desktop: mantém o bloco "Complete sua compra" visível acima do resumo. */
@media screen and (min-width: 750px) {
  .drawer__header {
    min-height: 68px;
    padding: 14px 22px 12px;
  }

  .drawer__heading {
    font-size: 2.65rem;
  }

  cart-drawer-items,
  .cart-drawer__form,
  .drawer__contents {
    min-height: 0 !important;
  }

  .drawer__contents {
    overflow-y: auto !important;
    padding-bottom: 8px;
    scroll-padding-bottom: 12px;
  }

  .mf-cart-list {
    padding: 4px 22px 6px;
  }

  .mf-cart-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    padding: 10px 0;
  }

  .mf-cart-item__media {
    width: 78px;
    height: 78px;
  }

  .mf-cart-item__name {
    margin-bottom: 3px;
    font-size: 1.24rem;
    line-height: 1.25;
  }

  .mf-cart-item__options,
  .mf-cart-item__property,
  .mf-cart-item__plan {
    margin-bottom: 1px;
    font-size: 1.02rem;
  }

  .mf-cart-item__price {
    margin-top: 5px;
  }

  .mf-cart-item__price strong {
    font-size: 1.32rem;
  }

  .mf-cart-item__actions {
    margin-top: 7px;
  }

  .mf-cart-quantity.quantity {
    width: 102px;
    min-height: 32px;
    height: 32px;
  }

  .mf-cart-quantity .quantity__button {
    width: 31px;
    min-width: 31px;
  }

  .mf-cart-remove {
    width: 32px;
    height: 32px;
    padding: 8px;
  }

  .mf-cart-upsell {
    flex: 0 0 auto;
    margin: 0 22px 10px;
    padding: 10px 0 10px 10px;
    border-radius: 12px;
  }

  .mf-cart-upsell__heading {
    margin-bottom: 7px;
    padding-right: 10px;
  }

  .mf-cart-upsell__heading > div {
    min-height: 20px;
  }

  .mf-cart-upsell__heading h3 {
    font-size: 1.35rem;
  }

  .mf-cart-upsell__hint {
    font-size: .86rem;
  }

  .mf-cart-upsell__track {
    gap: 8px;
    padding-right: 10px;
    padding-bottom: 2px;
  }

  .mf-cart-upsell__card {
    flex-basis: min(88%, 330px);
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    padding: 8px;
  }

  .mf-cart-upsell__media {
    width: 68px;
    height: 68px;
  }

  .mf-cart-upsell__type {
    margin-bottom: 2px;
    font-size: .82rem;
  }

  .mf-cart-upsell__title {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .mf-cart-upsell__compatibility {
    display: none;
  }

  .mf-cart-upsell__bottom {
    margin-top: 6px;
  }

  .mf-cart-upsell__price strong {
    font-size: 1.12rem;
  }

  .mf-cart-upsell__button {
    min-height: 29px;
    padding: 6px 9px;
    font-size: .88rem;
  }

  .cart-drawer__footer {
    padding: 12px 22px 0;
  }

  .mf-cart-summary__total > span {
    font-size: 1.55rem;
  }

  .mf-cart-summary__total strong {
    font-size: 2.05rem;
  }

  .mf-cart-summary p {
    margin: 4px 0 9px;
    font-size: 1.08rem;
  }

  .mf-cart-checkout,
  #CartDrawer .drawer__footer .cart-drawer__footer > :is(button, a, input[type='button'], input[type='submit']),
  #CartDrawer .drawer__footer .cart-drawer__footer > * :is(button, a, input[type='button'], input[type='submit']) {
    min-height: 38px !important;
    padding: 8px 12px !important;
  }

  .mf-cart-shipping {
    margin: 7px 0 8px;
    padding: 6px 10px 6px 8px;
    grid-template-columns: 27px minmax(0, 1fr) 18px;
    gap: 7px;
  }

  .mf-cart-shipping__icon {
    width: 27px;
    height: 27px;
  }

  .mf-cart-shipping__text small {
    font-size: .78rem;
  }

  .mf-cart-shipping__text strong {
    font-size: .96rem;
  }
}

/* MODIFIKA — navegação acessível do carrossel de complementos no desktop. */
.mf-cart-upsell__navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-cart-upsell__arrows {
  display: none;
  align-items: center;
  gap: 5px;
}

.mf-cart-upsell__arrow {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 158, 235, 0.3);
  border-radius: 50%;
  background: #ffffff;
  color: var(--mf-cart-accent-dark);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(52, 52, 52, 0.06);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.mf-cart-upsell__arrow:hover {
  background: var(--mf-cart-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.mf-cart-upsell__arrow:focus-visible {
  outline: 2px solid var(--mf-cart-accent);
  outline-offset: 2px;
}

.mf-cart-upsell__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-cart-upsell__track {
  scroll-behavior: smooth;
}

@media screen and (min-width: 750px) {
  .mf-cart-upsell__arrows {
    display: flex;
  }

  .mf-cart-upsell__hint {
    display: none;
  }
}

/* MODIFIKA — rolagem vertical robusta do carrinho com vários itens. */
.drawer__inner {
  min-height: 0;
}

cart-drawer-items {
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  overflow: hidden !important;
}

.cart-drawer__form {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
}

.drawer__contents {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 28px;
  padding-bottom: 24px;
}

.mf-cart-upsell {
  flex: 0 0 auto;
}

@media screen and (max-width: 749px) {
  .drawer__contents {
    padding-bottom: 30px;
  }

  .mf-cart-list {
    padding-bottom: 8px;
  }

  .mf-cart-upsell {
    margin-bottom: 8px;
  }
}

/* MODIFIKA — estado leve antes de carregar o conteúdo completo do drawer. */
.mf-cart-loading {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--mf-cart-muted);
  font-size: 1.25rem;
  font-weight: 700;
}

.mf-cart-loading__spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(85, 158, 235, 0.22);
  border-top-color: var(--mf-cart-accent);
  border-radius: 50%;
  animation: mf-cart-loading-spin .75s linear infinite;
}

@keyframes mf-cart-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mf-cart-loading__spinner { animation: none; }
}

/* MODIFIKA — oferta de brinde dentro do carrinho lateral. */
.mf-cart-gift-offer {
  margin: 0 22px 10px;
  padding: 12px;
  border: 1px solid rgba(255, 115, 13, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f1 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(255, 115, 13, 0.08);
}

.mf-cart-gift-offer__headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mf-cart-gift-offer__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #559eeb;
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}


.mf-cart-gift-offer__body {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mf-cart-gift-offer__media {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(52, 52, 52, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.mf-cart-gift-offer__media img,
.mf-cart-gift-offer__media .placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mf-cart-gift-offer__content h3 {
  margin: 0 0 3px;
  color: var(--mf-cart-ink);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.mf-cart-gift-offer__content p {
  margin: 0;
  color: var(--mf-cart-muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.mf-cart-gift-offer__controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.mf-cart-gift-offer__label {
  display: grid;
  gap: 4px;
  color: var(--mf-cart-ink);
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 800;
}

.mf-cart-gift-offer__select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 30px 7px 9px;
  border: 1px solid rgba(52, 52, 52, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mf-cart-ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.mf-cart-gift-offer__select:focus-visible {
  outline: 2px solid rgba(255, 115, 13, 0.28);
  outline-offset: 1px;
  border-color: #559eeb;
}

.mf-cart-gift-offer__button {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: #559eeb;
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.08;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.mf-cart-gift-offer__button:hover {
  filter: brightness(0.96);
}

.mf-cart-gift-offer__button[disabled],
.mf-cart-gift-offer__select[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.mf-cart-gift-offer__status {
  min-height: 14px;
  margin: 6px 0 0;
  color: var(--mf-cart-ink);
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 750;
}


.mf-cart-gift-offer.has-gift {
  border-color: rgba(0, 166, 80, 0.28);
  background: linear-gradient(135deg, rgba(0, 166, 80, 0.08), #ffffff);
}

/* MODIFIKA — escolha da cor das capas no drawer, no mobile e no desktop. */
.mf-cart-upsell__variant-label {
  margin: 6px 0 7px;
  display: grid;
  gap: 3px;
  color: var(--mf-cart-ink);
  font-size: 0.84rem;
  line-height: 1.1;
  font-weight: 800;
}

.mf-cart-upsell__variant-select {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 5px 27px 5px 8px;
  border: 1px solid rgba(52, 52, 52, 0.15);
  border-radius: 7px;
  background: #ffffff;
  color: var(--mf-cart-ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.mf-cart-upsell__variant-select:focus-visible {
  outline: 2px solid rgba(85, 158, 235, 0.24);
  outline-offset: 1px;
  border-color: var(--mf-cart-accent);
}

@media screen and (max-width: 749px) {
  .mf-cart-gift-offer {
    margin-inline: 18px;
  }

  .mf-cart-gift-offer__controls {
    grid-template-columns: 1fr;
  }

  .mf-cart-gift-offer__button,
  .mf-cart-gift-offer__select {
    min-height: 40px;
  }
}

@media screen and (max-width: 380px) {
  .mf-cart-gift-offer__body {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .mf-cart-gift-offer__media {
    width: 56px;
    height: 56px;
  }

  .mf-cart-gift-offer__content h3 {
    font-size: 1.16rem;
  }
}

/* MODIFIKA — campos de nome e WhatsApp para resgate do prêmio no carrinho. */
.mf-cart-gift-offer__controls {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.mf-cart-gift-offer__lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
}

.mf-cart-gift-offer__input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(52, 52, 52, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mf-cart-ink);
  font: inherit;
  font-size: 1rem;
}

.mf-cart-gift-offer__input::placeholder {
  color: rgba(52, 52, 52, 0.45);
}

.mf-cart-gift-offer__input:focus-visible {
  outline: 2px solid rgba(255, 115, 13, 0.28);
  outline-offset: 1px;
  border-color: #559eeb;
}

.mf-cart-gift-offer__input.is-error {
  border-color: #ff730d;
  box-shadow: 0 0 0 2px rgba(255, 115, 13, 0.16);
}

.mf-cart-gift-offer__privacy {
  margin: -1px 0 0;
  color: rgba(52, 52, 52, 0.62);
  font-size: 0.82rem;
  line-height: 1.25;
}

.mf-cart-gift-offer__button {
  width: 100%;
}

@media screen and (max-width: 420px) {
  .mf-cart-gift-offer__lead-grid {
    grid-template-columns: 1fr;
  }
}

/* MODIFIKA — evita o zoom automático do iPhone ao digitar no resgate do brinde. */
@media screen and (max-width: 749px) {
  #CartDrawer .mf-cart-gift-offer__input,
  #CartDrawer .mf-cart-gift-offer__select,
  #CartDrawer input[data-mf-gift-lead-name],
  #CartDrawer input[data-mf-gift-lead-phone] {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
}

