/*
 * Floating contact widget – desktop strip + mobile FAB
 */

.fcw {
    position: fixed;
    z-index: 9999;
    font-family: sans-serif;
}

/* Desktop: vertical strip on the right */
.fcw-desktop {
    position: fixed;
    display: flex;
    flex-direction: column;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    z-index: 10000005;
}

.fcw-desktop .fcw-item {
    display: grid;
    grid-template-columns: 42px max-content;
    align-items: center;
    text-decoration: none;
    background: #ba001f;
    border: none;
    border-radius: 0;
    overflow: hidden;
    height: 42px;
    max-width: 42px;
    transition: max-width 0.3s ease-out;
}

.fcw-desktop .fcw-item:hover {
    justify-content: flex-start;
    max-width: 200px;
}

.fcw-desktop .fcw-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcw-desktop .fcw-icon svg {
    width: 50%;
    height: auto;
    fill: #f9f9f9;
}

.fcw-desktop .fcw-icon.fcw-icon--3 svg {
    width: 80%;
}

.fcw-desktop .fcw-text {
    white-space: nowrap;
    font-size: 16px;
    opacity: 0;
    color: #000000;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0.5em;
    padding-right: 0.75em;
    background-color: #f9f9f9;
    transition: opacity 0.2s ease-out;
}

.fcw-desktop .fcw-item:hover .fcw-text {
    opacity: 1;
}

/* Mobile: hide desktop strip, show FAB */
.fcw-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #ba001f;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

.fcw-fab:hover {
    background: #900018;
}

.fcw-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcw-fab-plus {
    width: 38px;
    height: 38px;
    fill: #ffffff;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.fcw-fab[aria-expanded="true"] .fcw-fab-plus {
    transform: rotate(45deg);
}

.fcw-mobile-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 100px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fcw-mobile-panel.is-open {
    transform: translateY(0);
}

.fcw-mobile-panel .fcw-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    background: #f5f5f5;
    border: none;
    border-radius: 0;
}

.fcw-mobile-panel .fcw-icon {
    width: 42px;
    height: 42px;
    font-size: 24px;
    margin-left: 12px;
    margin-right: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ba001f;
}

.fcw-mobile-panel .fcw-text {
    font-size: 20px;
    text-align: right;
}

.fcw-mobile-panel .fcw-item {
    margin-left: auto; /* gura ceo blok desno, uz postojeći padding panela */
}

.fcw-mobile-panel .fcw-icon svg {
    width: 60%;
    height: auto;
    fill: #ffffff; /* bele ikonice u crvenom krugu */
}

.fcw-mobile-panel .fcw-icon.fcw-icon--3 svg {
    width: 80%;
}

@media (max-width: 768px) {
    .fcw-desktop {
        display: none;
    }

    .fcw-fab {
        display: flex;
    }

    .fcw-mobile-panel {
        display: flex;
    }
}

/* Simple modal styles for the Share Us modal */
.fcw-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10002;
}

.fcw-modal.is-open {
    display: flex;
}

.fcw-modal__overlay {
    position: absolute;
    inset: 0;
}

.fcw-modal .modal__container {
    position: relative;
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    min-width: 200px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
    width: auto;
    margin: 0 auto;
}

.fcw-modal .modal__title {
    color: #ba001f;
    margin: 0 0 20px;
    text-align: center;
}

.fcw-modal .modal__header {
    position: relative;
    margin-bottom: 10px;
}

.fcw-modal .modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Social share icons inside the modal */
.fcw-modal .share-container .social-icon {
    width: 42.66666667px;
    height: 42.66666667px;
    font-size: 2em;
    z-index: 10000007;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fcw-modal .share-container .social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fcw-modal .share-container .social-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    display: block;
}
