.mfk-feedback {
    position: fixed;
    right: 18px;
    bottom: 260px;
    width: min(260px, 92vw);
    z-index: 1850;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mfk-feedback.collapsed .mfk-feedback-card {
    display: none;
}

.mfk-feedback-toggle {
    position: fixed;
    right: 18px;
    bottom: 78px;
    z-index: 1851;
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f59e0b;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.mfk-feedback-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.mfk-feedback-title {
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.9rem;
}

.mfk-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfk-feedback-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: #475569;
}

.mfk-feedback-form input,
.mfk-feedback-form select,
.mfk-feedback-form textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 6px 8px;
    font-size: 0.8rem;
    font-family: inherit;
}

.mfk-feedback-form textarea {
    resize: vertical;
}

.mfk-feedback-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: #4f46e5;
    color: white;
}

.mfk-feedback-status {
    font-size: 0.75rem;
    color: #0f172a;
    min-height: 1rem;
}

.mfk-feedback-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .mfk-feedback {
        position: static;
        width: 100%;
        margin-top: 18px;
    }

.mfk-feedback-toggle {
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

.mfk-feedback-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .mfk-feedback-card,
    .mfk-feedback-section {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(148, 163, 184, 0.3);
        color: #e2e8f0;
    }

    .mfk-feedback-title {
        color: #c7d2fe;
    }

    .mfk-feedback-label {
        color: #cbd5f5;
    }

    .mfk-feedback-form input,
    .mfk-feedback-form select,
    .mfk-feedback-form textarea {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(148, 163, 184, 0.4);
        color: #e2e8f0;
    }

    .mfk-feedback-status {
        color: #e2e8f0;
    }
}
