/* Site asistan popup */
.ymx-asistan-root {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    pointer-events: none;
}

.ymx-asistan-root.is-visible {
    pointer-events: auto;
}

.ymx-asistan-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 23, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ymx-asistan-root.is-visible .ymx-asistan-backdrop {
    opacity: 1;
}

.ymx-asistan-panel {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    padding: 22px 22px 24px;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    border: 1px solid rgba(239, 76, 35, 0.12);
}

.ymx-asistan-root.is-visible .ymx-asistan-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ymx-asistan-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ymx-asistan-close:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.ymx-asistan-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-right: 28px;
}

.ymx-asistan-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #EF4C23 0%, #ff7a45 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(239, 76, 35, 0.28);
}

.ymx-asistan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #EF4C23;
    margin-bottom: 4px;
}

.ymx-asistan-head h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.ymx-asistan-head p {
    margin: 0;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
}

.ymx-asistan-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ymx-asistan-field {
    margin-bottom: 12px;
}

.ymx-asistan-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ymx-asistan-field input,
.ymx-asistan-field select,
.ymx-asistan-field textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ymx-asistan-field textarea {
    resize: vertical;
    min-height: 84px;
}

.ymx-asistan-field input:focus,
.ymx-asistan-field select:focus,
.ymx-asistan-field textarea:focus {
    outline: none;
    border-color: #EF4C23;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239, 76, 35, 0.12);
}

.ymx-asistan-submit {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #EF4C23 0%, #d63d18 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(239, 76, 35, 0.28);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ymx-asistan-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(239, 76, 35, 0.34);
}

.ymx-asistan-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.ymx-asistan-result {
    margin-top: 12px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.ymx-asistan-result--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ymx-asistan-result--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 575px) {
    .ymx-asistan-root {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .ymx-asistan-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .ymx-asistan-row {
        grid-template-columns: 1fr;
    }
}
