.alkom-call-button-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.acb-main-button {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 10;
}

.acb-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.acb-main-button:active {
    transform: scale(0.95);
}

.acb-main-button svg {
    width: 50%;
    height: 50%;
    transition: transform 0.3s ease;
}

.acb-main-button.active svg {
    transform: rotate(45deg);
}

.acb-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.acb-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Position variations */
.acb-bottom-right .acb-menu,
.acb-bottom-left .acb-menu {
    bottom: 100%;
    margin-bottom: 15px;
}

.acb-top-right .acb-menu,
.acb-top-left .acb-menu {
    top: 100%;
    margin-top: 15px;
}

.acb-bottom-right .acb-menu,
.acb-top-right .acb-menu {
    right: 0;
}

.acb-bottom-left .acb-menu,
.acb-top-left .acb-menu {
    left: 0;
}

.acb-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    transform: translateY(10px);
    opacity: 0;
}

.acb-menu.active .acb-menu-item {
    transform: translateY(0);
    opacity: 1;
}

.acb-menu.active .acb-menu-item:nth-child(1) { transition-delay: 0.05s; }
.acb-menu.active .acb-menu-item:nth-child(2) { transition-delay: 0.1s; }
.acb-menu.active .acb-menu-item:nth-child(3) { transition-delay: 0.15s; }
.acb-menu.active .acb-menu-item:nth-child(4) { transition-delay: 0.2s; }
.acb-menu.active .acb-menu-item:nth-child(5) { transition-delay: 0.25s; }

.acb-menu-item:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.acb-menu-item svg {
    width: var(--acb-icon-size, 22px);
    height: var(--acb-icon-size, 22px);
    flex-shrink: 0;
}

/* Slušalica (phone) glif zauzima manje svog viewBox-a od ostalih → uvećaj ga malo
   da bude vizuelno ujednačen sa npr. SMS ikonom. (Ostale ikone se ne diraju.) */
.acb-menu-item .acb-cb-icon-phone,
.acb-menu-item .acb-cb-icon-phone-bs {
    transform: scale(1.22);
}

.acb-label {
    line-height: 1;
}

/* Omotač ikone — transparentan po difoltu; stil „odvojeno" ga pretvara u krug u boji. */
.acb-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .acb-main-button {
        width: 60px !important;
        height: 60px !important;
    }
    
    .acb-style-zaobljeno-sve .acb-main-button {
        width: auto !important;
        height: 48px !important;
    }
    
    .acb-menu-item {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Animation for menu items when closing */
.acb-menu:not(.active) .acb-menu-item {
    transition-delay: 0s !important;
}

/* Main button label (hidden by default, shown in oblo-sve) */
.acb-main-label {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
}

/* ===== ZAOBLJENO SVE STYLE ===== */
.acb-style-zaobljeno-sve .acb-main-button.active svg {
    transform: none !important;
}

.acb-style-zaobljeno-sve .acb-main-button {
    border-radius: 50px;
    width: auto !important;
    height: 48px !important;
    padding: 0 20px 0 24px !important;
    gap: 12px;
    justify-content: center;
}

.acb-style-zaobljeno-sve .acb-main-label {
    display: block;
}

.acb-style-zaobljeno-sve .acb-menu-item {
    border-radius: 10px;
    flex-direction: row-reverse;
    justify-content: space-between;
    min-width: 170px;
    padding: 11px 16px 11px 20px;
}

.acb-style-zaobljeno-sve .acb-menu-item:hover {
    transform: translateX(-4px) scale(1.03);
}

.acb-style-zaobljeno-sve .acb-menu-item svg {
    width: 20px;
    height: 20px;
}

/* ===== UVEK OTVORENO (always open) — kontakt dugmad uvek vidljiva ===== */
/* Važi za stil „uvek-otvoreno" i za bilo koji stil kad je glavno dugme sakriveno. */
.acb-style-uvek-otvoreno .acb-menu,
.acb-style-uvek-otvoreno .acb-menu.active,
.alkom-call-button-wrapper.acb-hide-main .acb-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.acb-style-uvek-otvoreno .acb-menu .acb-menu-item,
.alkom-call-button-wrapper.acb-hide-main .acb-menu .acb-menu-item {
    transform: none;
    opacity: 1;
    transition-delay: 0s;
}

/* Sakrij glavni krug (FAB) kad je tako podešeno */
.alkom-call-button-wrapper.acb-hide-main .acb-main-button {
    display: none;
}

/* ===== ODVOJENO — tekst (sivi pravougaonik) levo + ikona (krug u boji) desno ===== */
/* Ikone skroz desno (poravnaj na desnu ivicu kolone) */
.acb-style-odvojeno .acb-menu {
    align-items: flex-end;
}

/* Sam red je providan (bez pilule/senke) — nosi samo razmak između teksta i kruga */
.acb-style-odvojeno .acb-menu-item {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 8px;                 /* mali razmak između pravougaonika i kruga */
    flex-direction: row-reverse;  /* tekst levo, ikona desno */
}

/* Krug sa ikonom — boja iz dugmeta (--acb-bg), veličina iz (--acb-circle-size) */
.acb-style-odvojeno .acb-icon-wrap {
    width: var(--acb-circle-size, 46px);
    height: var(--acb-circle-size, 46px);
    border-radius: 50%;
    background-color: var(--acb-bg, #25D366);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Tamnosivi pravougaonik sa tekstom — blago zaobljen, niži od kruga.
   Jednak razmak svuda (vertikalno = horizontalno). */
.acb-style-odvojeno .acb-label {
    background-color: #404040;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.acb-style-odvojeno .acb-menu-item:hover {
    transform: translateX(-4px) scale(1.03);
}

/* ===== ZAOBLJENO STYLE ===== */
.acb-style-zaobljeno .acb-menu-item {
    border-radius: 10px;
    flex-direction: row-reverse;
    justify-content: space-between;
    min-width: 170px;
    padding: 11px 16px 11px 20px;
}

.acb-style-zaobljeno .acb-menu-item:hover {
    transform: translateX(-4px) scale(1.03);
}

.acb-style-zaobljeno .acb-menu-item svg {
    width: 20px;
    height: 20px;
}
