/**
* Module mod_sj_sticky_any_module For Joomla 6
* Version        : 2.1.0
* Created by     : ExtensionSpot
* Modified on    : 06 Oct 2026
* URL            : www.extensionspot.com
* Copyright (C) 2011-2026 ExtensionSpot
* License GPLv2.0 - http://www.gnu.org/licenses/gpl-2.0.html
*/

.sj-sticky-any-module-wrapper {
    position: fixed;
    z-index: 50000;
    overflow: visible;
    max-width: 100vw;
    box-sizing: border-box;
}

.sj-sticky-any-module-wrapper[hidden] {
    display: none !important;
}

.sj-sticky-glisiera {
    display: flex;
    max-width: 100vw;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out, margin 0.5s ease-in-out;
}

.sj-sticky-panel {
    background-color: var(--panel-bg-color);
    color: var(--panel-text-color, inherit);
    padding: var(--panel-padding);
    border-radius: var(--flip-panel-border-radius);
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

.sj-sticky-content-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sj-sticky-content {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
}

.sj-sticky-flip,
.sj-sticky-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    font: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sj-sticky-flip {
    background-color: var(--flip-bg-color);
    border-radius: var(--flip-border-radius);
    padding: 10px;
    width: auto;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    flex-shrink: 0;
}

.sj-sticky-flip:hover,
.sj-sticky-flip:focus-visible {
    background-color: var(--flip-bg-hover-color);
}

.sj-sticky-flip:focus-visible,
.sj-sticky-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sj-sticky-toggler-icon {
    color: var(--flip-text-color);
    font-size: var(--flip-font-size, 14px);
    transition: color 0.3s, transform 0.5s ease-in-out;
    line-height: 1;
}

.sj-sticky-toggler-text {
    color: var(--flip-text-color);
    font-size: var(--flip-font-size, 14px);
    padding-left: 8px;
    white-space: nowrap;
    transition: color 0.3s;
    margin: 0;
}

.sj-sticky-flip:hover .sj-sticky-toggler-icon,
.sj-sticky-flip:hover .sj-sticky-toggler-text,
.sj-sticky-flip:focus-visible .sj-sticky-toggler-icon,
.sj-sticky-flip:focus-visible .sj-sticky-toggler-text {
    color: var(--flip-text-hover-color);
}

.sj-sticky-close-wrapper {
    display: none;
    height: auto;
}

.sj-sticky-close {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    line-height: 1;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sj-sticky-destroyer-icon {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s;
}

.sj-sticky-close:hover .sj-sticky-destroyer-icon,
.sj-sticky-close:focus-visible .sj-sticky-destroyer-icon {
    color: #ff0000;
}

.is-hidden-permanently {
    display: none !important;
}

/* Desktop: handle on the right side of the panel. */
.sj-layout-right .sj-sticky-glisiera { flex-direction: row; }
.sj-layout-right .sj-sticky-panel { order: 1; }
.sj-layout-right .sj-sticky-flip { order: 2; }
.sj-layout-right .sj-sticky-flip {
    width: 44px;
    height: 44px;
    padding: 0;
}
.sj-layout-right .sj-sticky-toggler-text { display: none; }

.sj-layout-right .sj-sticky-glisiera.is-closed-desktop,
.sj-layout-right.sj-start-closed-desktop .sj-sticky-glisiera {
    transform: translateX(-100%);
    margin-left: 44px;
}

/* Desktop: handle on the left side of the panel. */
.sj-layout-left .sj-sticky-glisiera { flex-direction: row-reverse; }
.sj-layout-left .sj-sticky-panel { order: 1; }
.sj-layout-left .sj-sticky-flip { order: 2; }
.sj-layout-left .sj-sticky-flip {
    width: 44px;
    height: 44px;
    padding: 0;
}
.sj-layout-left .sj-sticky-toggler-text { display: none; }

.sj-layout-left .sj-sticky-glisiera.is-closed-desktop,
.sj-layout-left.sj-start-closed-desktop .sj-sticky-glisiera {
    transform: translateX(100%);
    margin-right: 44px;
}

/* Desktop: handle above the panel. */
.sj-layout-top .sj-sticky-glisiera { flex-direction: column; }
.sj-layout-top .sj-sticky-panel { order: 2; transform: none; }
.sj-layout-top .sj-sticky-flip { order: 1; }

.sj-layout-top .sj-sticky-content-wrapper {
    transition: max-height 0.5s ease-in-out;
    max-height: 90vh;
    max-height: 90dvh;
}

.sj-layout-top .sj-sticky-glisiera.is-closed-desktop .sj-sticky-content-wrapper,
.sj-layout-top.sj-start-closed-desktop .sj-sticky-glisiera .sj-sticky-content-wrapper {
    max-height: 0;
}

.sj-layout-top .sj-sticky-panel {
    transition: padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
}

.sj-layout-top .sj-sticky-glisiera.is-closed-desktop .sj-sticky-panel,
.sj-layout-top.sj-start-closed-desktop .sj-sticky-glisiera .sj-sticky-panel {
    padding-top: 0;
    padding-bottom: 0;
}

.sj-sticky-glisiera.is-closed-desktop .sj-sticky-toggler-icon[class*="icon-arrow"],
.sj-sticky-glisiera.is-closed-desktop .sj-sticky-toggler-icon[class*="icon-chevron"],
.sj-sticky-glisiera.is-closed-mobile .sj-sticky-toggler-icon[class*="icon-arrow"],
.sj-sticky-glisiera.is-closed-mobile .sj-sticky-toggler-icon[class*="icon-chevron"] {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .sj-sticky-glisiera,
    .sj-sticky-panel,
    .sj-sticky-content-wrapper,
    .sj-sticky-flip,
    .sj-sticky-toggler-icon,
    .sj-sticky-toggler-text,
    .sj-sticky-destroyer-icon {
        transition: none !important;
    }
}
