#fcw-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--fcw-button-bg, #333);
    color: var(--fcw-button-text, #fff);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 280px;
}

#fcw-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#fcw-floating-button img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

#fcw-floating-button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcw-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fcwFadeIn 0.3s ease;
}

.fcw-modal.active {
    display: block;
}

@keyframes fcwFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fcw-modal-content {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fcwSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes fcwSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .fcw-modal-content {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
    }
    
    #fcw-floating-button {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }
}

.fcw-modal-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.fcw-close {
    color: #6c757d;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.fcw-close:hover,
.fcw-close:focus {
    color: #000;
}

.fcw-modal-body {
    padding: 25px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.fcw-modal-body h3 {
    margin: 0 0 20px 0;
    font-size: 16px !important;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
}

.fcw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.fcw-form-group {
    margin-bottom: 20px;
}

.fcw-form-group.fcw-half {
    flex: 1;
    margin-bottom: 0;
}

.fcw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fcw-form-group input[type="text"],
.fcw-form-group input[type="email"],
.fcw-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.fcw-form-group input[type="text"]:focus,
.fcw-form-group input[type="email"]:focus,
.fcw-form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.fcw-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.fcw-form-actions {
    margin-top: 20px;
}

.fcw-submit-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    position: relative;
}

.fcw-submit-btn:hover {
    background-color: #000;
}

.fcw-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.fcw-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.fcw-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fcw-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fcw-loading {
    padding-right: 44px;
}

.fcw-loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: fcwSpin 0.6s linear infinite;
}

@keyframes fcwSpin {
    to {
        transform: rotate(360deg);
    }
}
