/* EPS Live Floating Pro - Frontend/Admin shared styles */
.eps-lfp-wrap {
    position: fixed;
    z-index: var(--eps-lfp-z, 99999);
    pointer-events: none;
    line-height: 1;
}

.eps-lfp-wrap * {
    box-sizing: border-box;
}

.eps-lfp-position-bottom-right {
    right: var(--eps-lfp-offset-x, 28px);
    bottom: var(--eps-lfp-offset-y, 28px);
}

.eps-lfp-position-bottom-left {
    left: var(--eps-lfp-offset-x, 28px);
    bottom: var(--eps-lfp-offset-y, 28px);
}

.eps-lfp-position-top-right {
    right: var(--eps-lfp-offset-x, 28px);
    top: var(--eps-lfp-offset-y, 28px);
}

.eps-lfp-position-top-left {
    left: var(--eps-lfp-offset-x, 28px);
    top: var(--eps-lfp-offset-y, 28px);
}

.eps-lfp-position-middle-right {
    right: var(--eps-lfp-offset-x, 28px);
    top: 50%;
    transform: translateY(-50%);
}

.eps-lfp-position-middle-left {
    left: var(--eps-lfp-offset-x, 28px);
    top: 50%;
    transform: translateY(-50%);
}

.eps-lfp-button,
.eps-lfp-button:visited {
    --eps-lfp-shadow-color: color-mix(in srgb, var(--eps-lfp-glow, #e30613) 42%, transparent);
    position: relative;
    isolation: isolate;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    color: var(--eps-lfp-text, #ffffff) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: inherit;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.055em;
    line-height: 1;
    border: 1px solid color-mix(in srgb, var(--eps-lfp-border, #ffffff) 64%, transparent);
    background: radial-gradient(circle at 28% 20%, color-mix(in srgb, var(--eps-lfp-primary, #e30613) 100%, #ffffff 10%) 0%, var(--eps-lfp-primary, #e30613) 38%, var(--eps-lfp-secondary, #5c0007) 100%);
    box-shadow: 0 16px 38px var(--eps-lfp-shadow-color), inset 0 1px 0 color-mix(in srgb, var(--eps-lfp-border, #ffffff) 34%, transparent);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.eps-lfp-button:hover,
.eps-lfp-button:focus-visible {
    color: var(--eps-lfp-text, #ffffff) !important;
    filter: brightness(1.1) saturate(1.08);
    text-decoration: none !important;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 20px 48px color-mix(in srgb, var(--eps-lfp-glow, #e30613) 56%, transparent), inset 0 1px 0 color-mix(in srgb, var(--eps-lfp-border, #ffffff) 42%, transparent);
}

.eps-lfp-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--eps-lfp-border, #ffffff) 86%, transparent);
    outline-offset: 4px;
}

.eps-lfp-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    white-space: nowrap;
}

.eps-lfp-dot {
    position: relative;
    z-index: 3;
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 999px;
    background: var(--eps-lfp-dot, #ffffff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--eps-lfp-dot, #ffffff) 22%, transparent);
    line-height: 0;
}

.eps-lfp-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--eps-lfp-dot, #ffffff) 62%, transparent);
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    animation: epsLfpDotPulse 1.8s ease-out infinite;
    pointer-events: none;
}

.eps-lfp-size-compact {
    min-height: 42px;
    padding: 0 18px;
    font-size: 12px;
}

.eps-lfp-size-standard {
    min-height: 50px;
    padding: 0 22px;
    font-size: 14px;
}

.eps-lfp-size-large {
    min-height: 60px;
    padding: 0 28px;
    font-size: 16px;
}

.eps-lfp-shape-eps {
    border-radius: 12px;
    transform: skewX(-10deg);
}

.eps-lfp-shape-eps .eps-lfp-label,
.eps-lfp-shape-eps .eps-lfp-dot {
    transform: skewX(10deg);
}

.eps-lfp-shape-capsule {
    border-radius: 999px;
}

.eps-lfp-shape-rounded {
    border-radius: 16px;
}

.eps-lfp-shape-square {
    border-radius: 3px;
}

/* Round shape: corrected in v3.1.1 */
.eps-lfp-shape-round {
    padding: 0 !important;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    gap: 0;
    overflow: visible;
}

.eps-lfp-shape-round.eps-lfp-size-compact {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    font-size: 11px;
}

.eps-lfp-shape-round.eps-lfp-size-standard {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    font-size: 13px;
}

.eps-lfp-shape-round.eps-lfp-size-large {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    font-size: 15px;
}

.eps-lfp-shape-round .eps-lfp-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    line-height: 1;
}

.eps-lfp-shape-round .eps-lfp-dot {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    display: block;
    border-radius: 50%;
    background: var(--eps-lfp-dot, #ffffff);
    box-shadow: none;
    transform: none;
    line-height: 0;
}

.eps-lfp-shape-round.eps-lfp-size-compact .eps-lfp-dot {
    top: 8px;
    right: 8px;
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
}

.eps-lfp-shape-round.eps-lfp-size-large .eps-lfp-dot {
    top: 13px;
    right: 13px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
}

.eps-lfp-shape-round .eps-lfp-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--eps-lfp-dot, #ffffff) 18%, transparent);
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: -1;
    pointer-events: none;
}

.eps-lfp-shape-round.eps-lfp-size-compact .eps-lfp-dot::before {
    width: 20px;
    height: 20px;
}

.eps-lfp-shape-round.eps-lfp-size-large .eps-lfp-dot::before {
    width: 26px;
    height: 26px;
}

.eps-lfp-shape-round .eps-lfp-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--eps-lfp-dot, #ffffff) 62%, transparent);
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    animation: epsLfpDotPulseCentered 1.8s ease-out infinite;
    box-sizing: border-box;
    pointer-events: none;
}

.eps-lfp-shape-round.eps-lfp-size-compact .eps-lfp-dot::after {
    width: 11px;
    height: 11px;
}

.eps-lfp-shape-round.eps-lfp-size-large .eps-lfp-dot::after {
    width: 14px;
    height: 14px;
}

.eps-lfp-animation-none,
.eps-lfp-animation-none .eps-lfp-dot::after {
    animation: none !important;
}

.eps-lfp-animation-eps::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: -80%;
    left: -65%;
    width: 48%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
    transform: rotate(20deg);
    animation: epsLfpShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.eps-lfp-animation-eps {
    animation: epsLfpGlow 2.8s ease-in-out infinite;
}

.eps-lfp-animation-pulse {
    animation: epsLfpButtonPulse 1.8s ease-in-out infinite;
}

.eps-lfp-animation-float {
    animation: epsLfpFloat 3.2s ease-in-out infinite;
}

.eps-lfp-animation-glow {
    animation: epsLfpGlow 2.2s ease-in-out infinite;
}

@keyframes epsLfpDotPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: .95; }
    70% { transform: translate(-50%, -50%) scale(2.15); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.15); opacity: 0; }
}

@keyframes epsLfpDotPulseCentered {
    0% { transform: translate(-50%, -50%) scale(1); opacity: .95; }
    70% { transform: translate(-50%, -50%) scale(1.95); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.95); opacity: 0; }
}

@keyframes epsLfpShine {
    0%, 42% { left: -70%; opacity: 0; }
    52% { opacity: .65; }
    68%, 100% { left: 125%; opacity: 0; }
}

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

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

@keyframes epsLfpGlow {
    0%, 100% { box-shadow: 0 14px 34px color-mix(in srgb, var(--eps-lfp-glow, #e30613) 36%, transparent), inset 0 1px 0 color-mix(in srgb, var(--eps-lfp-border, #ffffff) 32%, transparent); }
    50% { box-shadow: 0 18px 52px color-mix(in srgb, var(--eps-lfp-glow, #e30613) 64%, transparent), inset 0 1px 0 color-mix(in srgb, var(--eps-lfp-border, #ffffff) 42%, transparent); }
}

@media (max-width: 782px) {
    .eps-lfp-display-desktop {
        display: none !important;
    }

    .eps-lfp-position-bottom-right,
    .eps-lfp-position-top-right {
        right: max(14px, var(--eps-lfp-offset-x, 18px));
    }

    .eps-lfp-position-bottom-left,
    .eps-lfp-position-top-left {
        left: max(14px, var(--eps-lfp-offset-x, 18px));
    }

    .eps-lfp-position-bottom-right,
    .eps-lfp-position-bottom-left {
        bottom: max(14px, var(--eps-lfp-offset-y, 18px));
    }

    .eps-lfp-position-top-right,
    .eps-lfp-position-top-left {
        top: max(14px, var(--eps-lfp-offset-y, 18px));
    }
}

@media (min-width: 783px) {
    .eps-lfp-display-mobile {
        display: none !important;
    }
}

/* Admin preview */
.eps-lfp-admin-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 24px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(227,6,19,.20), transparent 35%), linear-gradient(135deg, #101010, #242127);
}

.eps-lfp-admin .eps-lfp-version {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}
