/* CM Floating Social Buttons 1.5.0 — all rules deliberately scoped to this widget.
   Fixed circular icons and configured colors/sizes even with opinionated WP themes. */
#cm-fsb-widget.cm-fsb-wrap,
#cm-fsb-widget.cm-fsb-wrap *,
#cm-fsb-widget.cm-fsb-wrap *::before,
#cm-fsb-widget.cm-fsb-wrap *::after {
    box-sizing: border-box !important;
}
#cm-fsb-widget.cm-fsb-wrap {
    --cm-fsb-size: 54px;
    --cm-fsb-gap: 10px;
    position: fixed !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--cm-fsb-gap) !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    isolation: isolate;
    font-family: "Noto Sans Thai", sans-serif !important;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    direction: ltr;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    display: flex !important;
    flex: 0 0 var(--cm-fsb-size) !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--cm-fsb-size) !important;
    height: var(--cm-fsb-size) !important;
    min-width: var(--cm-fsb-size) !important;
    min-height: var(--cm-fsb-size) !important;
    max-width: var(--cm-fsb-size) !important;
    max-height: var(--cm-fsb-size) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline-offset: 3px;
    border-radius: 50% !important;
    background-image: none !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.20) !important;
    color: var(--cm-fsb-icon-color, #fff) !important;
    font-family: "Noto Sans Thai", sans-serif !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    opacity: 1 !important;
    overflow: visible !important;
    cursor: pointer !important;
    vertical-align: middle;
    transition: transform .2s ease, box-shadow .2s ease !important;
    -webkit-tap-highlight-color: transparent;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-toggle {
    background: var(--cm-fsb-trigger, #8E6BD8) !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-link {
    background: var(--cm-fsb-link-color, #333) !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 12px 27px rgba(0,0,0,.24) !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn:focus-visible {
    outline: 3px solid #2563eb !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn svg {
    display: block !important;
    position: static !important;
    width: 52% !important;
    height: 52% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    color: var(--cm-fsb-icon-color, #fff) !important;
    fill: #fff !important;
    stroke: none !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    filter: none !important;
    box-shadow: none !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn svg path {
    fill: currentColor !important;
    stroke: none !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--cm-fsb-gap) !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.97);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
/* Collapsed-mode destinations are absolutely positioned, so an invisible list
   cannot push the trigger away from the selected vertical anchor. */
#cm-fsb-widget.cm-fsb-wrap:not(.cm-fsb-show-all) .cm-fsb-items {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(100% + var(--cm-fsb-gap)) !important;
    top: auto !important;
    transform: translateX(-50%) translateY(10px) scale(.97);
}
#cm-fsb-widget.cm-fsb-wrap.cm-fsb-top:not(.cm-fsb-show-all) .cm-fsb-items {
    top: calc(100% + var(--cm-fsb-gap)) !important;
    bottom: auto !important;
}
#cm-fsb-widget.cm-fsb-wrap.cm-fsb-open .cm-fsb-items,
#cm-fsb-widget.cm-fsb-wrap.cm-fsb-show-all .cm-fsb-items {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}
#cm-fsb-widget.cm-fsb-wrap.cm-fsb-open:not(.cm-fsb-show-all) .cm-fsb-items {
    transform: translateX(-50%) !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-bubble,
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-item-label {
    position: absolute !important;
    display: block !important;
    top: 50% !important;
    width: max-content !important;
    max-width: min(230px, 60vw) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 100px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.14) !important;
    color: #1f2937 !important;
    font: 600 14px/1.4 "Noto Sans Thai", sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    pointer-events: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) !important;
    text-shadow: none !important;
}
#cm-fsb-widget.cm-fsb-wrap:not(.cm-left) .cm-fsb-bubble,
#cm-fsb-widget.cm-fsb-wrap:not(.cm-left) .cm-fsb-item-label {
    right: calc(100% + 12px) !important;
    left: auto !important;
}
#cm-fsb-widget.cm-fsb-wrap.cm-left .cm-fsb-bubble,
#cm-fsb-widget.cm-fsb-wrap.cm-left .cm-fsb-item-label {
    left: calc(100% + 12px) !important;
    right: auto !important;
}
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-bubble::after,
#cm-fsb-widget.cm-fsb-wrap .cm-fsb-item-label::after {
    content: "" !important;
    position: absolute !important;
    display: block !important;
    top: 50% !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 7px solid transparent !important;
    transform: translateY(-50%) !important;
}
#cm-fsb-widget.cm-fsb-wrap:not(.cm-left) .cm-fsb-bubble::after,
#cm-fsb-widget.cm-fsb-wrap:not(.cm-left) .cm-fsb-item-label::after {
    right: -14px !important;
    left: auto !important;
    border-left-color: #fff !important;
}
#cm-fsb-widget.cm-fsb-wrap.cm-left .cm-fsb-bubble::after,
#cm-fsb-widget.cm-fsb-wrap.cm-left .cm-fsb-item-label::after {
    left: -14px !important;
    right: auto !important;
    border-right-color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
    #cm-fsb-widget.cm-fsb-wrap .cm-fsb-items,
    #cm-fsb-widget.cm-fsb-wrap .cm-fsb-btn { transition: none !important; }
}
