.rwps-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
}

.rwps-assistant-toggle {
    background: #1f3d2b;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.rwps-assistant-panel {
    display: none;
    width: 365px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.28);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.rwps-assistant-panel.is-open {
    display: block;
}

.rwps-assistant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f3d2b;
    color: #ffffff;
    padding: 16px;
    position: relative;
}

.rwps-assistant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 48px;
    border: 2px solid rgba(255,255,255,0.75);
}

.rwps-assistant-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9c8a9;
    color: #1f3d2b;
    font-weight: 800;
    font-size: 22px;
}

.rwps-assistant-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.rwps-assistant-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

.rwps-assistant-close {
    margin-left: auto;
    background: transparent;
    color: #ffffff;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rwps-assistant-body {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.rwps-assistant label,
.rwps-assistant legend {
    display: block;
    color: #1f2933;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 7px;
}

.rwps-assistant input[type="text"],
.rwps-assistant input[type="tel"],
.rwps-assistant textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4d7dc;
    border-radius: 10px;
    padding: 11px 12px;
    margin: 0 0 14px;
    font-size: 15px;
    background: #ffffff;
}

.rwps-assistant textarea {
    resize: vertical;
}

.rwps-service-fieldset {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
}

.rwps-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    margin: 8px 0 !important;
    cursor: pointer;
}

.rwps-checkbox input {
    width: 16px;
    height: 16px;
}

.rwps-assistant-submit {
    width: 100%;
    background: #1f3d2b;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.rwps-assistant-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rwps-assistant-status {
    margin-top: 10px;
    font-size: 14px;
}

.rwps-assistant-status.is-error {
    color: #a30000;
}

.rwps-assistant-thank-you {
    color: #1f2933;
    font-size: 16px;
    line-height: 1.45;
}

.rwps-assistant-thank-you strong {
    font-size: 20px;
    color: #1f3d2b;
}

@media (max-width: 480px) {
    .rwps-assistant {
        right: 12px;
        bottom: 12px;
    }

    .rwps-assistant-panel {
        width: calc(100vw - 24px);
    }
}
