/* RAY_3_ISSUES_FINAL_TARGETED_FIX_20260721
   Scope only:
   1) mobile catalog card cart/overlay geometry;
   2) checkout pickup map container visibility/size.
*/

/* The active checkout template toggles the parent .rm-map-section.
   Keep the actual Yandex map canvas renderable on both desktop and mobile. */
html body .rm-checkout-form .rm-map-section #map2 {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 360px !important;
  min-height: 360px !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  /* Current category cards: reserve the right side of the info area for the cart
     and pin the button to the lower-right instead of over the price. */
  html body:not(.common-home) .rm-product-card > .product-thumb > .rm-product-info {
    padding-right: 58px !important;
    padding-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  html body:not(.common-home) .rm-product-card > .product-thumb > .rm-cart-btn,
  html body:not(.common-home) .rm-product-card > .product-thumb > .torbax-cart-btn.rm-cart-btn {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    top: auto !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 6 !important;
    box-sizing: border-box !important;
  }

  html body:not(.common-home) .rm-product-card > .product-thumb > .rm-cart-btn > i,
  html body:not(.common-home) .rm-product-card > .product-thumb > .torbax-cart-btn.rm-cart-btn > i {
    display: block !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  /* Old stylesheet stretches product-attribute-hint left:0/right:0 across the photo.
     Return it to a compact badge: visually about half the occupied area. */
  html body .rm-product-card .rm-product-image .product-attribute-hint,
  html body .rm-product-card .product-attribute-hint.rm-delivery-hint {
    left: 6px !important;
    right: auto !important;
    top: auto !important;
    bottom: 6px !important;
    width: auto !important;
    max-width: calc(100% - 12px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 5px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #5b1430 !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .10) !important;
    box-sizing: border-box !important;
  }

  html body .rm-checkout-form .rm-map-section #map2 {
    height: 320px !important;
    min-height: 320px !important;
    margin-top: 10px !important;
    border-radius: 14px !important;
  }
}
