.osw-support-widget {
    --osw-bg: rgba(255, 255, 255, 0.74);
    --osw-border: rgba(255, 255, 255, 0.55);
    --osw-text: #10231f;
    --osw-muted: rgba(16, 35, 31, 0.68);
    --osw-primary: #13c99b;
    --osw-primary-dark: #079776;
    --osw-shadow: 0 24px 80px rgba(5, 60, 48, 0.22);
    font-family: inherit;
}

.osw-floating-button {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(19,201,155,0.96), rgba(7,151,118,0.96));
    box-shadow: 0 18px 46px rgba(4, 126, 95, 0.32);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.osw-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(4, 126, 95, 0.4);
}

.osw-button-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    font-weight: 700;
}

.osw-button-text {
    font-weight: 700;
    letter-spacing: .01em;
}

.osw-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(6, 28, 24, 0.18);
    backdrop-filter: blur(4px);
}

.osw-panel {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: calc(max(22px, env(safe-area-inset-bottom)) + 74px);
    z-index: 99992;
    width: min(420px, calc(100vw - 28px));
    padding: 20px;
    border: 1px solid var(--osw-border);
    border-radius: 28px;
    color: var(--osw-text);
    background:
        radial-gradient(circle at top left, rgba(87, 255, 198, .22), transparent 42%),
        var(--osw-bg);
    box-shadow: var(--osw-shadow);
    backdrop-filter: blur(22px) saturate(1.3);
}

.osw-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.osw-recipient-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.osw-avatar-container {
    flex-shrink: 0;
}

.osw-recipient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.osw-recipient-name {
    font-size: 0.85rem;
    color: var(--osw-muted);
    margin-top: 8px;
}

.osw-recipient-name strong {
    color: var(--osw-primary-dark);
    font-weight: 600;
}

.osw-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

.osw-panel p {
    margin: 0;
    color: var(--osw-muted);
    font-size: 14px;
    line-height: 1.45;
}

.osw-close-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(16,35,31,.1);
    border-radius: 999px;
    color: var(--osw-text);
    background: rgba(255,255,255,.48);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.osw-form {
    display: grid;
    gap: 13px;
}

.osw-form label {
    display: grid;
    gap: 7px;
    color: var(--osw-text);
    font-size: 14px;
    font-weight: 650;
}

.osw-form input,
.osw-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(16,35,31,.12);
    border-radius: 16px;
    padding: 12px 13px;
    color: var(--osw-text);
    background: rgba(255,255,255,.72);
    outline: none;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.osw-form input:focus,
.osw-form textarea:focus {
    border-color: rgba(19,201,155,.7);
    box-shadow: 0 0 0 4px rgba(19,201,155,.14);
    background: rgba(255,255,255,.92);
}

.osw-form textarea {
    resize: vertical;
    min-height: 118px;
}

.osw-company-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.osw-form-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.osw-submit-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--osw-primary), var(--osw-primary-dark));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(4, 126, 95, 0.25);
}

.osw-submit-button:disabled {
    cursor: wait;
    opacity: .68;
}

.osw-status {
    min-height: 20px;
    font-size: 13px !important;
}

.osw-status.osw-success {
    color: #06755d;
}

.osw-status.osw-error {
    color: #b3261e;
}

.osw-editor-preview {
    padding: 12px;
}

.osw-editor-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 520px;
    padding: 18px;
    border: 1px solid rgba(19,201,155,.24);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(19,201,155,.12), rgba(255,255,255,.8));
}

.osw-editor-badge {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #13c99b, #079776);
    font-weight: 800;
}

.osw-editor-card p {
    margin: 6px 0 0;
    color: rgba(16,35,31,.7);
}

/* Мобильные стили */
@media (max-width: 560px) {
    .osw-floating-button {
        right: 14px;
        bottom: 14px;
    }

    .osw-panel {
        right: 14px;
        bottom: 82px;
        padding: 16px;
        border-radius: 24px;
    }

    .osw-button-text {
        display: none;
    }

    .osw-floating-button {
        padding: 12px;
        min-width: 54px;
        justify-content: center;
    }

    .osw-recipient-info {
        gap: 8px;
    }
    
    .osw-recipient-avatar {
        width: 40px;
        height: 40px;
    }
    
    .osw-recipient-name {
        font-size: 0.75rem;
    }
}