/* Radiance for Joomla 6 - additions for markup that Joomla 6 / VirtueMart 5 render differently than Joomla 3. */

/* lightbox (replacement for the Widgetkit lightbox) */
.radiance-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(119, 119, 119, .7); cursor: zoom-out; }
.radiance-lightbox img { max-width: 92vw; max-height: 88vh; border: 10px solid #fff; border-radius: 4px; box-shadow: 0 0 25px rgba(0, 0, 0, .5); }
.radiance-lightbox .caption { position: absolute; bottom: 2vh; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* Warp's share bar: the original page reserved the height of the (invisible) X/Twitter iframe (20px).
   The share scripts are no longer loaded (privacy) - keep the identical spacing. */
#system .item .socialbuttons > div { height: 20px; }

/* Widgetkit spotlight hover (replacement for spotlight.js): magnifier overlay on gallery images */
a[data-spotlight] { position: relative; display: inline-block; max-width: 100%; }
a[data-spotlight] .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: none; }
a[data-spotlight]:hover .overlay { display: block; visibility: visible; }

/* Static Widgetkit slideshow (front page, single slide): final state that widgetkit.js used to set */
.wk-slideshow { visibility: visible; }
.wk-slideshow .slides > li { position: relative; }

/* VirtueMart 5 renders the button label as value; the original showed only the "Купить" image */
span.addtocart-button input.addtocart-button { color: transparent; text-shadow: none; font-size: 0; }

/* VirtueMart 5 cart: hide what the original yoo_radiance cart override did not show
   (header, address boxes, coupon and customer note). Checkout still asks for the address when needed. */
.cart-view .billto-shipto,
.vm-cart-header-container,
.cart-view .vm-fieldset-customer-note,
.cart-view tr.sectiontableentry2:has(input.coupon) { display: none; }
