.aro-fcb {
    position: fixed;
    bottom: calc(var(--aro-fcb-bottom-desktop, 24px) + env(safe-area-inset-bottom, 0px));
    z-index: var(--aro-fcb-z, 9998);
    max-inline-size: calc(100vw - (var(--aro-fcb-side-desktop, 24px) * 2));
    pointer-events: none;
}

.aro-fcb--desktop-right {
    right: calc(var(--aro-fcb-side-desktop, 24px) + env(safe-area-inset-right, 0px));
    left: auto;
}

.aro-fcb--desktop-left {
    right: auto;
    left: calc(var(--aro-fcb-side-desktop, 24px) + env(safe-area-inset-left, 0px));
}

.aro-fcb__list {
    display: flex;
    flex-direction: var(--aro-fcb-direction, row);
    align-items: flex-end;
    gap: var(--aro-fcb-gap, 10px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.aro-fcb__item {
    margin: 0;
    padding: 0;
    pointer-events: auto;
}


/* Ostadno: keep vertical button stacks uniform and anchored to the selected side. */
.aro-fcb--layout-column .aro-fcb__list {
    align-items: stretch;
    inline-size: max-content;
    max-inline-size: 100%;
}

.aro-fcb--layout-column .aro-fcb__item {
    inline-size: 100%;
}

.aro-fcb--layout-column .aro-fcb__link {
    display: flex;
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
}

.aro-fcb__link {
    --aro-fcb-shadow: 0 8px 24px rgb(15 23 42 / 16%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    direction: inherit;
    text-align: start;
    min-block-size: var(--aro-fcb-button-size-desktop, 54px);
    gap: 9px;
    padding: 9px 12px 9px 16px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 999px;
    background: var(--aro-fcb-bg, #fff);
    color: var(--aro-fcb-color, #FFFFFF);
    box-shadow: var(--aro-fcb-shadow);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.aro-fcb__text {
    min-inline-size: 0;
    text-align: start;
}

.aro-fcb__link:hover {
    color: var(--aro-fcb-color, #FFFFFF);
    box-shadow: 0 12px 30px rgb(15 23 42 / 22%);
    filter: brightness(.98);
    text-decoration: none;
    transform: translateY(-2px);
}

.aro-fcb__link:focus-visible {
    outline: 3px solid #0f84fa;
    outline-offset: 3px;
}

.aro-fcb__icon {
    display: inline-flex;
    flex: 0 0 calc(var(--aro-fcb-icon-size-desktop, 24px) + 10px);
    align-items: center;
    justify-content: center;
    inline-size: calc(var(--aro-fcb-icon-size-desktop, 24px) + 10px);
    block-size: calc(var(--aro-fcb-icon-size-desktop, 24px) + 10px);
    border-radius: 50%;
    background: rgb(255 255 255 / 18%);
    overflow: hidden;
}

.aro-fcb__icon svg {
    display: block;
    inline-size: var(--aro-fcb-icon-size-desktop, 24px);
    block-size: var(--aro-fcb-icon-size-desktop, 24px);
}

.aro-fcb__item--desktop-hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .aro-fcb__link {
        transition: none;
    }

    .aro-fcb__link:hover {
        transform: none;
    }
}

@media print {
    .aro-fcb {
        display: none;
    }
}

.aro-fcb-svg-icon {
    display: block;
    fill: currentColor;
}


@media (forced-colors: active) {
    .aro-fcb__link {
        border: 1px solid ButtonText;
        forced-color-adjust: auto;
    }
}

/* Ostadno responsive social launcher. It is only shown after JavaScript chooses an active collapse mode. */
.aro-fcb .aro-fcb__toggle {
    display: none;
    position: relative;
    box-sizing: border-box !important;
    align-items: center;
    justify-content: center;
    inline-size: var(--aro-fcb-active-toggle-size, 44px) !important;
    block-size: var(--aro-fcb-active-toggle-size, 44px) !important;
    min-inline-size: var(--aro-fcb-active-toggle-size, 44px) !important;
    min-block-size: var(--aro-fcb-active-toggle-size, 44px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid rgb(255 255 255 / 82%) !important;
    border-radius: 999px !important;
    outline: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--aro-fcb-active-toggle-bg, #2563EB) !important;
    background-image: none !important;
    color: var(--aro-fcb-active-toggle-color, #FFFFFF) !important;
    box-shadow: 0 8px 24px rgb(15 23 42 / 20%) !important;
    cursor: pointer;
    pointer-events: auto;
    line-height: 1 !important;
    text-decoration: none !important;
    overflow: visible;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.aro-fcb .aro-fcb__toggle::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 1px solid rgb(255 255 255 / 68%);
    border-radius: inherit;
    opacity: .72;
    pointer-events: none;
}

.aro-fcb .aro-fcb__toggle:hover {
    background-color: var(--aro-fcb-active-toggle-bg, #2563EB) !important;
    color: var(--aro-fcb-active-toggle-color, #FFFFFF) !important;
    filter: brightness(.98);
}

.aro-fcb .aro-fcb__toggle:focus-visible {
    outline: 3px solid #0f84fa !important;
    outline-offset: 3px;
}

.aro-fcb__toggle-icon {
    display: none;
    align-items: center;
    justify-content: center;
    inline-size: 58%;
    block-size: 58%;
    transform: rotate(0deg) scale(1);
    transform-origin: center;
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}

.aro-fcb__toggle-icon svg {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    overflow: visible;
}

.aro-fcb__toggle-icon--mobile svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aro-fcb--js-ready[data-collapse-mode="desktop"],
.aro-fcb--js-ready[data-collapse-mode="mobile"] {
    display: flex;
    flex-direction: column;
    gap: var(--aro-fcb-gap, 10px);
}

.aro-fcb--js-ready[data-collapse-side="right"] {
    align-items: flex-end;
}

.aro-fcb--js-ready[data-collapse-side="left"] {
    align-items: flex-start;
}

/* Ostadno: physical side alignment in RTL.
 * In a column flex container, RTL reverses the cross-axis start/end.
 * These overrides keep the desktop launcher on the physical selected edge.
 */
.aro-fcb--js-ready[dir="rtl"][data-collapse-mode="desktop"][data-collapse-side="right"] {
    align-items: flex-start;
}

.aro-fcb--js-ready[dir="rtl"][data-collapse-mode="desktop"][data-collapse-side="left"] {
    align-items: flex-end;
}

.aro-fcb--js-ready[data-collapse-mode="desktop"] {
    --aro-fcb-active-toggle-size: var(--aro-fcb-toggle-size-desktop, 50px);
    --aro-fcb-active-toggle-bg: var(--aro-fcb-toggle-bg-desktop, #2563EB);
    --aro-fcb-active-toggle-color: var(--aro-fcb-toggle-color-desktop, #FFFFFF);
}

.aro-fcb--js-ready[data-collapse-mode="mobile"] {
    --aro-fcb-active-toggle-size: var(--aro-fcb-toggle-size-mobile, 44px);
    --aro-fcb-active-toggle-bg: var(--aro-fcb-toggle-bg-mobile, #E1306C);
    --aro-fcb-active-toggle-color: var(--aro-fcb-toggle-color-mobile, #FFFFFF);
}

.aro-fcb--js-ready[data-collapse-mode="desktop"] .aro-fcb__toggle,
.aro-fcb--js-ready[data-collapse-mode="mobile"] .aro-fcb__toggle {
    display: inline-flex;
    order: 2;
}

.aro-fcb--js-ready[data-collapse-mode="desktop"] .aro-fcb__toggle-icon--desktop,
.aro-fcb--js-ready[data-collapse-mode="mobile"] .aro-fcb__toggle-icon--mobile {
    display: inline-flex;
}

.aro-fcb--js-ready[data-collapse-mode="desktop"] .aro-fcb__list,
.aro-fcb--js-ready[data-collapse-mode="mobile"] .aro-fcb__list {
    order: 1;
    transition: visibility 0s linear 0s;
}

.aro-fcb--js-ready[data-collapse-mode="desktop"] .aro-fcb__item,
.aro-fcb--js-ready[data-collapse-mode="mobile"] .aro-fcb__item {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
    transition-delay: calc(var(--aro-fcb-item-index, 0) * 35ms);
}

.aro-fcb--js-ready.is-collapsed .aro-fcb__list {
    visibility: hidden;
    pointer-events: none;
    transition-delay: 220ms;
}

.aro-fcb--js-ready.is-collapsed .aro-fcb__item {
    opacity: 0;
    transition-delay: 0ms;
}

.aro-fcb--js-ready.is-collapsed[data-collapse-side="right"] .aro-fcb__item {
    transform: translate3d(12px, 0, 0) scale(.92);
}

.aro-fcb--js-ready.is-collapsed[data-collapse-side="left"] .aro-fcb__item {
    transform: translate3d(-12px, 0, 0) scale(.92);
}

.aro-fcb--js-ready.is-collapsed .aro-fcb__toggle {
    animation: aro-fcb-toggle-pulse 2.4s ease-in-out infinite;
}

.aro-fcb--js-ready:not(.is-collapsed) .aro-fcb__toggle-icon {
    transform: rotate(90deg) scale(.94);
}

@keyframes aro-fcb-toggle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgb(15 23 42 / 20%), 0 0 0 0 rgb(255 255 255 / 34%);
    }
    50% {
        transform: scale(1.055);
        box-shadow: 0 10px 28px rgb(15 23 42 / 24%), 0 0 0 8px rgb(255 255 255 / 0%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aro-fcb .aro-fcb__toggle,
    .aro-fcb__toggle-icon,
    .aro-fcb--js-ready .aro-fcb__item {
        animation: none !important;
        transition: none !important;
    }
}
