/* RAY DESKTOP CART RIGHT CURRENT 20260715
   Только ПК: цена слева, одна кнопка корзины строго справа. */

@media (min-width: 768px) {
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-row {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding: 0 14px 10px !important;
    box-sizing: border-box !important;
  }

  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-row > .price,
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-row > .rm-price,
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-row > [class*="price"]:not(.ray-desktop-cart-right-button) {
    order: 1 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Все прежние кнопки корзины скрываются только внутри обработанной ПК-карточки. */
  html body .ray-desktop-cart-right-card button[onclick*="cart.add"]:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card a[onclick*="cart.add"]:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card .rm-cart-btn:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card .torbax-cart-btn:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card .ray-card-cart-btn:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card .ray-desktop-final-cart:not(.ray-desktop-cart-right-button),
  html body .ray-desktop-cart-right-card .ray-desktop-cart-repair-button:not(.ray-desktop-cart-right-button) {
    display: none !important;
  }

  /* Итоговая кнопка всегда последняя в строке и прижата вправо. */
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button {
    order: 2 !important;
    position: relative !important;
    display: inline-grid !important;
    flex: 0 0 50px !important;
    place-items: center !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #970a4a, #b3155c) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(151, 10, 74, .18) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button::before,
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button::after {
    content: none !important;
    display: none !important;
  }

  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button > span,
  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button > i {
    display: none !important;
  }

  html body .ray-desktop-cart-right-card .ray-desktop-cart-right-button svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    overflow: visible !important;
    color: #fff !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
  }
}
