/* RIVI contact button (12.11.2026). One component for every page and language.
   LTR: bottom right. RTL (AR, FA): mirrored to the bottom left, with the cookie notice moved to the right so they never meet. */
.rv-fab{--rv-fab-lift:0px;position:fixed;z-index:80;inset-inline-end:max(18px,env(safe-area-inset-right));bottom:calc(max(22px,env(safe-area-inset-bottom)) + 104px + var(--rv-fab-lift) + var(--rv-fab-up,0px));display:flex;flex-direction:column;align-items:center;gap:12px;font-family:Manrope,Switzer,Arial,sans-serif;transition:opacity .25s ease,transform .35s cubic-bezier(.2,.7,.2,1),bottom .3s ease;animation:rvFabIn .8s .9s cubic-bezier(.19,1,.22,1) both}
.rv-fab.is-away,.rv-fab.is-dodge{opacity:0;pointer-events:none;transform:translateY(12px)}
.rv-fab__toggle{position:relative;display:grid;place-items:center;width:76px;height:76px;padding:0;border:0;border-radius:50%;background:none;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.rv-fab__toggle:hover{transform:translateY(-3px)}
.rv-fab__toggle:active{transform:scale(.96)}
.rv-fab__toggle:focus-visible,.rv-fab__item:focus-visible{outline:3px solid #6f9a82;outline-offset:3px}
.rv-fab__ico{grid-area:1/1;position:relative;z-index:2;width:26px;height:26px;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .2s}
.rv-fab__ico--close{opacity:0;transform:rotate(-90deg) scale(.6)}
.rv-fab.is-open .rv-fab__ico--chat{opacity:0;transform:rotate(90deg) scale(.6)}
.rv-fab.is-open .rv-fab__ico--close{opacity:1;transform:none}
.rv-fab.is-open .rv-fab__toggle::after{animation:none}
.rv-fab__list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;visibility:hidden;transition:visibility 0s linear .3s}
.rv-fab.is-open .rv-fab__list{visibility:visible;transition-delay:0s}
.rv-fab__list li{margin:0;padding:0;list-style:none}
.rv-fab__item{position:relative;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;color:#fff;text-decoration:none;box-shadow:0 12px 26px -12px #080c0ab3,0 1px 4px #080c0a33;opacity:0;transform:translateY(14px) scale(.7);transition:opacity .25s ease,transform .4s cubic-bezier(.2,.9,.25,1.15),box-shadow .2s}
.rv-fab.is-open .rv-fab__item{opacity:1;transform:none}
.rv-fab__list li:nth-child(4) .rv-fab__item{transition-delay:0s}
.rv-fab__list li:nth-child(3) .rv-fab__item{transition-delay:.05s}
.rv-fab__list li:nth-child(2) .rv-fab__item{transition-delay:.1s}
.rv-fab__list li:nth-child(1) .rv-fab__item{transition-delay:.15s}
.rv-fab:not(.is-open) .rv-fab__item{transition-delay:0s}
.rv-fab__item:hover{box-shadow:0 16px 30px -12px #080c0ae6}
.rv-fab__item .ed-channel-icon,.rv-fab__item svg{width:26px;height:26px;stroke-width:1.7}
.rv-fab__item--whatsapp{background:#25d366}
.rv-fab__item--telegram{background:#fff;color:#26a5e4}
.rv-fab__item .rv-fab__brand{width:30px;height:30px;stroke:none}
.rv-fab__item--telegram .rv-fab__brand{width:100%;height:100%}
.rv-fab__item--call{background:linear-gradient(160deg,#2b3b33,#141d18)}
.rv-fab__item--email{background:linear-gradient(135deg,#a9c7b5,#6f9a82);color:#141d18}
@media (hover:hover){
.rv-fab__item::before{content:attr(data-tip);position:absolute;inset-inline-end:calc(100% + 12px);top:50%;padding:8px 12px;border-radius:10px;background:#141d18;color:#fff;font:600 13px/1.2 Manrope,Switzer,Arial,sans-serif;white-space:nowrap;opacity:0;transform:translate(6px,-50%);pointer-events:none;transition:opacity .2s,transform .25s}
[dir=rtl] .rv-fab__item::before{transform:translate(-6px,-50%)}
.rv-fab__item:hover::before,.rv-fab__item:focus-visible::before{opacity:1;transform:translate(0,-50%)}
}
/* RTL: the cookie notice goes to the right edge, the button sits on the left */
html[dir=rtl] .rv-consent{left:auto;right:20px}
/* things that must stay free: open phone menu, dialogs, a focused form field (script adds is-away) */
body:has(.ed-menu-button[aria-expanded=true]) .rv-fab,body:has(dialog[open]) .rv-fab{opacity:0;pointer-events:none}
/* catalog compare bar is a centred bar at the bottom: the button rides above it where they would meet */
@media (max-width:960px){body:has(.rm-cbar:not([hidden])) .rv-fab{--rv-fab-up:92px}}
@media (max-width:640px){
.rv-fab{inset-inline-end:max(14px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 88px + var(--rv-fab-lift) + var(--rv-fab-up,0px));gap:10px}
.rv-fab__toggle{width:68px;height:68px}
.rv-fab__item{width:50px;height:50px}
.rv-fab__ico{width:24px;height:24px}
}
@keyframes rvFabIn{from{opacity:0;transform:translateY(18px)}}
/* pulse ring in the site sage (2.4 s, like the pulsing buttons) */
@keyframes rvFabPulse{0%{box-shadow:0 0 0 0 rgba(111,154,130,.6)}70%{box-shadow:0 0 0 16px rgba(111,154,130,0)}100%{box-shadow:0 0 0 0 rgba(111,154,130,0)}}
@media (prefers-reduced-motion:reduce){
.rv-fab,.rv-fab__toggle,.rv-fab__ico,.rv-fab__item,.rv-fab__item::before{animation:none!important;transition:none!important}
}
@media print{.rv-fab{display:none}}

/* Ardimex 16.11: the button is the «50%» ring of the home banner panel (hero-panel .hp-r.dn, palette sage) 1:1 —
   dark ball, track ring, gradient arc half full; on hover / open the arc fills up; sage pulse around it */
.rv-fab__toggle::before{content:"";position:absolute;inset:13.5%;z-index:0;border-radius:50%;background:radial-gradient(120% 120% at 30% 20%,rgba(255,255,255,.14),rgba(255,255,255,0) 55%),linear-gradient(160deg,#2b3b33 0%,#141d18 60%,#080c0a 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 34px -14px rgba(0,0,0,.85)}
.rv-fab__toggle::after{content:"";position:absolute;inset:6%;z-index:0;border-radius:50%;pointer-events:none;animation:rvFabPulse 2.4s ease-out infinite}
.rv-fab__ring{position:absolute;inset:0;z-index:1;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;pointer-events:none}
.rv-fab__trk{fill:none;stroke:rgba(111,154,130,.22)}
.rv-fab__arc{fill:none;stroke:url(#rvFabCu);stroke-linecap:butt;stroke-dasharray:417;stroke-dashoffset:208;transition:stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1),stroke .4s}
.rv-fab__toggle:hover .rv-fab__arc,.rv-fab__toggle:focus-visible .rv-fab__arc,.rv-fab.is-open .rv-fab__arc{stroke-dashoffset:0;stroke:url(#rvFabCuH)}
.rv-fab__ico--chat{opacity:.95}

/* Back to top: a small round button under the contact button; the pair sits a little higher, with a gap between them */
.rv-fab{margin-bottom:0;gap:12px}
.rv-fab__top{position:absolute;top:calc(100% + 16px);inset-inline-start:50%;margin-inline-start:-23px;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #cfdcd4;border-radius:50%;background:#fff;color:#141d18;cursor:pointer;box-shadow:0 10px 24px -12px #080c0ab3;transition:opacity .25s ease,transform .3s cubic-bezier(.2,.7,.2,1),background-color .2s}
.rv-fab__top[hidden]{display:none}
.rv-fab__top:hover{transform:translateY(-2px);background:#eef4f0}
.rv-fab__top svg{width:22px;height:22px}
.rv-fab__top:focus-visible{outline:3px solid #6f9a82;outline-offset:3px}
.rv-fab__top.is-in{animation:rvFabIn .4s cubic-bezier(.19,1,.22,1) both}
@media (max-width:640px){.rv-fab__top{top:calc(100% + 14px);width:42px;height:42px;margin-inline-start:-21px}}

/* Scroll hint for sideways-scrolling tables: the edge where more content waits fades out (set by fab.js) */
[data-rv-fade~=end]{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to right,#000 calc(100% - 34px),#0000)}
[data-rv-fade~=start]{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to left,#000 calc(100% - 34px),#0000)}
[data-rv-fade~=start][data-rv-fade~=end]{-webkit-mask-image:linear-gradient(to right,#0000,#000 34px,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to right,#0000,#000 34px,#000 calc(100% - 34px),#0000)}
html[dir=rtl] [data-rv-fade~=end]{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to left,#000 calc(100% - 34px),#0000)}
html[dir=rtl] [data-rv-fade~=start]{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to right,#000 calc(100% - 34px),#0000)}
html[dir=rtl] [data-rv-fade~=start][data-rv-fade~=end]{-webkit-mask-image:linear-gradient(to right,#0000,#000 34px,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(to right,#0000,#000 34px,#000 calc(100% - 34px),#0000)}
