/* Easy Share Solution - Frontend Styles */

/* Global scrollbar hiding for all Easy Share components */
.ess-floating-panel,
.ess-floating-panel *,
.ess-popup-body,
.ess-popup-body * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

.ess-floating-panel::-webkit-scrollbar,
.ess-floating-panel *::-webkit-scrollbar,
.ess-popup-body::-webkit-scrollbar,
.ess-popup-body *::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* CSS Custom Properties for theming - Dynamic from Admin Settings */
:root {
    --ess-primary-color: #1e88e5;
    --ess-secondary-color: #64b5f6;
    --ess-background: #ffffff;
    --ess-text: #333333;
    --ess-border-radius: 8px;
    --ess-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --ess-transition: all 0.3s ease;
    --ess-button-size: 44px;
}

/* Dynamic color application from admin settings */
body.ess-colors-applied {
    --ess-primary-color: var(--ess-dynamic-primary, #1e88e5);
    --ess-secondary-color: var(--ess-dynamic-secondary, #64b5f6);
    --ess-text: var(--ess-dynamic-text, #333333);
}

/* Button Reset to Prevent Theme Conflicts */
.ess-more-button,
.ess-floating-more-button,
.ess-toggle-button,
.ess-popup-close {
    /* Reset all button styles */
    all: unset;
    /* Restore essential button properties */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    /* Prevent theme interference */
    background: var(--platform-color, #6c757d);
    color: white;
    border: none;
    outline: none;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: normal;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Specific sizing - All Same Size */
    width: var(--ess-button-size);
    height: var(--ess-button-size);
    border-radius: var(--ess-border-radius);
    transition: var(--ess-transition);
    box-shadow: var(--ess-shadow);
    
    &:hover {
        background: var(--platform-color, #5a6268);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
    }
}

.ess-toggle-button {
    background: var(--ess-toggle-button-color, #1e88e5);
    margin-bottom: 8px;

    &:hover {
        background: var(--ess-secondary-color);
        transform: scale(1.05);
    }
    
    &:focus {
        outline: 2px solid var(--ess-primary-color);
        outline-offset: 2px;
    }
    
    svg {
        width: 24px;
        height: 24px;
        transition: var(--ess-transition);
    }
    
    &.active {
        .ess-toggle-icon {
            display: none;
        }
        
        .ess-close-icon {
            display: block;
        }
    }
}

/* Toggle Button Icon Style Support */
.ess-toggle-button.ess-style-circle {
    border-radius: 50% !important;
}

.ess-toggle-button.ess-style-square {
    border-radius: 4px !important;
}

.ess-toggle-button.ess-style-rounded {
    border-radius: 8px !important;
}

.ess-toggle-button.ess-style-hexagon {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

.ess-toggle-button.ess-style-diamond {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
}

.ess-toggle-button.ess-style-pill {
    border-radius: 25px !important;
}

/* Share Block Styles */
.ess-share-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    &.ess-layout-vertical {
        flex-direction: column;
        align-items: flex-start;
    }

    &.ess-align-center {
        justify-content: center;
    }

    &.ess-align-right {
        justify-content: flex-end;
    }
    
    .ess-share-button {
        width: auto;
        padding: 8px 16px;
        gap: 8px;
        
        .ess-label {
            position: static;
            background: transparent;
            opacity: 1;
            visibility: visible;
            transform: none;
            margin: 0;
            padding: 0;
            display: inline;
        }
    }
}

/* Share Button Base Styles */
.ess-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ess-button-size);
    height: var(--ess-button-size);
    background: var(--platform-color, var(--ess-primary-color));
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--ess-transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ess-shadow);

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        color: white;
        text-decoration: none;
    }

    &:focus {
        outline: 2px solid var(--ess-primary-color);
        outline-offset: 2px;
    }
    
    .ess-label {
        display: none;
    }
}

/* Apply Floating Panel Icon Styling to Share Block Icons */
.ess-share-block .ess-share-button {
    /* Apply same CSS variables as floating panel icons */
    width: var(--ess-icon-size, 40px);
    height: var(--ess-icon-size, 40px);
    padding: var(--ess-icon-padding, 8px);
    border: var(--ess-icon-border, none);
    background: var(--ess-icon-background, var(--platform-color));
    overflow: visible;
    z-index: 1;
    position: relative;
    margin: 0;
}

.ess-share-block .ess-icon svg {
    width: calc(var(--ess-icon-size, 40px) * 0.5);
    height: calc(var(--ess-icon-size, 40px) * 0.5);
    font-size: calc(var(--ess-icon-size, 40px) * 0.5);
}

/* Font-based icon scaling for share block icons */
.ess-share-block .ess-icon {
    font-size: calc(var(--ess-icon-size, 40px) * 0.5);
}

/* Custom icon color when platform colors are disabled - Share Block */
.ess-share-block.ess-use-custom-colors .ess-share-button {
    background: var(--ess-icon-custom-color, #007cba) !important;
    color: white;
}

.ess-share-block.ess-use-custom-colors .ess-icon svg {
    color: white;
}

/* Apply hover effects from floating panel to share block */
.ess-share-block .ess-share-button:hover .ess-icon {
    color: var(--ess-icon-secondary-color) !important;
}

/* Apply same shape styling to share block icons */
.ess-share-block.ess-shape-circle .ess-share-button {
    border-radius: 50%;
}

.ess-share-block.ess-shape-square .ess-share-button {
    border-radius: 0;
}

.ess-share-block.ess-shape-rounded .ess-share-button {
    border-radius: 8px;
}

.ess-share-block.ess-shape-pill .ess-share-button {
    border-radius: 25px;
}

.ess-share-block.ess-shape-hexagon .ess-share-button {
    border-radius: 0;
    position: relative;
    transform: rotate(30deg);
}

.ess-share-block.ess-shape-hexagon .ess-share-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    transform: rotate(60deg);
    z-index: -1;
    border-radius: 0;
}

.ess-share-block.ess-shape-hexagon .ess-share-button .ess-icon {
    transform: rotate(-30deg);
}

.ess-share-block.ess-shape-diamond .ess-share-button {
    border-radius: 0;
    transform: rotate(45deg);
}

.ess-share-block.ess-shape-diamond .ess-share-button .ess-icon {
    transform: rotate(-45deg);
}

/* Support ess-style-* classes for backward compatibility and direct style application */
.ess-share-block .ess-share-button.ess-style-circle {
    border-radius: 50% !important;
}

.ess-share-block .ess-share-button.ess-style-square {
    border-radius: 0 !important;
}

.ess-share-block .ess-share-button.ess-style-rounded {
    border-radius: 8px !important;
}

.ess-share-block .ess-share-button.ess-style-pill {
    border-radius: 25px !important;
}

.ess-share-block .ess-share-button.ess-style-hexagon {
    border-radius: 0 !important;
    position: relative;
    transform: rotate(30deg);
}

.ess-share-block .ess-share-button.ess-style-hexagon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    transform: rotate(60deg);
    z-index: -1;
    border-radius: 0;
}

.ess-share-block .ess-share-button.ess-style-hexagon .ess-icon {
    transform: rotate(-30deg);
}

.ess-share-block .ess-share-button.ess-style-diamond {
    border-radius: 0 !important;
    transform: rotate(45deg);
}

.ess-share-block .ess-share-button.ess-style-diamond .ess-icon {
    transform: rotate(-45deg);
}

/* Apply sizing based on data attributes to share block */
.ess-share-block[data-icon-size="small"] .ess-share-button {
    width: 32px;
    height: 32px;
}

.ess-share-block[data-icon-size="medium"] .ess-share-button {
    width: 40px;
    height: 40px;
}

.ess-share-block[data-icon-size="large"] .ess-share-button {
    width: 48px;
    height: 48px;
}

.ess-share-block[data-icon-size="extra-large"] .ess-share-button {
    width: 56px;
    height: 56px;
}

/* SVG Icon Scaling for Share Block Icons */
.ess-share-block[data-icon-size="small"] .ess-share-button .ess-icon svg {
    width: 16px;
    height: 16px;
}

.ess-share-block[data-icon-size="medium"] .ess-share-button .ess-icon svg {
    width: 20px;
    height: 20px;
}

.ess-share-block[data-icon-size="large"] .ess-share-button .ess-icon svg {
    width: 24px;
    height: 24px;
}

.ess-share-block[data-icon-size="extra-large"] .ess-share-button .ess-icon svg {
    width: 28px;
    height: 28px;
}

/* Apply copy link button styling to share block */
.ess-share-block .ess-platform-copy-link {
    background: #28a745 !important; /* Green background */
}

.ess-share-block .ess-platform-copy-link .ess-icon {
    color: #ffffff !important; /* White icon for contrast */
}

.ess-share-block .ess-platform-copy-link svg {
    fill: #ffffff !important; /* Ensure SVG fill is white */
}

.ess-share-block .ess-platform-copy-link:hover {
    background: #218838 !important; /* Darker green on hover */
}

/* Apply same animation and transition effects to share block icons */
.ess-share-block .ess-share-button {
    transition: all 0.3s ease;
}

.ess-share-block .ess-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Apply same icon sizing based on CSS variables to share block */
.ess-share-block .ess-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ess-icon-size, 40px) * 0.5);
    height: calc(var(--ess-icon-size, 40px) * 0.5);
    font-size: calc(var(--ess-icon-size, 40px) * 0.5);
    transition: all 0.3s ease;
}

.ess-share-block .ess-icon svg {
    width: calc(var(--ess-icon-size, 40px) * 0.5);
    height: calc(var(--ess-icon-size, 40px) * 0.5);
    fill: currentColor;
}
html body .ess-share-block span.ess-label {
    display: none !important;
}
/* Icon Styles */
.ess-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;

    svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}

/* Label Styles */
.ess-label {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Button Styles */
.ess-style-circle {
    border-radius: 50%;
    
    .ess-label {
        margin-left: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--ess-transition);
        z-index: 10;
    }
    
    &:hover .ess-label {
        opacity: 1;
        visibility: visible;
        left: calc(100% + 8px);
    }
}

.ess-style-square {
    border-radius: 4px;
    
    .ess-label {
        margin-left: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--ess-transition);
        z-index: 10;
    }
    
    &:hover .ess-label {
        opacity: 1;
        visibility: visible;
        left: calc(100% + 8px);
    }
}

/* Additional Icon Styles */
.ess-style-hexagon {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    
    .ess-label {
        margin-left: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--ess-transition);
        z-index: 10;
    }
    
    &:hover .ess-label {
        opacity: 1;
        visibility: visible;
        left: calc(100% + 8px);
    }
}

.ess-style-diamond {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    
    .ess-label {
        margin-left: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--ess-transition);
        z-index: 10;
    }
    
    &:hover .ess-label {
        opacity: 1;
        visibility: visible;
        left: calc(100% + 8px);
    }
}

.ess-style-pill {
    border-radius: 25px;
    
    .ess-label {
        margin-left: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--ess-transition);
        z-index: 10;
    }
    
    &:hover .ess-label {
        opacity: 1;
        visibility: visible;
        left: calc(100% + 8px);
    }
}

/* Layout with labels */
.ess-share-block .ess-share-button {
    width: auto;
    padding: 8px 16px;
    gap: 8px;
}

.ess-share-block .ess-share-button .ess-label {
    position: static;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0;
}

/* Floating Panel Styles */
.ess-floating-panel {
    position: fixed;
    top: 50%;
   /*  transform: translateY(-50%); */
    z-index: 999999 !important;
    background: white;
    border-radius: var(--ess-border-radius);
    border: var(--ess-panel-border);
    box-shadow: var(--ess-panel-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
    padding: 0;
    transition: var(--ess-transition);
    isolation: isolate;

    &.ess-position-left {
        left: 20px;
    }

    &.ess-position-right {
        right: 20px;
    }
    
    .ess-share-button {
        position: relative;
        width: var(--ess-icon-size, 40px);
        height: var(--ess-icon-size, 40px);
        margin: 0;
        padding: var(--ess-icon-padding, 8px);
        border: var(--ess-icon-border, none);
        background: var(--ess-icon-background, var(--platform-color));
        overflow: visible;
        z-index: 1;
    }
    
    .ess-icon svg {
        width: calc(var(--ess-icon-size, 40px) * 0.5);
        height: calc(var(--ess-icon-size, 40px) * 0.5);
        font-size: calc(var(--ess-icon-size, 40px) * 0.5);
    }

    /* Font-based icon scaling with CSS variables */
    .ess-icon {
        font-size: calc(var(--ess-icon-size, 40px) * 0.5);
    }

    /* Custom icon color when platform colors are disabled */
    &.ess-use-custom-colors .ess-share-button {
        background: var(--ess-icon-custom-color, #007cba) !important;
        color: white;
    }

    &.ess-use-custom-colors .ess-icon svg {
        color: white;
    }
}

/* Panel Content */
.ess-panel-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 15px 30px 15px; /* Extra bottom padding for bottom labels */
    max-height: 0;
    overflow: visible;
    transition: max-height 0.3s ease;
    position: relative; /* Ensure proper stacking context */

    &.open {
        max-height: 400px;
        overflow: visible;
    }
}

/* New Floating Panel Features */

/* Vertical Positioning */
html body .ess-floating-panel.ess-vertical-top {
    top: auto;
    transform: none;
}

.ess-floating-panel.ess-vertical-bottom {
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
}

.ess-floating-panel.ess-vertical-center {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Auto Hide Feature */
.ess-floating-panel.ess-auto-hide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Keyframes for smooth scroll-based hiding animations */
@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-120%) scale(0.9);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-120%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(120%) scale(0.9);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(120%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

/* Scroll-based hiding for any panel with ess-hidden class */
.ess-floating-panel.ess-hidden {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    pointer-events: none;
}

/* Auto-hide active state (time-based hiding) */
.ess-floating-panel.ess-auto-hide.ess-auto-hide-active {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Legacy auto-hide with hidden class */
.ess-floating-panel.ess-auto-hide.ess-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Scroll-based hiding - position-specific transforms for left positions */
.ess-floating-panel.ess-hidden.ess-position-fixed_left,
.ess-floating-panel.ess-hidden.ess-position-fixed_top_left,
.ess-floating-panel.ess-hidden.ess-position-fixed_bottom_left,
.ess-floating-panel.ess-hidden.ess-position-center_left,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_left,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_top_left,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_bottom_left,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-center_left {
    transform: translateY(-50%) translateX(-120%) scale(0.9);
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Scroll-based hiding - position-specific transforms for right positions */
.ess-floating-panel.ess-hidden.ess-position-fixed_right,
.ess-floating-panel.ess-hidden.ess-position-fixed_top_right,
.ess-floating-panel.ess-hidden.ess-position-fixed_bottom_right,
.ess-floating-panel.ess-hidden.ess-position-center_right,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_right,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_top_right,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-fixed_bottom_right,
.ess-floating-panel.ess-auto-hide.ess-hidden.ess-position-center_right {
    transform: translateY(-50%) translateX(120%) scale(0.9);
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Top and bottom positioned panels */
.ess-floating-panel.ess-hidden.ess-position-fixed_top,
.ess-floating-panel.ess-hidden.ess-position-fixed_top_center {
    transform: translateX(-50%) translateY(-120%) scale(0.9);
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.ess-floating-panel.ess-hidden.ess-position-fixed_bottom,
.ess-floating-panel.ess-hidden.ess-position-fixed_bottom_center {
    transform: translateX(-50%) translateY(120%) scale(0.9);
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Hover effect to show auto-hidden panels */
.ess-floating-panel.ess-auto-hide:hover,
.ess-floating-panel.ess-auto-hide:focus-within {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

.ess-floating-panel.ess-auto-hide.ess-position-center_right:hover,
.ess-floating-panel.ess-auto-hide.ess-position-fixed_right:hover,
.ess-floating-panel.ess-auto-hide.ess-position-fixed_top_right:hover,
.ess-floating-panel.ess-auto-hide.ess-position-fixed_bottom_right:hover {
    transform: translateY(-50%) !important;
}

/* Fallback for scroll-hidden panels when specific position isn't detected */
.ess-floating-panel.ess-hidden:not([class*="ess-position-"]) {
    transform: scale(0.8);
}

/* Quick show on hover for hidden panels */
.ess-floating-panel.ess-hidden:hover {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
}

/* Global scroll-based hiding with smooth animations */
.ess-floating-panel.ess-scroll-hidden {
    opacity: 0 !important;
    transform: scale(0.8) translateY(-50%) !important;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
    pointer-events: none !important;
}


/* Enhanced hover recovery for scroll-hidden panels */
.ess-floating-panel.ess-scroll-hidden:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
    pointer-events: all !important;
    transition: opacity 0.2s ease-in, transform 0.2s ease-in !important;
}

/* Smooth fade-in animation when panels become visible */
.ess-floating-panel.ess-position-center_left:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_left:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_top_left:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_bottom_left:not(.ess-hidden):not(.ess-scroll-hidden) {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.ess-floating-panel.ess-position-center_right:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_right:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_top_right:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_bottom_right:not(.ess-hidden):not(.ess-scroll-hidden) {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.ess-floating-panel.ess-position-fixed_top:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_top_center:not(.ess-hidden):not(.ess-scroll-hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.ess-floating-panel.ess-position-fixed_bottom:not(.ess-hidden):not(.ess-scroll-hidden),
.ess-floating-panel.ess-position-fixed_bottom_center:not(.ess-hidden):not(.ess-scroll-hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Animation state classes */
.ess-floating-panel.ess-fade-in {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.ess-floating-panel.ess-fade-out {
    animation: fadeSlideOut 0.4s ease-out forwards;
}

/* Position-specific animations */
.ess-floating-panel.ess-fade-in.ess-position-center_left,
.ess-floating-panel.ess-fade-in.ess-position-fixed_left,
.ess-floating-panel.ess-fade-in.ess-position-fixed_top_left,
.ess-floating-panel.ess-fade-in.ess-position-fixed_bottom_left {
    animation: slideInLeft 0.4s ease-out forwards;
}

.ess-floating-panel.ess-fade-out.ess-position-center_left,
.ess-floating-panel.ess-fade-out.ess-position-fixed_left,
.ess-floating-panel.ess-fade-out.ess-position-fixed_top_left,
.ess-floating-panel.ess-fade-out.ess-position-fixed_bottom_left {
    animation: slideOutLeft 0.4s ease-out forwards;
}

.ess-floating-panel.ess-fade-in.ess-position-center_right,
.ess-floating-panel.ess-fade-in.ess-position-fixed_right,
.ess-floating-panel.ess-fade-in.ess-position-fixed_top_right,
.ess-floating-panel.ess-fade-in.ess-position-fixed_bottom_right {
    animation: slideInRight 0.4s ease-out forwards;
}

.ess-floating-panel.ess-fade-out.ess-position-center_right,
.ess-floating-panel.ess-fade-out.ess-position-fixed_right,
.ess-floating-panel.ess-fade-out.ess-position-fixed_top_right,
.ess-floating-panel.ess-fade-out.ess-position-fixed_bottom_right {
    animation: slideOutRight 0.4s ease-out forwards;
}

/* Global scroll-based hiding (backup method) */
.ess-floating-panel.ess-scroll-hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
    pointer-events: none !important;
}

/* Show on hover for scroll-hidden panels */
.ess-floating-panel.ess-scroll-hidden:hover {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
}



/* Floating Panel Label Styles - Only when labels are enabled */
.ess-floating-panel.ess-labels-enabled .ess-share-button .ess-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.85) !important;
    color: white !important;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: none;
    z-index: 999999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    min-width: 30px;
    text-align: center;
    /* Default position - right side */
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
}

.ess-floating-panel.ess-labels-enabled .ess-share-button:hover .ess-label {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Hide labels when not enabled */
.ess-floating-panel:not(.ess-labels-enabled) .ess-share-button .ess-label {
    display: none;
}

/* Label Position Variants - Only when labels are enabled */
/* Note: Bottom position removed due to stacking context conflicts with vertical button layout */

.ess-floating-panel.ess-labels-enabled .ess-share-button.ess-label-position-top .ess-label {
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.ess-floating-panel.ess-labels-enabled .ess-share-button.ess-label-position-right .ess-label {
    left: calc(100% + 8px) !important;
    top: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translateY(-10%) !important;
    opacity: 0 !important;
    transition: 0.5s ease !important;
}
.ess-floating-panel.ess-labels-enabled .ess-share-button:hover .ess-label {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}
.ess-floating-panel.ess-preset-modern-glass .ess-panel-toggle svg {
    fill: #000 !important;
    color: #000;
}
.ess-floating-panel.ess-labels-enabled .ess-share-button.ess-label-position-left .ess-label {
    right: calc(100% + 8px) !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

/* Icons Display Modes */
.ess-floating-panel.ess-display-fold .ess-panel-content {
    display: none;
}

.ess-floating-panel.ess-display-fold .ess-panel-content.open {
    display: flex;
    max-height: 400px;
}

.ess-floating-panel.ess-display-expand .ess-panel-content {
    display: flex;
    max-height: 400px;
}

/* Toggle Button Enhancements */
.ess-floating-panel .ess-panel-toggle {
    position: relative;
}

.ess-floating-panel .ess-toggle-button {
    background: var(--ess-toggle-button-color, var(--ess-primary-color)) !important;
    transition: var(--ess-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ess-icon-size);
    height: var(--ess-icon-size);
    padding: var(--ess-icon-padding, 8px);
}

.ess-floating-panel .ess-floating-more-button {
    background: var(--ess-more-button-color, var(--ess-icon-secondary-color)) !important;
    border: var(--ess-icon-border, none);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ess-icon-size);
    height: var(--ess-icon-size);
    padding: var(--ess-icon-padding, 8px);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
}


.ess-floating-panel .ess-toggle-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ess-floating-panel.ess-display-fold .ess-toggle-button .ess-toggle-icon {
    display: block;
}

.ess-floating-panel.ess-display-fold .ess-toggle-button .ess-close-icon {
    display: none;
}

.ess-floating-panel.ess-display-fold.panel-open .ess-toggle-button .ess-toggle-icon {
    display: none;
}

.ess-floating-panel.ess-display-fold.panel-open .ess-toggle-button .ess-close-icon {
    display: block;
}

/* Dynamic Sizing */
.ess-floating-panel[data-icon-size="small"] .ess-floating-more-button,
.ess-floating-panel[data-icon-size="small"] .ess-share-button,
.ess-floating-panel[data-icon-size="small"] .ess-toggle-button {
    width: 32px;
    height: 32px;
}

.ess-floating-panel[data-icon-size="medium"] .ess-floating-more-button,
.ess-floating-panel[data-icon-size="medium"] .ess-share-button,
.ess-floating-panel[data-icon-size="medium"] .ess-toggle-button {
    width: 40px;
    height: 40px;
}

.ess-floating-panel[data-icon-size="large"] .ess-floating-more-button,
.ess-floating-panel[data-icon-size="large"] .ess-share-button,
.ess-floating-panel[data-icon-size="large"] .ess-toggle-button {
    width: 48px;
    height: 48px;
}


.ess-floating-panel[data-icon-size="extra-large"] .ess-floating-more-button,
.ess-floating-panel[data-icon-size="extra-large"] .ess-share-button,
.ess-floating-panel[data-icon-size="extra-large"] .ess-toggle-button {
    width: 56px;
    height: 56px;
}

/* SVG Icon Scaling for Data Attribute Sizes - Higher Specificity */
.ess-floating-panel[data-icon-size="small"] .ess-share-button .ess-icon svg,
.ess-floating-panel[data-icon-size="small"] .ess-toggle-button .ess-icon svg,
.ess-floating-panel[data-icon-size="small"] .ess-floating-more-button .ess-icon svg {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.ess-floating-panel[data-icon-size="medium"] .ess-share-button .ess-icon svg,
.ess-floating-panel[data-icon-size="medium"] .ess-toggle-button .ess-icon svg,
.ess-floating-panel[data-icon-size="medium"] .ess-floating-more-button .ess-icon svg {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
}

.ess-floating-panel[data-icon-size="large"] .ess-share-button .ess-icon svg,
.ess-floating-panel[data-icon-size="large"] .ess-toggle-button .ess-icon svg,
.ess-floating-panel[data-icon-size="large"] .ess-floating-more-button .ess-icon svg {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
}

.ess-floating-panel[data-icon-size="extra-large"] .ess-share-button .ess-icon svg,
.ess-floating-panel[data-icon-size="extra-large"] .ess-toggle-button .ess-icon svg,
.ess-floating-panel[data-icon-size="extra-large"] .ess-floating-more-button .ess-icon svg {
    width: 28px !important;
    height: 28px !important;
    font-size: 28px !important;
}

/* Font-based Icon Scaling for Data Attribute Sizes - Higher Specificity */
.ess-floating-panel[data-icon-size="small"] .ess-share-button .ess-icon,
.ess-floating-panel[data-icon-size="small"] .ess-toggle-button .ess-icon,
.ess-floating-panel[data-icon-size="small"] .ess-floating-more-button .ess-icon {
    font-size: 16px !important;
}

.ess-floating-panel[data-icon-size="medium"] .ess-share-button .ess-icon,
.ess-floating-panel[data-icon-size="medium"] .ess-toggle-button .ess-icon,
.ess-floating-panel[data-icon-size="medium"] .ess-floating-more-button .ess-icon {
    font-size: 20px !important;
}

.ess-floating-panel[data-icon-size="large"] .ess-share-button .ess-icon,
.ess-floating-panel[data-icon-size="large"] .ess-toggle-button .ess-icon,
.ess-floating-panel[data-icon-size="large"] .ess-floating-more-button .ess-icon {
    font-size: 24px !important;
}

.ess-floating-panel[data-icon-size="extra-large"] .ess-share-button .ess-icon,
.ess-floating-panel[data-icon-size="extra-large"] .ess-toggle-button .ess-icon,
.ess-floating-panel[data-icon-size="extra-large"] .ess-floating-more-button .ess-icon {
    font-size: 28px !important;
}

/* Platform-specific colors */
.ess-platform-facebook {
    --platform-color: #1877f2;
}

.ess-platform-xcom {
    --platform-color: #1da1f2;
}

.ess-platform-linkedin {
    --platform-color: #0077b5;
}

.ess-platform-whatsapp {
    --platform-color: #25d366;
}

.ess-platform-pinterest {
    --platform-color: #bd081c;
}

.ess-platform-telegram {
    --platform-color: #0088cc;
}

.ess-platform-reddit {
    --platform-color: #ff4500;
}

.ess-platform-email {
    --platform-color: #ea4335;
}

.ess-platform-tumblr {
    --platform-color: #35465c;
}

.ess-platform-skype {
    --platform-color: #00aff0;
}

.ess-platform-copy-link {
    --platform-color: #28a745;
}

/* Animation Classes */
.ess-fade-in {
    animation: essFladeIn 0.3s ease;
}

.ess-slide-up {
    animation: essSlideUp 0.3s ease;
}

.ess-bounce {
    animation: essBounce 0.5s ease;
}

/* Keyframes */
@keyframes essFladeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes essSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes essBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDownOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* Copy Success Notification */
.ess-copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: var(--ess-border-radius);
    box-shadow: var(--ess-shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--ess-transition);
}

.ess-copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Share Popup Styles - Beautiful Center Modal */
.ess-share-popup,
.ess-floating-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
    
    &.ess-floating-popup {
        z-index: 9999999;
    }
    
    &.ess-popup-closing {
        animation: fadeOut 0.3s ease-in forwards;
        
        .ess-popup-content {
            animation: modalSlideOut 0.3s ease-in forwards;
        }
    }
    a{
        text-decoration: none;
        &:hover {
            text-decoration: none;
        }
    }
    .ess-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .ess-popup-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        max-width: 90vw;
        max-height: 90vh;
        width: 600px;
        overflow: hidden;
        animation: modalSlideIn 0.4s ease-out forwards;
    }
}

    .ess-popup-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 30px;
        border-bottom: 1px solid #f0f0f0;
        background: linear-gradient(135deg, #f8f9fd 0%, #ffffff 100%);
        
        h3 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #2d3748;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    }
    
    .ess-popup-close {
        background: #f7fafc;
        border: 1px solid #e2e8f0;
        color: #718096;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        
        &:hover {
            background: #e53e3e;
            color: white;
            border-color: #e53e3e;
            transform: scale(1.05);
        }
        
        &:focus {
            outline: 3px solid rgba(66, 153, 225, 0.5);
            outline-offset: 2px;
        }
    }

    .ess-popup-body {
        padding: 30px;
        max-height: 500px;
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer and Edge */
    }

    .ess-popup-body::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .ess-popup-platforms {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .ess-popup-category {
        margin-bottom: 0;
    }
    
    .ess-category-title {
        font-size: 16px;
        font-weight: 600;
        color: #2d3748;
        margin: 0 0 16px 0;
        padding-bottom: 8px;
        border-bottom: 2px solid #edf2f7;
        position: relative;
        background: transparent;
        
        &::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 1px;
        }
    }
    
    .ess-category-platforms {
        display: flex;
        gap: 12px;
        flex-flow: row wrap;
    }

    .ess-popup-platform {
        display: flex;
        align-items: center;
        padding: 16px;
        border-radius: 12px;
        text-decoration: none;
        color: #4a5568;
        border: 1px solid #e2e8f0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
        font-size: 14px;
        font-weight: 500;
        position: relative;
        overflow: hidden;
        
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--platform-color);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        
        &:hover {
            color: white;
            border-color: var(--platform-color);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            
            &::before {
                opacity: 1;
            }
            
            .ess-popup-icon svg {
                transform: scale(1.1);
            }
        }
        
        &:focus {
            outline: 2px solid var(--ess-primary-color);
            outline-offset: 2px;
        }
        
        * {
            position: relative;
            z-index: 2;
        }
    }
    
    .ess-popup-icon {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        
        svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
            transition: transform 0.3s ease;
        }
    }
    .ess-popup-platform.ess-platform-academia,
    .ess-popup-platform.ess-platform-xing,
    .ess-popup-platform.ess-platform-tumblr,
    .ess-popup-platform.ess-platform-dev,
    .ess-popup-platform.ess-platform-qr-code,
    .ess-popup-platform.ess-platform-tiktok,
    .ess-popup-platform.ess-platform-github,
    .ess-popup-platform.ess-platform-medium,
    .ess-popup-platform.ess-platform-digg,
    .ess-popup-platform.ess-platform-xcom {
        &:hover {
            .ess-popup-icon svg {
                fill: #ffffff;
            }
            .ess-popup-label {
                color: #ffffff;
            }
        }


    }

    .ess-popup-label {
        position: relative;
        z-index: 2;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Display Mode Specific Styles */
    
    /* Icons Only Mode */
    &[data-display-mode="icons_only"] {
        .ess-category-platforms {
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 16px;
        }
        
        .ess-popup-platform {
            flex-direction: column;
            padding: 20px 12px;
            min-height: 80px;
            justify-content: center;
            text-align: center;
            aspect-ratio: 1;
        }
        
        .ess-popup-icon {
            margin-right: 0;
            margin-bottom: 0;
            width: 32px;
            height: 32px;
        }
        
        .ess-popup-label {
            display: none;
        }
    }
    
    /* Icons with Text Mode (Default) */
    &[data-display-mode="icons_text"] {
        .ess-category-platforms {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        }
        
        .ess-popup-platform {
            flex-direction: row;
            align-items: center;
        }
        
        .ess-popup-icon {
            margin-right: 8px;
            width: 20px;
            height: 20px;
        }
        
        .ess-popup-label {
            display: block;
            flex: 1;
        }
    }

/* Body class when popup is open */
body.ess-popup-open {
    overflow: hidden;
}


/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --ess-background: #1a1a1a;
        --ess-text: #ffffff;
        --ess-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .ess-floating-panel {
        background: #2d2d2d;
        color: white;
    }
    
    .ess-style-circle,
    .ess-style-square {
        .ess-label {
            background: rgba(255, 255, 255, 0.9);
            color: #333;
        }
    }
    
    .ess-share-popup,
    .ess-floating-popup {
        .ess-popup-content {
            background: #1a202c;
            color: #e2e8f0;
        }
        
        .ess-popup-header {
            background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
            border-bottom-color: #4a5568;
            
            h3 {
                color: #e2e8f0;
                background: none;
                -webkit-background-clip: unset;
                -webkit-text-fill-color: #e2e8f0;
                background-clip: unset;
            }
        }
        
                
        .ess-popup-close {
            background: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
            
            &:hover {
                background: #e53e3e;
                color: white;
                border-color: #e53e3e;
            }
        }
        
        .ess-popup-platform {
            background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
            border-color: #4a5568;
            color: #e2e8f0;
        }
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ess-share-button {
        border: 2px solid currentColor;
    }
    
    .ess-share-button:focus {
        outline: 3px solid;
        outline-offset: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ess-share-button,
    .ess-toggle-button,
    .ess-more-button,
    .ess-floating-more-button,
    .ess-popup-close,
    .ess-floating-panel,
    .ess-panel-content {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   FLOATING PANEL COMPREHENSIVE DESIGN
   ============================================ */

/* Main Floating Panel Structure */
.ess-floating-panel.ess-comprehensive-design {
    position: fixed;
    background: transparent;
    border-radius: var(--ess-container-border-radius);
    padding: var(--ess-container-padding);
    box-shadow: var(--ess-container-shadow);
    z-index: 999999 !important;
    transition: all 0.3s ease;
    bottom: auto; /* Remove any bottom positioning */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    isolation: isolate;
}

/* Glassmorphism background style */
.ess-floating-panel.ess-bg-glass,
.ess-floating-panel.ess-bg-glassmorphism {
    backdrop-filter: var(--ess-backdrop-filter, blur(10px));
    -webkit-backdrop-filter: var(--ess-backdrop-filter, blur(10px));
    border: var(--ess-panel-border, var(--ess-border, 1px solid rgba(255,255,255,0.2)));
}

/* Neomorphism background style */
.ess-floating-panel.ess-bg-neomorphism {
    box-shadow: var(--ess-box-shadow, inset 5px 5px 10px rgba(0,0,0,0.1), inset -5px -5px 10px rgba(255,255,255,0.8)), var(--ess-panel-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
}

/* Transparent background style */
.ess-floating-panel.ess-bg-transparent {
    background: transparent !important;
}

/* Gradient background style */
.ess-floating-panel.ess-bg-gradient {
    background: var(--ess-container-bg-color);
}

/* Hide scrollbars completely for floating panel */
.ess-floating-panel {
    overflow: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

.ess-floating-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Different overflow behavior for different position types */
.ess-floating-panel.ess-position-center_left,
.ess-floating-panel.ess-position-center_right {
    /* For center positions, allow natural sizing */
    overflow: visible;
}

.ess-floating-panel.ess-position-center_left .ess-panel-content,
.ess-floating-panel.ess-position-center_right .ess-panel-content {
    overflow: visible;
}

/* For other positions, maintain no scroll behavior */
.ess-floating-panel:not(.ess-position-center_left):not(.ess-position-center_right) {
    overflow: visible;
}

/* Additional rules to ensure no scrollbars anywhere */
.ess-floating-panel.ess-position-center_left .ess-panel-container,
.ess-floating-panel.ess-position-center_right .ess-panel-container {
    overflow: visible;
}

/* Override any inherited overflow for all positioned content */
.ess-floating-panel.ess-position-center_left,
.ess-floating-panel.ess-position-center_right {
    overflow: visible;
}

.ess-floating-panel .ess-panel-container {
    display: flex;
    flex-direction: column;
    gap: var(--ess-icon-spacing);
    align-items: center; /* Center all buttons */
    width: 100%;
}

.ess-floating-panel.ess-arrangement-horizontal .ess-panel-container {
    flex-direction: row;
}
.ess-floating-panel .ess-panel-content {
    overflow: visible; /* Ensure content is not cut off */
    max-height: none; /* Remove any height restrictions */
    margin-bottom: 0; /* Remove any bottom margin */
    padding-bottom: 0; /* Remove bottom padding that might push content down */
}

.ess-floating-panel .ess-panel-content.open {
    display: flex; /* Use flex for better control */
    flex-direction: column;
    gap: var(--ess-icon-spacing);
    align-items: center; /* Center all icons horizontally */
}

/* Panel state classes for better specificity and conflict prevention */
.ess-floating-panel.panel-open .ess-panel-content.open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}
.ess-floating-panel.panel-close .ess-panel-container{
    display: inline;
}

.ess-floating-panel.panel-close .ess-panel-content.ess-close {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    width: 0 !important;
    padding: 0 !important;
}

.ess-floating-panel.ess-display-expand .ess-panel-content {
    /* In expand mode, content should be properly contained */
    display: flex !important;
    flex-direction: column;
    gap: var(--ess-icon-spacing);
    align-items: center;
}

.ess-floating-panel.ess-display-fold .ess-panel-content {
    display: none !important; /* Hidden by default in fold mode */
    flex-direction: column;
    gap: var(--ess-icon-spacing);
    align-items: center; /* Center all icons */
}

.ess-floating-panel.ess-display-fold .ess-panel-content.open {
    display: flex !important; /* Show when opened in fold mode */
    flex-direction: column;
    gap: var(--ess-icon-spacing);
    align-items: center;
}



/* Shared button properties */
.ess-floating-panel .ess-toggle-button,
.ess-floating-panel .ess-floating-more-button,
.ess-floating-panel .ess-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ess-icon-size);
    height: var(--ess-icon-size);
    border: var(--ess-icon-border, none);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center each button */
    flex-shrink: 0; /* Prevent shrinking */
    padding: var(--ess-icon-padding, 8px);
}

/* Individual button background colors */
.ess-floating-panel .ess-share-button {
    background: var(--ess-icon-secondary-color);
}

.ess-floating-panel.ess-shape-circle .ess-share-button {
    border-radius: 50%;
}

.ess-floating-panel.ess-shape-square .ess-share-button {
    border-radius: 0;
}

.ess-floating-panel.ess-shape-rounded .ess-share-button {
    border-radius: 8px;
}

/* Additional shape styles */
.ess-floating-panel.ess-shape-hexagon .ess-share-button {
    border-radius: 0;
    position: relative;
    transform: rotate(30deg);
}

.ess-floating-panel.ess-shape-hexagon .ess-share-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    transform: rotate(60deg);
    z-index: -1;
    border-radius: 0;
}

.ess-floating-panel.ess-shape-hexagon .ess-share-button .ess-icon {
    transform: rotate(-30deg);
}

.ess-floating-panel.ess-shape-diamond .ess-share-button {
    border-radius: 0;
    transform: rotate(45deg);
}

.ess-floating-panel.ess-shape-diamond .ess-share-button .ess-icon {
    transform: rotate(-45deg);
}

/* Shape styles for toggle button and more button */
.ess-floating-panel.ess-shape-circle .ess-toggle-button,
.ess-floating-panel.ess-shape-circle .ess-floating-more-button {
    border-radius: 50%;
}

.ess-floating-panel.ess-shape-square .ess-toggle-button,
.ess-floating-panel.ess-shape-square .ess-floating-more-button {
    border-radius: 0;
}

.ess-floating-panel.ess-shape-rounded .ess-toggle-button,
.ess-floating-panel.ess-shape-rounded .ess-floating-more-button {
    border-radius: 8px;
}

/* Extended shape styles for toggle and more buttons */
.ess-floating-panel.ess-shape-hexagon .ess-toggle-button,
.ess-floating-panel.ess-shape-hexagon .ess-floating-more-button {
    border-radius: 0;
    transform: rotate(30deg);
}

.ess-floating-panel.ess-shape-hexagon .ess-toggle-button .ess-toggle-icon,
.ess-floating-panel.ess-shape-hexagon .ess-toggle-button .ess-close-icon,
.ess-floating-panel.ess-shape-hexagon .ess-floating-more-button .ess-icon {
    transform: rotate(-30deg);
}

.ess-floating-panel.ess-shape-diamond .ess-toggle-button,
.ess-floating-panel.ess-shape-diamond .ess-floating-more-button {
    border-radius: 0;
    transform: rotate(45deg);
}

.ess-floating-panel.ess-shape-diamond .ess-toggle-button .ess-toggle-icon,
.ess-floating-panel.ess-shape-diamond .ess-toggle-button .ess-close-icon,
.ess-floating-panel.ess-shape-diamond .ess-floating-more-button .ess-icon {
    transform: rotate(-45deg);
}

/* Icon Style Classes for Comprehensive Design */
.ess-floating-panel .ess-style-circle {
    border-radius: 50% !important;
}

.ess-floating-panel .ess-style-square {
    border-radius: 4px !important;
}

.ess-floating-panel .ess-style-rounded {
    border-radius: 8px !important;
}

.ess-floating-panel .ess-style-hexagon {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

.ess-floating-panel .ess-style-diamond {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
    transform: rotate(0deg) !important;
}

.ess-floating-panel .ess-style-pill {
    border-radius: 0 25px 0 25px !important;
}

/* Override shape classes when style classes are also present */
.ess-floating-panel .ess-toggle-button.ess-style-circle,
.ess-floating-panel .ess-floating-more-button.ess-style-circle,
.ess-floating-panel .ess-share-button.ess-style-circle {
    border-radius: 50% !important;
}

.ess-floating-panel .ess-toggle-button.ess-style-square,
.ess-floating-panel .ess-floating-more-button.ess-style-square,
.ess-floating-panel .ess-share-button.ess-style-square {
    border-radius: 4px !important;
}

.ess-floating-panel .ess-toggle-button.ess-style-rounded,
.ess-floating-panel .ess-floating-more-button.ess-style-rounded,
.ess-floating-panel .ess-share-button.ess-style-rounded {
    border-radius: 8px !important;
}

.ess-floating-panel .ess-toggle-button.ess-style-hexagon,
.ess-floating-panel .ess-floating-more-button.ess-style-hexagon,
.ess-floating-panel .ess-share-button.ess-style-hexagon {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

.ess-floating-panel .ess-toggle-button.ess-style-diamond,
.ess-floating-panel .ess-floating-more-button.ess-style-diamond,
.ess-floating-panel .ess-share-button.ess-style-diamond {
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
}

.ess-share-block .ess-share-button.ess-style-pill,
.ess-floating-panel .ess-toggle-button.ess-style-pill,
.ess-floating-panel .ess-floating-more-button.ess-style-pill,
.ess-floating-panel .ess-share-button.ess-style-pill {
    border-radius: 0 25px 0 25px !important;
}

.ess-floating-panel .ess-share-button:hover {
    background: var(--ess-icon-hover-color);
    transform: var(--hover-transform, scale(1.1));
}

/* Hover effects for toggle button and more button */
.ess-floating-panel .ess-toggle-button:hover {
    background: var(--ess-icon-hover-color);
    transform: var(--hover-transform, scale(1.1));
}

.ess-floating-panel .ess-floating-more-button:hover {
    background: var(--ess-icon-hover-color);
    transform: var(--hover-transform, scale(1.1));
}

.ess-floating-panel .ess-icon {
    font-size: calc(var(--ess-icon-size) * 0.5);
    transition: all 0.3s ease;
}

.ess-floating-panel .ess-share-button:hover .ess-icon {
    color: var(--ess-icon-secondary-color) !important;
}

/* Icon hover effects for toggle button and more button */
.ess-floating-panel .ess-toggle-button:hover .ess-icon {
    color: var(--ess-icon-secondary-color) !important;
}

.ess-floating-panel .ess-floating-more-button:hover .ess-icon {
    color: var(--ess-icon-secondary-color) !important;
}

/* Specific styling for copy link button */
.ess-floating-panel .ess-platform-copy-link {
    background: #28a745 !important; /* Green background */
}

.ess-floating-panel .ess-platform-copy-link .ess-icon {
    color: #ffffff !important; /* White icon for contrast */
}

.ess-floating-panel .ess-platform-copy-link svg {
    fill: #ffffff !important; /* Ensure SVG fill is white */
    color: #ffffff !important; /* Ensure SVG color is white */
}

.ess-floating-panel .ess-platform-copy-link:hover {
    background: #1e7e34 !important; /* Darker green on hover */
}

/* Ensure all buttons in panel content are visible */
.ess-floating-panel .ess-panel-content {
    min-height: auto;
    padding-bottom: 10px; /* Add some bottom padding */
}

/* Make sure last buttons (copy link + more) are visible */
.ess-floating-panel .ess-panel-content a:last-child,
.ess-floating-panel .ess-panel-content a:nth-last-child(2) {
    margin-bottom: 0 !important;
    display: flex !important;
}

/* Animation Classes */
.ess-floating-panel.ess-animation-fadeIn {
    animation: essFadeIn 0.6s ease-out forwards;
}

.ess-floating-panel.ess-animation-slideInLeft {
    animation: essSlideInLeft 0.6s ease-out forwards;
}

.ess-floating-panel.ess-animation-slideInRight {
    animation: essSlideInRight 0.6s ease-out forwards;
}

.ess-floating-panel.ess-hover-scale .ess-share-button:hover {
    transform: scale(1.1);
    overflow: inherit;
}

.ess-floating-panel.ess-hover-lift .ess-share-button:hover {
    transform: translateY(-3px);
}

.ess-floating-panel.ess-hover-rotate .ess-share-button:hover {
    transform: rotate(5deg);
}

.ess-floating-panel.ess-hover-glow .ess-share-button:hover {
    box-shadow: 0 0 20px rgba(0, 123, 186, 0.5);
}

/* Additional hover animations */
.ess-floating-panel.ess-hover-pulse .ess-share-button:hover {
    animation: essPulse 0.6s ease-in-out;
}

.ess-floating-panel.ess-hover-wobble .ess-share-button:hover {
    animation: essWobble 0.8s ease-in-out;
}

.ess-floating-panel.ess-hover-bounce .ess-share-button:hover {
    animation: essBounce 0.6s ease-in-out;
}

.ess-floating-panel.ess-hover-flip .ess-share-button:hover {
    animation: essFlip 0.6s ease-in-out;
}

.ess-floating-panel.ess-hover-shake .ess-share-button:hover {
    animation: essShake 0.5s ease-in-out;
}

/* Enhanced glow with color variations for neon preset */
.ess-floating-panel.ess-hover-glow.ess-preset-vibrant-neon .ess-share-button:hover {
    box-shadow: 0 0 25px #00ff88, 0 0 50px rgba(0, 255, 136, 0.3);
    text-shadow: 0 0 10px #00ff88;
}

/* ========================================
   COMPREHENSIVE ANIMATION SYSTEM
   Matches all admin interface options
======================================== */

/* 1. ENTRANCE ANIMATIONS */
@keyframes essFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes essSlideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes essSlideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes essSlideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes essBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes essZoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes essFlipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateX(-20deg);
    }
    60% {
        transform: perspective(400px) rotateX(10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotateX(-5deg);
    }
    to {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes essRotateIn {
    from {
        transform: rotate(-200deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

/* Additional hover animation keyframes for complete preset support */
@keyframes essPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes essWobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

@keyframes essBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

@keyframes essFlip {
    0% { transform: perspective(400px) rotateY(0); }
    40% { transform: perspective(400px) rotateY(-40deg); }
    60% { transform: perspective(400px) rotateY(-10deg); }
    80% { transform: perspective(400px) rotateY(-5deg); }
    100% { transform: perspective(400px) rotateY(0); }
}

@keyframes essShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 2. HOVER ANIMATIONS */
@keyframes essHoverScale {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes essHoverLift {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes essHoverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes essHoverBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-15px);
    }
    70% {
        transform: translateY(-7px);
    }
    90% {
        transform: translateY(-3px);
    }
}

@keyframes essHoverShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes essHoverRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes essHoverWobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

@keyframes essHoverJello {
    11.1% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
    }
    22.2% {
        transform: skewX(6.25deg) skewY(6.25deg);
    }
    33.3% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
    }
    44.4% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
    }
    55.5% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
    }
    66.6% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
    }
    77.7% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
    88.8% {
        transform: skewX(0.09765625deg) skewY(0.09765625deg);
    }
    100% {
        transform: skewX(0deg) skewY(0deg);
    }
}

@keyframes essHoverGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes essHoverFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}



/* ========================================
   ANIMATION CLASSES
======================================== */

/* Entrance Animation Classes */
.ess-floating-panel.ess-animation-fadeIn {
    animation: essFadeIn var(--ess-animation-duration, 300ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-slideInUp {
    animation: essSlideInUp var(--ess-animation-duration, 300ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-slideInRight {
    animation: essSlideInRight var(--ess-animation-duration, 300ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-slideInLeft {
    animation: essSlideInLeft var(--ess-animation-duration, 300ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-bounceIn {
    animation: essBounceIn var(--ess-animation-duration, 600ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-zoomIn {
    animation: essZoomIn var(--ess-animation-duration, 300ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-flipInX {
    animation: essFlipInX var(--ess-animation-duration, 600ms) ease-out var(--ess-animation-delay, 0ms) both;
}

.ess-floating-panel.ess-animation-rotateIn {
    animation: essRotateIn var(--ess-animation-duration, 400ms) ease-out var(--ess-animation-delay, 0ms) both;
}

/* Hover Animation Classes */
.ess-floating-panel.ess-hover-scale .ess-share-button:hover {
    animation: essHoverScale 0.3s ease-in-out both;
}

.ess-floating-panel.ess-hover-lift .ess-share-button:hover {
    animation: essHoverLift 0.3s ease-in-out both;
}

.ess-floating-panel.ess-hover-pulse .ess-share-button:hover {
    animation: essHoverPulse 0.6s ease-in-out infinite;
}

.ess-floating-panel.ess-hover-bounce .ess-share-button:hover {
    animation: essHoverBounce 1s ease-in-out both;
}

.ess-floating-panel.ess-hover-shake .ess-share-button:hover {
    animation: essHoverShake 0.5s ease-in-out both;
}

.ess-floating-panel.ess-hover-rotate .ess-share-button:hover {
    animation: essHoverRotate 0.6s ease-in-out both;
}

.ess-floating-panel.ess-hover-wobble .ess-share-button:hover {
    animation: essHoverWobble 1s ease-in-out both;
}

.ess-floating-panel.ess-hover-jello .ess-share-button:hover {
    animation: essHoverJello 0.9s ease-in-out both;
}

.ess-floating-panel.ess-hover-glow .ess-share-button:hover {
    animation: essHoverGlow 0.8s ease-in-out infinite alternate;
}

.ess-floating-panel.ess-hover-flash .ess-share-button:hover {
    animation: essHoverFlash 0.4s ease-in-out 2;
}

/* Continuous Animation Classes */
/* 3. CONTINUOUS ANIMATIONS */
@keyframes essContinuousPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes essContinuousGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(30, 136, 229, 0.3); }
    50% { box-shadow: 0 0 20px rgba(30, 136, 229, 0.8), 0 0 30px rgba(30, 136, 229, 0.4); }
}

@keyframes essContinuousFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}


@keyframes essContinuousRotate {
            0%, 100% { transform: translateX(-10%) scale(1) translateY(0); }
            10% { transform: translateX(-10%) scale(1.1) translateY(-10px); }
            20% { transform: translateX(-10%) scale(0.9) translateY(0); }
            30% { transform: translateX(-10%) scale(1.05) translateY(-5px); }
            40% { transform: translateX(-10%) scale(0.95) translateY(0); }
            50% { transform: translateX(-10%) scale(1.02) translateY(-2px); }
            60% { transform: translateX(-10%) scale(0.98) translateY(0); }
            70% { transform: translateX(-10%) scale(1.01) translateY(-1px); }
            80% { transform: translateX(-10%) scale(0.99) translateY(0); }
            90% { transform: translateX(-10%) scale(1.005) translateY(-0.5px); }
    }

    @keyframes rubberBand {
            0% { transform: translateX(-10%) scaleX(1) scaleY(1); }
            30% { transform: translateX(-10%) scaleX(1.25) scaleY(0.75); }
            40% { transform: translateX(-10%) scaleX(0.75) scaleY(1.25); }
            50% { transform: translateX(-10%) scaleX(1.15) scaleY(0.85); }
            65% { transform: translateX(-10%) scaleX(0.95) scaleY(1.05); }
            75% { transform: translateX(-10%) scaleX(1.05) scaleY(0.95); }
            100% { transform: translateX(-10%) scaleX(1) scaleY(1); }
        }
    @keyframes flipYToggle {
            0%, 100% { transform: translateX(-10%) rotateY(0deg); }
            50% { transform: translateX(-10%) rotateY(180deg); }
        }

.ess-floating-panel.ess-continuous-pulse {
    animation: essContinuousPulse 2s ease-in-out infinite;
}

.ess-floating-panel.ess-continuous-glow {
    animation: essContinuousGlow 2s ease-in-out infinite alternate;
}

html body .ess-floating-panel.ess-continuous-float {
    animation: essContinuousFloat 3s ease-in-out infinite !important;
}

html body .ess-floating-panel.ess-continuous-rotate {
    animation: essContinuousRotate 2s linear infinite !important;
}

html body .ess-floating-panel.ess-continuous-rubberband {
    animation: rubberBand 10s ease infinite;
}
html body .ess-floating-panel.ess-continuous-flipytoggle {
    animation: flipYToggle 10s ease infinite;
}


/* ========================================
   STAGGERED ANIMATION SYSTEM
======================================== */

.ess-floating-panel.ess-staggered-animation .ess-share-button {
    animation-delay: calc(var(--ess-animation-delay, 0ms) + (var(--ess-stagger-delay, 100ms) * var(--stagger-index, 0)));
}

.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(1) { --stagger-index: 0; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(2) { --stagger-index: 1; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(3) { --stagger-index: 2; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(4) { --stagger-index: 3; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(5) { --stagger-index: 4; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(6) { --stagger-index: 5; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(7) { --stagger-index: 6; }
.ess-floating-panel.ess-staggered-animation .ess-share-button:nth-child(8) { --stagger-index: 7; }

/* ========================================
   HOVER COLOR CHANGE SYSTEM
======================================== */

.ess-floating-panel.ess-hover-color-change .ess-share-button:hover {
    background-color: var(--ess-hover-color, #ff6b6b) !important;
    transition: background-color 0.3s ease;
}

.ess-floating-panel.ess-hover-color-change .ess-share-button:hover svg {
    color: white !important;
    fill: currentColor;
    transition: color 0.3s ease;
}

/* ========================================
   POSITION & LAYOUT SYSTEM
======================================== */

/* Default arrangement when no specific arrangement class is present */
.ess-floating-panel:not(.ess-arrangement-vertical):not(.ess-arrangement-grid-2x2):not(.ess-arrangement-grid-3x2):not(.ess-arrangement-circular) .ess-panel-content,
.ess-floating-panel:not(.ess-arrangement-vertical):not(.ess-arrangement-grid-2x2):not(.ess-arrangement-grid-3x2):not(.ess-arrangement-circular) .ess-panel-content.open {
    display: flex !important;
    flex-direction: row !important;
    gap: var(--ess-icon-spacing, 8px) !important;
    align-items: center !important;
}

/* Panel Positioning Classes */
.ess-floating-panel.ess-position-top-left {
    position: fixed !important;
    top: var(--ess-horizontal-offset, 20px) !important;
    left: var(--ess-horizontal-offset, 20px) !important;
    transform: none !important;
    bottom: auto !important;
    right: auto !important;
}

.ess-floating-panel.ess-position-top-right {
    position: fixed !important;
    top: var(--ess-horizontal-offset, 20px) !important;
    right: var(--ess-horizontal-offset, 20px) !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
}

.ess-floating-panel.ess-position-bottom-left {
    position: fixed !important;
    bottom: var(--ess-horizontal-offset, 20px) !important;
    left: var(--ess-horizontal-offset, 20px) !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
}

.ess-floating-panel.ess-position-bottom-right {
    position: fixed !important;
    bottom: var(--ess-horizontal-offset, 20px) !important;
    right: var(--ess-horizontal-offset, 20px) !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.ess-floating-panel.ess-position-center-left {
    position: fixed !important;
    left: var(--ess-horizontal-offset, 20px) !important;
    bottom: auto !important;
    right: auto !important;
}

.ess-floating-panel.ess-position-center-right {
    position: fixed !important;
    right: var(--ess-horizontal-offset, 20px) !important;
    bottom: auto !important;
    left: auto !important;
}
.ess-floating-panel.ess-position-center-left,
.ess-floating-panel.ess-position-center-right,
.ess-floating-panel.ess-position-center-left.ess-continuous-flipytoggle,
.ess-floating-panel.ess-position-center-right.ess-continuous-flipytoggle,
.ess-floating-panel.ess-position-center-left.ess-continuous-rubberband,
.ess-floating-panel.ess-position-center-right.ess-continuous-rubberband,
.ess-floating-panel.ess-position-center-left.ess-continuous-rotate,
.ess-floating-panel.ess-position-center-right.ess-continuous-rotate,
.ess-floating-panel.ess-position-center-left.ess-continuous-float,
.ess-floating-panel.ess-position-center-right.ess-continuous-float {
    height: fit-content;
    top: 0 !important;
    margin: auto 0;
    bottom: 0 !important;
}
/* Icon Arrangement Classes */
.ess-floating-panel.ess-arrangement-horizontal .ess-panel-content,
.ess-floating-panel.ess-arrangement-horizontal .ess-panel-content.open {
    display: flex;
    flex-direction: row !important;
    gap: var(--ess-icon-spacing, 8px) !important;
    padding: var(--ess-panel-padding, 16px) !important;
    align-items: center !important;
}

.ess-floating-panel.ess-arrangement-vertical .ess-panel-content,
.ess-floating-panel.ess-arrangement-vertical .ess-panel-content.open {
    display: flex;
    flex-direction: column !important;
    gap: var(--ess-icon-spacing, 8px) !important;
    padding: var(--ess-panel-padding, 16px) !important;
    align-items: center !important;
}

.ess-floating-panel.ess-arrangement-grid-2x2 .ess-panel-content,
.ess-floating-panel.ess-arrangement-grid-2x2 .ess-panel-content.open {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--ess-icon-spacing, 8px) !important;
    padding: var(--ess-panel-padding, 16px) !important;
    place-items: center !important;
}

.ess-floating-panel.ess-arrangement-grid-3x2 .ess-panel-content,
.ess-floating-panel.ess-arrangement-grid-3x2 .ess-panel-content.open {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--ess-icon-spacing, 8px) !important;
    padding: var(--ess-panel-padding, 16px) !important;
    place-items: center !important;
}

.ess-floating-panel.ess-arrangement-circular .ess-panel-content,
.ess-floating-panel.ess-arrangement-circular .ess-panel-content.open {
    display: flex !important;
    position: relative !important;
    padding: var(--ess-panel-padding, 16px) !important;
    min-width: 120px !important;
    min-height: 120px !important;
    justify-content: center !important;
    align-items: center !important;
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button {
    position: absolute;
    transform-origin: center;
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button:nth-child(1) {
    transform: rotate(0deg) translateY(-40px) rotate(0deg);
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button:nth-child(2) {
    transform: rotate(72deg) translateY(-40px) rotate(-72deg);
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button:nth-child(3) {
    transform: rotate(144deg) translateY(-40px) rotate(-144deg);
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button:nth-child(4) {
    transform: rotate(216deg) translateY(-40px) rotate(-216deg);
}

.ess-floating-panel.ess-arrangement-circular .ess-share-button:nth-child(5) {
    transform: rotate(288deg) translateY(-40px) rotate(-288deg);
}

/* Auto Hide Functionality */
.ess-floating-panel.ess-auto-hide {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.ess-floating-panel.ess-auto-hide:hover {
    opacity: 1;
}

.ess-floating-panel.ess-auto-hide.ess-auto-hide-active {
    opacity: 0.1;
    pointer-events: none;
}

.ess-floating-panel.ess-auto-hide.ess-auto-hide-active:hover {
    opacity: 1;
    pointer-events: all;
}

/* Panel Padding Override */
.ess-floating-panel .ess-panel-content {
    padding: var(--ess-panel-padding, 16px);
}

/* Z-Index Control */
.ess-floating-panel {
    z-index: var(--ess-z-index, 9999);
}

/* ========================================
   RESPONSIVE DESIGN SYSTEM
======================================== */

/* Base responsive behavior */
.ess-floating-panel {
    transition: all 0.3s ease;
}



/* Tablet visibility controls */
@media (min-width: 769px) and (max-width: 1024px) {
    .ess-floating-panel.ess-hide-tablet {
        display: none !important;
    }
    
    /* Tablet-specific adjustments */
    .ess-floating-panel:not(.ess-hide-tablet) {
        --ess-icon-size: calc(var(--ess-icon-size) + 2px);
    }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
    .ess-floating-panel {
        /* Full desktop experience with all features enabled */
        --ess-icon-size: var(--ess-icon-size, 40px);
        --ess-panel-padding: var(--ess-panel-padding, 16px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .ess-floating-panel .ess-toggle-button,
    .ess-floating-panel .ess-floating-more-button,
    .ess-floating-panel .ess-share-button {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
    }
    
    /* Disable hover effects on touch devices */
    .ess-floating-panel.ess-hover-scale .ess-share-button:hover,
    .ess-floating-panel.ess-hover-lift .ess-share-button:hover,
    .ess-floating-panel.ess-hover-pulse .ess-share-button:hover {
        animation: none !important;
        transform: none !important;
    }
}

/* ========================================
   DESIGN PRESET SYSTEM
   Complete styling for all admin presets
======================================== */

/* General preset fixes for share count visibility */
.ess-floating-panel[class*="ess-preset-"] .ess-share-button {
    overflow: visible !important;
    position: relative !important;
}

.ess-floating-panel[class*="ess-preset-"] .ess-share-count {
    z-index: 999999 !important;
    position: absolute !important;
}

.ess-floating-panel[class*="ess-preset-"] .ess-panel-container {
    overflow: visible !important;
}

.ess-floating-panel[class*="ess-preset-"] .ess-panel-content {
    overflow: visible !important;
}

/* 1. MODERN GLASS PRESET */
.ess-floating-panel.ess-preset-modern-glass {
    background:linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%) !important !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.ess-floating-panel.ess-preset-modern-glass .ess-share-button {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.ess-floating-panel.ess-preset-modern-glass .ess-share-button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.ess-floating-panel.ess-preset-modern-glass .ess-toggle-button {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Fix share count visibility for modern glass preset */
.ess-floating-panel.ess-preset-modern-glass .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-modern-glass .ess-share-count {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9999 !important;
}

/* 2. VIBRANT NEON PRESET */
.ess-floating-panel.ess-preset-vibrant-neon {
    background: #1a1a1a !important;
    border: 2px solid #00ff88 !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.1) !important;
}

.ess-floating-panel.ess-preset-vibrant-neon .ess-share-button {
    background: #00ff88 !important;
    color: #1a1a1a !important;
    border: 1px solid #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
    transition: all 0.3s ease !important;
}

.ess-floating-panel.ess-preset-vibrant-neon .ess-share-button:hover {
    background: #00cc6a !important;
    box-shadow: 0 0 25px #00ff88, 0 0 50px rgba(0, 255, 136, 0.5) !important;
    text-shadow: 0 0 10px #00ff88 !important;
    transform: scale(1.1) !important;
}

.ess-floating-panel.ess-preset-vibrant-neon .ess-toggle-button {
    background: #00ff88 !important;
    color: #1a1a1a !important;
    border: 1px solid #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
}

.ess-floating-panel.ess-preset-vibrant-neon .ess-icon {
    filter: brightness(0) invert(0) !important;
}

/* Fix share count visibility for vibrant neon preset */
.ess-floating-panel.ess-preset-vibrant-neon .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-vibrant-neon .ess-share-count {
    background: #ff0080 !important;
    color: white !important;
    border: 1px solid #ff0080 !important;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.6) !important;
    z-index: 9999 !important;
}

/* 3. MINIMAL CLEAN PRESET */
.ess-floating-panel.ess-preset-minimal-clean {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.ess-floating-panel.ess-preset-minimal-clean .ess-share-button {
    background: #333333 !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.ess-floating-panel.ess-preset-minimal-clean .ess-share-button:hover {
    background: #555555 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2) !important;
}

.ess-floating-panel.ess-preset-minimal-clean .ess-toggle-button {
    background: #333333 !important;
    color: #ffffff !important;
    border: none !important;
}

.ess-floating-panel.ess-preset-minimal-clean .ess-icon {
    filter: brightness(0) invert(1) !important;
}

/* Fix share count visibility for minimal clean preset */
.ess-floating-panel.ess-preset-minimal-clean .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-minimal-clean .ess-share-count {
    background: #333 !important;
    color: white !important;
    z-index: 9999 !important;
}

/* 4. GRADIENT FLOW PRESET */
.ess-floating-panel.ess-preset-gradient-flow {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3) !important;
}

.ess-floating-panel.ess-preset-gradient-flow .ess-share-button {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.4s ease !important;
}

.ess-floating-panel.ess-preset-gradient-flow .ess-share-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
    animation: essPulse 0.6s ease-in-out !important;
}

.ess-floating-panel.ess-preset-gradient-flow .ess-toggle-button {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Fix share count visibility for gradient flow preset */
.ess-floating-panel.ess-preset-retro-style .ess-share-button ,
.ess-floating-panel.ess-preset-gradient-flow .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-gradient-flow .ess-share-count {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9999 !important;
}

/* 5. DARK MODE PRESET */
.ess-floating-panel.ess-preset-dark-mode {
    background: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.ess-floating-panel.ess-preset-dark-mode .ess-share-button {
    background: #a0aec0 !important;
    color: #2d3748 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.ess-floating-panel.ess-preset-dark-mode .ess-share-button:hover {
    background: #cbd5e0 !important;
    transform: rotate(5deg) !important;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.4) !important;
}

.ess-floating-panel.ess-preset-dark-mode .ess-toggle-button {
    background: #a0aec0 !important;
    color: #2d3748 !important;
    border: none !important;
}

.ess-floating-panel.ess-preset-dark-mode .ess-icon {
    filter: brightness(0) invert(0.2) !important;
}

/* Fix share count visibility for dark mode preset */
.ess-floating-panel.ess-preset-dark-mode .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-dark-mode .ess-share-count {
    background: #e53e3e !important;
    color: white !important;
    z-index: 9999 !important;
}

/* 6. RETRO STYLE PRESET */
.ess-floating-panel.ess-preset-retro-style {
    background: #f7dc6f !important;
    border: 3px solid #8b4513 !important;
    box-shadow: 5px 5px 0px #8b4513, 0 0 20px rgba(139, 69, 19, 0.3) !important;
}

.ess-floating-panel.ess-preset-retro-style .ess-share-button {
    background: #8b4513 !important;
    color: #f7dc6f !important;
    border: 2px solid #654321 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.ess-floating-panel.ess-preset-retro-style .ess-share-button:hover {
    background: #654321 !important;
    transform: rotate(15deg) !important;
    animation: essWobble 0.8s ease-in-out !important;
    box-shadow: 3px 3px 0px #f7dc6f !important;
}

.ess-floating-panel.ess-preset-retro-style .ess-toggle-button {
    background: #8b4513 !important;
    color: #f7dc6f !important;
    border: 2px solid #654321 !important;
}

.ess-floating-panel.ess-preset-retro-style .ess-icon {
    filter: brightness(0) invert(0.9) sepia(1) saturate(3) hue-rotate(30deg) !important;
}

/* Fix share count visibility for retro style preset */
.ess-floating-panel.ess-preset-retro-style .ess-share-button {
    overflow: visible !important;
}

.ess-floating-panel.ess-preset-retro-style .ess-share-count {
    background: #654321 !important;
    color: #f7dc6f !important;
    border: 2px solid #8b4513 !important;
    z-index: 9999 !important;
}

/* ========================================
   RESPONSIVE PRESET OVERRIDES
======================================== */



/* ========================================
   PRESET CONFLICT PREVENTION
======================================== */

/* Ensure preset styles take precedence over general styles */
.ess-floating-panel[class*="ess-preset-"] .ess-share-button {
    position: relative;
    z-index: 1;
}

.ess-floating-panel[class*="ess-preset-"] .ess-toggle-button {
    position: relative;
    z-index: 1;
}

/* High-density displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ess-floating-panel svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .ess-floating-panel.ess-arrangement-vertical .ess-panel-content {
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ess-floating-panel,
    .ess-floating-panel *,
    .ess-floating-panel .ess-share-button {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .ess-floating-panel {
        display: none !important;
    }
}
.ess-share-link {
    overflow: visible !important;
}
/* Share Count Display */
.ess-share-count {
    display: inline-block;
    background: #000;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 9999;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--ess-transition);
    opacity: 0;
    visibility: hidden;
}

/* Share count in different contexts */
.ess-share-link.ess-with-count {
    position: relative;
}

/* For buttons that need relative positioning for absolute badge */
.ess-share-button.ess-with-count {
    position: relative;
}

/* Hover effects */
.ess-share-link:hover .ess-share-count,
.ess-share-button:hover .ess-share-count {
    transform: scale(1.1);
    background: #333;
    opacity: 1;
    visibility: visible;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .ess-share-count {
        background: #1a1a1a;
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
    }
    
    .ess-share-link:hover .ess-share-count,
    .ess-share-button:hover .ess-share-count {
        background: #333;
        opacity: 1;
        visibility: visible;
    }
}



/* Responsive Design */
@media (max-width: 768px) {

    .ess-floating-panel.ess-hide-mobile {
        display: none !important;
    }

    .ess-floating-panel {
        left: 10px;
        right: 10px;
        width: auto;
        
        &.ess-position-right {
            right: 10px;
            left: auto;
        }
        
        .ess-share-button {
            width: 40px;
            height: 40px;
        }
        
        .ess-icon svg {
            width: 16px;
            height: 16px;
        }
    }
    html body .ess-floating-panel.ess-position-center-left {
        left: 1px !important;
    }
    html body .ess-floating-panel.ess-position-center-right {
        right: 1px !important;
    }
    html body .ess-floating-panel.ess-mobile-position-top-right,
    html body .ess-floating-panel.ess-mobile-position-bottom-right {
        left: auto !important;
        right: 1px !important;
    }
    html body .ess-floating-panel.ess-mobile-position-bottom-center{
        left: 50% !important;
        right: auto !important;
    }
    .ess-share-block {
        gap: 6px;
    }
    
    .ess-share-button {
        --ess-button-size: 40px;
    }
    
    .ess-toggle-button,
    .ess-more-button,
    .ess-floating-more-button,
    .ess-popup-close {
        width: 40px;
        height: 40px;
    }
    
    .ess-share-popup,
    .ess-floating-popup {
        .ess-popup-content {
            width: 95vw;
            max-height: 85vh;
            border-radius: 16px;
        }
        
        .ess-popup-header {
            padding: 20px 24px;
            
            h3 {
                font-size: 20px;
            }
        }
        
        .ess-popup-body {
            padding: 24px;
            max-height: calc(85vh - 140px); /* Account for header height and spacing */
        }
        
        &[data-display-mode="icons_text"] .ess-category-platforms {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        }
        
        &[data-display-mode="icons_only"] .ess-category-platforms {
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        }
    }

    .ess-floating-panel.ess-mobile-display-fold .ess-panel-content {
        display: none !important;
    }

    .ess-floating-panel.ess-mobile-display-fold .ess-panel-content.open {
        display: flex !important;
        flex-direction: column;
        gap: var(--ess-icon-spacing);
        align-items: center;
        max-height: 400px;
    }

    .ess-floating-panel.ess-mobile-display-fold .ess-panel-content.ess-close {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }

    .ess-floating-panel.ess-mobile-display-expand .ess-panel-content {
        display: flex !important;
        flex-direction: column;
        gap: var(--ess-icon-spacing);
        align-items: center;
        max-height: 400px;
    }
    
    /* Mobile panel state classes */
    .ess-floating-panel.panel-open .ess-panel-content.open {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }

    .ess-floating-panel.panel-close .ess-panel-content.ess-close {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }
    
    /* Handle mobile arrangement overrides */
    .ess-floating-panel.ess-mobile-arrangement-horizontal .ess-panel-content,
    .ess-floating-panel.ess-mobile-arrangement-horizontal .ess-panel-content.open {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ess-floating-panel.ess-mobile-arrangement-vertical .ess-panel-content,
    .ess-floating-panel.ess-mobile-arrangement-vertical .ess-panel-content.open {
        flex-direction: column !important;
    }
    
    /* Mobile-specific toggle button states */
    .ess-floating-panel.ess-mobile-display-fold .ess-toggle-button .ess-toggle-icon {
        display: block;
    }

    .ess-floating-panel.ess-mobile-display-fold .ess-toggle-button .ess-close-icon {
        display: none;
    }

    .ess-floating-panel.ess-mobile-display-fold.panel-open .ess-toggle-button .ess-toggle-icon {
        display: none;
    }

    .ess-floating-panel.ess-mobile-display-fold.panel-open .ess-toggle-button .ess-close-icon {
        display: block;
    }
     .ess-floating-panel.ess-hide-mobile {
        display: none !important;
    }

    .ess-floating-panel.ess-mobile-arrangement-horizontal .ess-panel-container {
        flex-direction: row;
    }

    /* Mobile-specific adjustments when visible - icon size is set by PHP dynamically */
    .ess-floating-panel:not(.ess-hide-mobile) {
        padding: 5px;
    }
    
    /* Mobile position classes */
    .ess-floating-panel.ess-mobile-position-bottom-center {
        position: fixed !important;
        bottom: 10px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* Mobile-specific arrangements */
    .ess-floating-panel .ess-panel-content {
        gap: 6px !important;
        padding: 8px !important;
    }
    
    /* Reduce spacing on mobile */
    html body .ess-floating-panel .ess-share-button {
        margin: 0 2px !important;
        max-height: 30px !important;
        max-width: 30px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    
    /* Override inline styles with higher specificity */
    html body .ess-floating-panel .ess-share-button[style*="width"],
    html body .ess-floating-panel .ess-share-button[style*="height"] {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
    
    /* Mobile floating panel icon size */
    html body .ess-floating-panel .ess-icon {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    
    /* Ensure SVG icons scale properly */
    html body .ess-floating-panel .ess-icon svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    
    /* Ultimate override for any inline styles on floating panel buttons */
    html body div.ess-floating-panel a.ess-toggle-button,
    html body div.ess-floating-panel a.ess-floating-more-button,
    html body div.ess-floating-panel a.ess-share-button {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    
    /* Ultimate override for floating panel icons */
    html body div.ess-floating-panel .ess-panel-toggle a.ess-floating-more-button svg,
    html body div.ess-floating-panel .ess-panel-toggle a.ess-close-icon .ess-icon svg,
    html body div.ess-floating-panel .ess-panel-toggle a.ess-toggle-icon .ess-icon svg,
    html body div.ess-floating-panel a.ess-share-button .ess-icon,
    html body div.ess-floating-panel a.ess-share-button .ess-icon svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        font-size: 18px !important;
    }

    /* Mobile-specific preset adjustments */
    .ess-floating-panel.ess-preset-modern-glass {
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .ess-floating-panel.ess-preset-vibrant-neon {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.2) !important;
    }
    
    .ess-floating-panel.ess-preset-gradient-flow {
        box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2) !important;
    }
    
    .ess-floating-panel.ess-preset-dark-mode {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    .ess-floating-panel.ess-preset-retro-style {
        box-shadow: 3px 3px 0px #8b4513, 0 0 15px rgba(139, 69, 19, 0.2) !important;
    }



}

@media (max-width: 480px) {
    .ess-share-block {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ess-share-button {
        --ess-button-size: 36px;
    }
    
    .ess-toggle-button,
    .ess-more-button,
    .ess-floating-more-button,
    .ess-popup-close {
        width: 36px;
        height: 36px;
    }
}

