/* Marbella: accessory cross-sell (product, cart, side cart) + chosen-frame card on /incarca-reteta/. */
.mo-xs { margin: 24px 0 0; padding: 18px; border: 1px solid var(--mo-line, #dedfdf); background: var(--mo-white, #fff); color: var(--mo-ink, #171717); font-family: var(--mo-font, inherit); }
.mo-xs__head { display: flex; flex-direction: column; gap: 4px; }
.mo-xs .mo-xs__title { margin: 0; font: 700 16px/1.3 var(--mo-font, inherit); letter-spacing: 0; text-transform: none; color: var(--mo-ink, #171717); }
.mo-xs__sub { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mo-muted, #62666b); }
.mo-xs__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.mo-xs__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin: 0; padding: 0; }
.mo-xs__media { display: grid; place-items: center; width: 64px; height: 52px; background: var(--mo-frame, #f1f2f3); overflow: hidden; }
.mo-xs__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
.mo-xs__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-xs__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 14px/1.35 var(--mo-font, inherit); color: var(--mo-ink, #171717); text-decoration: none; }
.mo-xs__name:hover, .mo-xs__name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.mo-xs__price { font-size: 14px; line-height: 1.3; }
.mo-xs__price del { font-size: 12px; }
.mo-xs__price ins { text-decoration: none; color: var(--mo-red, #b3242d); }
.mo-xs a.button.mo-xs__add { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 88px; margin: 0; padding: 0 14px; border: 1px solid var(--mo-black, #080808); border-radius: var(--mo-radius, 0); background: transparent; color: var(--mo-ink, #171717); font: 700 13px/1 var(--mo-font, inherit); text-decoration: none; white-space: nowrap; box-shadow: none; transition: background .2s, color .2s; }
.mo-xs a.button.mo-xs__add:hover, .mo-xs a.button.mo-xs__add:focus-visible { background: var(--mo-black, #080808); color: var(--mo-white, #fff); }
.mo-xs a.button.mo-xs__add.loading { opacity: .6; pointer-events: none; }
.mo-xs a.button.mo-xs__add.added::after { content: " ✓"; margin-left: 4px; font-family: inherit; }
.mo-xs a.added_to_cart { grid-column: 2 / -1; justify-self: end; font-size: 13px; color: var(--mo-ink, #171717); text-decoration: underline; text-underline-offset: 3px; }

/* Product page: inside the buy column, after the help links. Fallback wrapper before related products. */
.mo-xs--product { margin-top: 20px; }
.mo-xs-wrap { margin-block: 0 32px; }

/* Side cart: flat section under the lines. */
#mo-cart-drawer .mo-xs--drawer { margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--mo-line, #dedfdf); background: transparent; }
#mo-cart-drawer .mo-xs--drawer .mo-xs__sub { display: none; }
#mo-cart-drawer .mo-xs--drawer .mo-xs__title { font-size: 15px; }

/* Cart page: three compact columns on wide screens. */
.mo-xs--cart { margin-top: 28px; background: var(--mo-paper, #f6f6f4); border-color: transparent; }
@media (min-width: 992px) {
  .mo-xs--cart .mo-xs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mo-xs--cart .mo-xs__item { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; }
  .mo-xs--cart .mo-xs__media { grid-row: 1 / 3; }
  .mo-xs--cart a.button.mo-xs__add { justify-self: start; min-height: 40px; }
  .mo-xs--cart a.added_to_cart { grid-column: 2; justify-self: start; }
}

@media (max-width: 480px) {
  .mo-xs { padding: 14px; }
  .mo-xs__item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 10px; }
  .mo-xs__media { width: 56px; height: 46px; }
  .mo-xs a.button.mo-xs__add { min-width: 0; padding: 0 12px; }
}

/* Chosen frame on /incarca-reteta/. */
.mo-frame-ctx { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 20px; padding: 16px; background: var(--mo-frame, #f1f2f3); border-left: 3px solid var(--mo-black, #080808); font-family: var(--mo-font, inherit); color: var(--mo-ink, #171717); }
.mo-frame-ctx__media { display: grid; place-items: center; width: 96px; height: 76px; background: var(--mo-white, #fff); overflow: hidden; }
.mo-frame-ctx__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mo-frame-ctx__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mo-frame-ctx__body p { margin: 0; }
.mo-frame-ctx__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mo-muted, #62666b); }
.mo-frame-ctx__name { font: 700 16px/1.35 var(--mo-font, inherit); overflow-wrap: anywhere; }
.mo-frame-ctx__name a { color: inherit; text-decoration: none; }
.mo-frame-ctx__name a:hover, .mo-frame-ctx__name a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.mo-frame-ctx__sku, .mo-frame-ctx__note { font-size: 14px; line-height: 1.45; color: var(--mo-muted, #62666b); }
.mo-frame-ctx__actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px !important; }
.mo-frame-ctx__actions a { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/1.3 var(--mo-font, inherit); color: var(--mo-ink, #171717); text-decoration: underline; text-underline-offset: 3px; }
.mo-frame-ctx-removed { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--mo-muted, #62666b); }
.mo-frame-ctx-removed a { color: var(--mo-ink, #171717); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .mo-frame-ctx { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mo-frame-ctx__media { width: 72px; height: 58px; }
}
