/* «Añadido a tu carrito» (25-oct): official palette and radius; product on the left, cart summary on the light
   teal band of the home (#f1f7f8) on the right; one column on phones. Promotion tag in promotion red. */
.rtg-cm .modal-dialog { max-width: 560px; }
.rtg-cm .modal-content { overflow: hidden; border: 0; border-radius: calc(var(--rtg-radius) + 4px); box-shadow: 0 24px 60px rgba(13, 52, 63, .22); }

.rtg-cm__header { align-items: center; gap: 12px; padding: 20px 24px 0; border: 0; }
.rtg-cm__title { display: flex; flex: 1; align-items: center; gap: 12px; margin: 0; color: var(--rtg-900); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.rtg-cm__check { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rtg-600); color: #fff; font-size: 20px; }
.rtg-cm .btn-close { flex: none; margin: 0; opacity: .55; }
.rtg-cm .btn-close:hover { opacity: .9; }

.rtg-cm__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 24px 24px; }
.rtg-cm__product { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.rtg-cm__photo { overflow: hidden; border: 1px solid #e6edf0; border-radius: var(--rtg-radius); background: #fff; }
.rtg-cm__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.rtg-cm__info { min-width: 0; }
.rtg-cm__info p { margin: 0; }
.rtg-cm__name { display: -webkit-box; overflow: hidden; margin-bottom: 6px !important; color: var(--rtg-900); font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rtg-cm__meta { color: #6e6e73; font-size: 13px; line-height: 1.6; }
.rtg-cm__was { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px !important; color: var(--rtg-price-was); font-size: 13px; }
.rtg-cm__tag { padding: 2px 8px; border-radius: calc(var(--rtg-radius) - 6px); background: var(--rtg-price-sale); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; }
.rtg-cm__price { margin-top: 6px !important; color: var(--rtg-950); font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.rtg-cm__summary { padding: 18px 20px; border-radius: var(--rtg-radius); background: #f1f7f8; }
.rtg-cm__count { margin: 0 0 12px; color: #4a4a4f; font-size: 13px; }
.rtg-cm__count strong { color: var(--rtg-900); font-weight: 600; }
.rtg-cm__rows { margin: 0; }
.rtg-cm__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #4a4a4f; font-size: 14px; }
.rtg-cm__row dt { font-weight: 400; }
.rtg-cm__row dd { margin: 0; color: var(--rtg-950); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.rtg-cm__row dd.rtg-cm__pending { max-width: 62%; color: #6e6e73; font-size: 13px; font-weight: 400; line-height: 1.4; }
.rtg-cm__row--total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #d5e0e4; color: var(--rtg-900); font-weight: 600; }
.rtg-cm__row--total dd { font-size: 17px; font-weight: 700; }

.rtg-cm__footer { display: flex; justify-content: flex-end; gap: 12px; padding: 0 24px 24px; border: 0; }
.rtg-cm__footer > * { margin: 0; }
.rtg-cm__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: var(--rtg-radius); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.rtg-cm__btn--ghost { border: 1.5px solid var(--rtg-600); background: #fff; color: var(--rtg-700); }
.rtg-cm__btn--ghost:hover { background: var(--rtg-50); }
.rtg-cm__btn--primary { border: 0; background: var(--rtg-600); color: #fff; }
.rtg-cm__btn--primary:hover { background: var(--rtg-700); color: #fff; }
.rtg-cm__btn--primary .material-icons { font-size: 20px; }
.rtg-cm__btn:focus-visible { outline: 2px solid var(--rtg-600); outline-offset: 2px; }

@media (max-width: 767.98px) {
  .rtg-cm .modal-dialog { margin: 12px; }
  .rtg-cm__header { padding: 16px 16px 0; }
  .rtg-cm__title { font-size: 17px; }
  .rtg-cm__body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .rtg-cm__product { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .rtg-cm__price { font-size: 18px; }
  .rtg-cm__footer { flex-direction: column-reverse; padding: 0 16px 16px; }
  .rtg-cm__btn { width: 100%; }
}

/* Roentgen reassurance icons in the cart and checkout (custom-checkout/blockreassurance/displayBlockProduct.tpl):
   a 36px light-teal disc with a 600 line icon. Loaded here because this file is on every page. */
:is(#cart, #checkout) .reassurance { grid-template-columns: 36px minmax(0, 1fr) !important; align-items: center !important; }
:is(#cart, #checkout) .rtg-reassure-icon { display: grid !important; place-items: center; width: 36px !important; height: 36px !important; border-radius: 50%; background: var(--rtg-50); color: var(--rtg-600); }
:is(#cart, #checkout) .rtg-reassure-icon svg { width: 20px !important; height: 20px !important; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:is(#cart, #checkout) a.reassurance:hover .rtg-reassure-icon { background: var(--rtg-100); color: var(--rtg-700); }
