.quill-editor-wrapper .ql-toolbar.ql-snow {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-color: #e5e7eb;
    background-color: #f9fafb;
}

.quill-editor-wrapper .ql-container.ql-snow {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-color: #e5e7eb;
    font-family: inherit;
    overflow-y: auto;
    position: relative;
}

.quill-editor-wrapper.rfq-connected-compose-editor .ql-toolbar.ql-snow {
    align-items: center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    flex-wrap: wrap;
}

.quill-editor-wrapper.rfq-connected-compose-editor .rfq-quill-toolbar-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.25rem;
    margin-left: auto;
    min-height: 2rem;
    white-space: nowrap;
}

.quill-editor-wrapper.rfq-connected-compose-editor .rfq-quill-toolbar-actions button {
    align-items: center;
    display: inline-flex;
    height: auto;
    padding: 0.25rem 0.5rem;
    width: auto;
}

@media (max-width: 900px) {
    .quill-editor-wrapper.rfq-connected-compose-editor .rfq-quill-toolbar-actions {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.quill-editor-wrapper .ql-editor {
    font-size: 0.875rem;
    line-height: 1.5;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.quill-editor-wrapper .ql-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.quill-editor-wrapper .ql-editor td, .quill-editor-wrapper .ql-editor th {
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    min-width: 2rem;
}

.quill-editor-wrapper .ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

#editor-resizer {
    background-color: rgba(17, 24, 39, 0.08) !important;
    border: 1px solid rgba(17, 24, 39, 0.25) !important;
    z-index: 40;
}

#editor-resizer .handler {
    background-color: #ffffff !important;
    border: 1px solid #4b5563 !important;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
}

#editor-resizer .toolbar {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16) !important;
    color: #374151 !important;
    display: grid;
    gap: 0.25rem;
    padding: 0.25rem !important;
}

#editor-resizer .toolbar .group {
    border: 0 !important;
    border-radius: 0 !important;
    display: flex;
    gap: 0.25rem;
    line-height: 1.25 !important;
}

#editor-resizer .toolbar .group:not(:first-child) {
    margin-top: 0 !important;
}

#editor-resizer .toolbar .group .btn,
#editor-resizer .toolbar .group .input-wrapper {
    background-color: #f9fafb;
    border: 1px solid #d1d5db !important;
    border-radius: 0.25rem;
    min-height: 1.75rem;
}

#editor-resizer .toolbar .group .btn {
    color: #374151 !important;
    cursor: pointer;
    padding: 0.25rem 0.5rem !important;
    text-decoration: none;
}

#editor-resizer .toolbar .group .btn:hover {
    background-color: #eef2ff;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

#editor-resizer .toolbar .group .input-wrapper {
    min-width: 3.5rem !important;
    overflow: hidden;
}

#editor-resizer .toolbar .group .input-wrapper::after {
    display: none;
}

#editor-resizer .toolbar .group .input-wrapper input {
    background: transparent;
    height: 100%;
    padding: 0.25rem 1.25rem 0.25rem 0.5rem !important;
}

#editor-resizer .toolbar .group .input-wrapper .suffix {
    right: 0.4rem !important;
    top: 0.25rem;
}

.quill-editor-wrapper .ql-editor blockquote,
.quill-editor-wrapper .ql-editor .rfq-followup-quote {
    border-left: 4px solid #d1d5db;
    padding-left: 16px;
    color: #374151;
    margin: 0;
}

.quill-editor-wrapper .ql-editor blockquote {
    border-left-color: #d1d5db;
    padding-top: 0;
    padding-bottom: 0;
}

.quill-editor-wrapper .ql-editor blockquote > * {
    margin-top: 0;
    margin-bottom: 0;
}

.quill-editor-wrapper .ql-editor blockquote + blockquote {
    margin-top: 0;
}

.quill-editor-wrapper .ql-editor blockquote + ul,
.quill-editor-wrapper .ql-editor blockquote + ol {
    border-left: 4px solid #d1d5db;
    color: #374151;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 2.5rem;
}

.quill-editor-wrapper .ql-editor blockquote + ul + blockquote,
.quill-editor-wrapper .ql-editor blockquote + ol + blockquote {
    margin-top: 0;
}

.quill-editor-wrapper .ql-editor .rfq-followup-quote > * {
    margin-top: 0;
    margin-bottom: 0;
}

.quill-editor-wrapper .ql-editor blockquote ul,
.quill-editor-wrapper .ql-editor blockquote ol,
.quill-editor-wrapper .ql-editor .rfq-followup-quote ul,
.quill-editor-wrapper .ql-editor .rfq-followup-quote ol {
    margin-top: 0;
    margin-bottom: 0;
}

.quill-editor-wrapper .ql-editor .rfq-followup-quote li {
    margin-top: 0;
    margin-bottom: 0;
}
