#ivanchat-container {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
}

#ivanchat-container.ivanchat-right {
    right: 20px;
}

#ivanchat-container.ivanchat-left {
    left: 20px;
}

#ivanchat-fab {
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
}

#ivanchat-fab:hover {
    transform: scale(1.05);
}

#ivanchat-window {
    position: absolute;
    bottom: 80px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

#ivanchat-container.ivanchat-right #ivanchat-window {
    right: 0;
}

#ivanchat-container.ivanchat-left #ivanchat-window {
    left: 0;
}

#ivanchat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.ivanchat-header {
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ivanchat-header-title {
    font-weight: bold;
    font-size: 16px;
    font-family: sans-serif;
}

#ivanchat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.ivanchat-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="%23fff" fill-opacity="0.4"/%3E%3C/svg%3E');
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ivanchat-bubble {
    background: white;
    padding: 12px 18px;
    border-radius: 0 16px 16px 16px;
    display: inline-block;
    max-width: 90%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    font-size: 14px;
    line-height: 1.5;
    font-family: sans-serif;
    position: relative;
}

.ivanchat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 10px 0;
    border-color: transparent white transparent transparent;
}

.ivanchat-footer {
    padding: 15px 20px;
    text-align: center;
    background-color: transparent;
}

#ivanchat-cta {
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#ivanchat-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
