.htf-button{--htf-x:clamp(0px, var(--htf-dx), max(0px, calc(100vw - 284px)));--htf-y:clamp(0px, var(--htf-dy), max(0px, calc(100vh - 140px)));position:fixed;z-index:999;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;min-width:44px;max-width:min(260px, calc(100vw - 24px));padding:10px 15px;margin:0;border:1px solid #fff0;border-radius:14px;background:var(--htf-color);color:var(--htf-text);box-shadow:0 4px 16px #17203326;font-family:inherit;font-size:13px;font-weight:600;line-height:1.65;text-align:center;text-decoration:none;direction:rtl;transition:box-shadow 150ms ease;-webkit-tap-highlight-color:#fff0}.htf-button:hover{color:var(--htf-text);background:var(--htf-color);text-decoration:none;box-shadow:0 6px 20px #17203340}.htf-button:visited{color:var(--htf-text)}.htf-button:focus-visible{outline:2px solid var(--htf-color);outline-offset:4px}.htf-button svg{flex:0 0 21px}.htf-button__label{min-width:0;overflow-wrap:anywhere}.htf-button[data-desktop-position="bottom-right"]{right:max(var(--htf-x), env(safe-area-inset-right, 0px));bottom:max(var(--htf-y), env(safe-area-inset-bottom, 0px))}.htf-button[data-desktop-position="bottom-left"]{left:max(var(--htf-x), env(safe-area-inset-left, 0px));bottom:max(var(--htf-y), env(safe-area-inset-bottom, 0px))}.htf-button[data-desktop-position="edge-right"]{right:max(var(--htf-x), env(safe-area-inset-right, 0px));top:clamp(60px, calc(50% + var(--htf-y)), calc(100% - 60px));transform:translateY(-50%)}.htf-button[data-desktop-position="edge-left"]{left:max(var(--htf-x), env(safe-area-inset-left, 0px));top:clamp(60px, calc(50% + var(--htf-y)), calc(100% - 60px));transform:translateY(-50%)}@media (min-width:768px){.htf-button--desktop-hidden:not(.htf-button--preview){display:none}}@media (max-width:767px){.htf-button{--htf-x:clamp(0px, var(--htf-mx), max(0px, calc(100vw - 284px)));--htf-y:clamp(0px, var(--htf-my), max(0px, calc(100vh - 140px)));inset:auto;transform:none;padding:9px 12px;font-size:12px;border-radius:12px}.htf-button[data-mobile-position="bottom-right"]{left:auto;right:max(var(--htf-x), env(safe-area-inset-right, 0px));top:auto;bottom:max(var(--htf-y), env(safe-area-inset-bottom, 0px));transform:none}.htf-button[data-mobile-position="bottom-left"]{left:max(var(--htf-x), env(safe-area-inset-left, 0px));right:auto;top:auto;bottom:max(var(--htf-y), env(safe-area-inset-bottom, 0px));transform:none}.htf-button[data-mobile-position="edge-right"]{right:max(var(--htf-x), env(safe-area-inset-right, 0px));left:auto;top:clamp(60px, calc(50% + var(--htf-y)), calc(100% - 60px));bottom:auto;transform:translateY(-50%)}.htf-button[data-mobile-position="edge-left"]{left:max(var(--htf-x), env(safe-area-inset-left, 0px));right:auto;top:clamp(60px, calc(50% + var(--htf-y)), calc(100% - 60px));bottom:auto;transform:translateY(-50%)}.htf-button--mobile-hidden:not(.htf-button--preview){display:none}}.htf-button.htf-button--preview{position:static;inset:auto;transform:none;pointer-events:none}@media (prefers-reduced-motion:reduce){.htf-button{transition:none}}@media print{.htf-button{display:none!important}}