.feedback-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

.feedback-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.48);
}

.feedback-backdrop.is-open {
    display: flex;
}

.feedback-modal {
    width: min(380px, 100%);
    max-height: min(560px, calc(100dvh - 32px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feedback-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.feedback-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.feedback-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    cursor: pointer;
}

.feedback-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.feedback-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feedback-body {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
}

.feedback-field {
    display: grid;
    gap: 6px;
}

.feedback-label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    color: #111827;
    font-size: 14px;
    outline: none;
}

.feedback-textarea {
    min-height: 68px;
    max-height: 120px;
    resize: vertical;
}

.feedback-input:focus,
.feedback-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.feedback-input--invalid {
    border-color: #dc2626;
}

.feedback-field-message {
    min-height: 16px;
    color: #dc2626;
    font-size: 12px;
}

.feedback-stars {
    display: flex;
    gap: 4px;
}

.feedback-star {
    border: 0;
    background: transparent;
    color: #d1d5db;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.feedback-star.is-active {
    color: #f59e0b;
}

.feedback-message {
    min-height: 17px;
    color: #2563eb;
    font-size: 13px;
}

.feedback-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.feedback-submit,
.feedback-cancel {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.feedback-submit {
    background: #2563eb;
    color: #ffffff;
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-cancel {
    background: #f3f4f6;
    color: #374151;
}

@media (max-width: 640px) {
    .feedback-button {
        right: 12px;
        bottom: 12px;
    }

    .feedback-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .feedback-modal {
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 16px 16px 10px 10px;
    }
}
