/* RC11.1: only the Copy Master button and the replaced Divi control. */
html.cm-back-to-top-ready .et_pb_scroll_top { display: none !important; }
#cm-back-to-top[hidden] { display: none !important; }
#cm-back-to-top {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 4px 18px rgba(0,0,0,.13);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    isolation: isolate;
    transition: box-shadow .18s ease, transform .18s ease;
}
#cm-back-to-top .cm-back-to-top__ring { position:absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); pointer-events:none; }
#cm-back-to-top .cm-back-to-top__track { stroke: #ececec; }
#cm-back-to-top .cm-back-to-top__progress { stroke: #ff9a00; stroke-linecap: round; }
#cm-back-to-top .cm-back-to-top__center { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#ff9a00; color:#222; pointer-events:none; }
#cm-back-to-top .cm-back-to-top__center svg { width:23px; height:23px; }
#cm-back-to-top .cm-back-to-top__hint {
    position:absolute; right:calc(100% + 10px); top:50%; transform:translateY(-50%);
    padding:9px 12px; border:1px solid #e5e5e5; border-radius:8px; background:#fff; color:#333;
    font:inherit; font-size:14px; line-height:1.35; white-space:nowrap; box-shadow:0 3px 12px rgba(0,0,0,.08);
    opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s ease;
}
#cm-back-to-top:focus-visible { outline:2px solid #315ba5; outline-offset:3px; }
#cm-back-to-top:focus-visible .cm-back-to-top__hint { opacity:1; visibility:visible; }
@media (hover:hover) and (pointer:fine) {
    #cm-back-to-top:hover { transform:translateY(-3px); box-shadow:0 7px 22px rgba(0,0,0,.17); }
    #cm-back-to-top:hover .cm-back-to-top__hint { opacity:1; visibility:visible; }
}
@media (max-width:767px) {
    #cm-back-to-top { width:52px; height:52px; right:calc(14px + env(safe-area-inset-right, 0px)); bottom:calc(14px + env(safe-area-inset-bottom, 0px)); }
    #cm-back-to-top .cm-back-to-top__center { width:34px; height:34px; }
    #cm-back-to-top .cm-back-to-top__center svg { width:20px; height:20px; }
    #cm-back-to-top .cm-back-to-top__hint { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    #cm-back-to-top, #cm-back-to-top .cm-back-to-top__hint { transition:none; }
    #cm-back-to-top:hover { transform:none; }
}
