/* Homepage tools are isolated from the theme's legacy button / link rules. */
.tcm-floating-tools{position:fixed;right:calc(var(--tcm-float-right,20px) + env(safe-area-inset-right,0px));bottom:calc(var(--tcm-float-bottom,28px) + env(safe-area-inset-bottom,0px));z-index:1040;font-family:inherit;font-size:14px;line-height:1.5;color:#1d3554}
.tcm-floating-tools,.tcm-floating-tools *{box-sizing:border-box}
.tcm-floating-tools[hidden],.tcm-floating-tools [hidden]{display:none!important}
.tcm-float-rail{display:flex;flex-direction:column;gap:6px;padding:6px;background:rgba(255,255,255,.98);border:1px solid #e2eaf5;border-radius:var(--tcm-radius,14px);box-shadow:0 8px 28px rgba(30,64,120,.12);max-height:calc(100dvh - var(--tcm-float-bottom,28px) - 24px);max-height:min(640px,calc(100vh - var(--tcm-float-bottom,28px) - 24px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tcm-floating-tools .tcm-float-item,.tcm-floating-tools .tcm-float-launcher{appearance:none;display:flex;flex:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:66px;min-height:64px;padding:8px 4px;margin:0;border:0;border-radius:8px;background:#fff;color:var(--tcm-accent,#2563eb);box-shadow:none;cursor:pointer;text-decoration:none;font:inherit;line-height:1.3;transition:background .15s,color .15s}
.tcm-floating-tools .tcm-float-item:hover,.tcm-floating-tools .tcm-float-item[aria-expanded=true]{background:var(--tcm-accent-soft,#edf4ff);color:var(--tcm-accent,#2563eb)}
.tcm-float-icon{display:flex;align-items:center;justify-content:center;position:relative;width:24px;height:24px;flex-shrink:0}
.tcm-float-icon svg{width:24px;height:24px;display:block;max-width:none}
.tcm-float-icon img{position:absolute;inset:0;display:block;width:24px;height:24px;object-fit:contain}
.tcm-float-label{display:block;font-size:11px;font-weight:600;line-height:1.4;text-align:center;overflow-wrap:anywhere;max-width:100%}
.tcm-floating-tools .tcm-float-launcher{background:var(--tcm-accent,#2563eb);color:#fff;box-shadow:0 6px 22px rgba(30,64,120,.18);width:58px;min-height:58px;border-radius:16px;margin-top:8px}
.tcm-float-panel{position:fixed;z-index:2;width:312px;margin:0;border:1px solid #dee8f5;border-radius:var(--tcm-radius,14px);background:#fff;box-shadow:0 12px 48px rgba(22,45,85,.2);overflow:auto;overscroll-behavior:contain;text-align:left}
.tcm-float-panel-head{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #edf1f7}
.tcm-float-panel-head h2{font-size:16px;line-height:1.5;font-weight:600;color:#162c47;margin:0;overflow-wrap:anywhere}
.tcm-floating-tools .tcm-float-close{appearance:none;display:flex;align-items:center;justify-content:center;background:#f3f6fb;color:#526782;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:8px;font-size:24px;line-height:1;cursor:pointer}
.tcm-float-panel-body{padding:18px}
.tcm-float-qr{display:block;width:200px;height:200px;max-width:100%;object-fit:contain;margin:0 auto 14px;background:#fff}
.tcm-float-note{font-size:14px;line-height:1.8;color:#53657d;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px;user-select:text}
.tcm-float-phone{color:#162c47;font-size:23px;font-weight:600;overflow-wrap:anywhere;line-height:1.5;margin:0 0 10px;user-select:text}
.tcm-float-actions{display:flex;flex-wrap:wrap;gap:8px}
.tcm-floating-tools .tcm-float-copy,.tcm-floating-tools .tcm-float-primary{appearance:none;display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;min-height:42px;border:1px solid #d8e3f3;border-radius:7px;background:#f8faff;color:var(--tcm-accent,#2563eb);font:inherit;font-size:13px;line-height:1.5;text-decoration:none;cursor:pointer;margin:0;box-shadow:none}
.tcm-floating-tools .tcm-float-primary{background:var(--tcm-accent,#2563eb);border-color:var(--tcm-accent,#2563eb);color:#fff}
.tcm-float-status{font-size:12px;line-height:1.5;color:#53657d;margin:10px 0 0;min-height:18px}
.tcm-float-copy-source{position:fixed;left:0;top:0;width:1px;height:1px;padding:0;opacity:0;font-size:16px}
.tcm-floating-tools a:focus,.tcm-floating-tools button:focus{outline:none}
.tcm-floating-tools a:focus-visible,.tcm-floating-tools button:focus-visible{outline:2px solid var(--tcm-accent,#2563eb);outline-offset:2px}
@media(max-width:767px){
 .tcm-floating-tools{right:calc(var(--tcm-float-mobile-right,12px) + env(safe-area-inset-right,0px));bottom:calc(var(--tcm-float-mobile-bottom,20px) + env(safe-area-inset-bottom,0px))}
 .tcm-float-rail{padding:5px;gap:3px;max-height:calc(100vh - var(--tcm-float-mobile-bottom,20px) - 100px);max-height:calc(100dvh - var(--tcm-float-mobile-bottom,20px) - 100px);border-radius:14px}
 .tcm-floating-tools .tcm-float-item{width:48px;min-height:54px;padding:5px 2px;gap:3px}
 .tcm-float-label{font-size:10px}.tcm-float-icon,.tcm-float-icon svg,.tcm-float-icon img{width:22px;height:22px}
 .tcm-float-panel{border-radius:16px}.tcm-float-panel-head{padding:12px 16px}.tcm-float-panel-body{padding:16px}
}
@media(prefers-reduced-motion:reduce){.tcm-floating-tools *{transition:none!important;scroll-behavior:auto!important}}
html[data-tcm-motion=off] .tcm-floating-tools *,html[data-tcm-motion=reduced] .tcm-floating-tools *{transition:none!important}
