.quick-replies-dialog { width: min(800px, calc(100vw - 24px)); max-width: 800px; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #dbe3f2; border-radius: 20px; color: #213452; background: #fff; box-shadow: 0 22px 80px #12285238; overflow: hidden; }
.quick-replies-dialog::backdrop { background: #13244388; backdrop-filter: blur(3px); }
.quick-replies-dialog * { box-sizing: border-box; }
.quick-replies-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
.quick-replies-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; flex-shrink: 0; }
.quick-replies-eyebrow { display: block; color: #718097; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; }
.quick-replies-header h2 { margin: 5px 0; font-size: 24px; line-height: 1.25; color: #233d80; }
.quick-replies-header p { margin: 0; color: #60718b; font-size: 13px; }
.quick-replies-header > button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f1f4fa; color: #65758f; font: inherit; font-size: 28px; cursor: pointer; }
.quick-replies-note { margin: 0 18px 12px; padding: 11px 13px; border-radius: 10px; color: #233d80; background: #edf3ff; font-size: 12px; line-height: 1.5; flex-shrink: 0; }
.quick-replies-toolbar { display: flex; gap: 10px; padding: 0 18px 12px; flex-shrink: 0; }
.quick-replies-search { flex: 1 1 auto; min-width: 0; }
.quick-replies-toolbar input, .quick-replies-editor input, .quick-replies-editor textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd8ec; border-radius: 9px; background: #fff; color: #213452; font: inherit; font-size: 16px; }
.quick-replies-dialog button { min-height: 44px; padding: 9px 13px; border: 1px solid #cdd8ec; border-radius: 9px; background: #fff; color: #233d80; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.quick-replies-dialog [data-replies-save], .quick-replies-dialog [data-replies-apply], .quick-replies-toolbar > button { border-color: #233d80; background: #233d80; color: white; }
.quick-replies-dialog button:disabled { opacity: .5; cursor: default; }
.quick-replies-dialog button:focus-visible, .quick-replies-dialog input:focus-visible, .quick-replies-dialog textarea:focus-visible { outline: 3px solid #8dafff; outline-offset: 2px; }
.quick-replies-status { margin: 0; padding: 0 18px; font-size: 12px; line-height: 1.5; color: #526884; flex-shrink: 0; }
.quick-replies-status:not(:empty) { padding-bottom: 12px; }
.quick-replies-status[data-warning="true"] { color: #9c4b16; }
.quick-replies-content { min-height: 110px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; border-block: 1px solid #e7ecf5; background: #f7f9fd; }
.quick-reply-item { display: flex; align-items: start; gap: 15px; justify-content: space-between; padding: 15px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; margin-bottom: 10px; }
.quick-reply-item:last-child { margin-bottom: 0; }
.quick-reply-item > div:first-child { min-width: 0; }
.quick-reply-item h3 { margin: 0 0 6px; color: #233d80; font-size: 14px; overflow-wrap: anywhere; }
.quick-reply-item p { margin: 0; color: #596b85; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.quick-reply-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.quick-reply-item-actions [data-replies-remove] { color: #a63a33; background: #fff9f8; border-color: #efd7d4; }
.quick-replies-empty { padding: 22px 10px; text-align: center; font-size: 13px; line-height: 1.6; color: #718097; }
.quick-replies-editor { padding: 16px; border: 1px solid #a9bfec; border-radius: 12px; background: #fff; margin-bottom: 14px; }
.quick-replies-editor[hidden] { display: none; }
.quick-replies-editor h3 { margin: 0 0 14px; color: #233d80; font-size: 16px; }
.quick-replies-editor label { display: block; margin-bottom: 13px; font-size: 12px; font-weight: 650; color: #324968; }
.quick-replies-editor input, .quick-replies-editor textarea { display: block; margin-top: 6px; font-weight: 400; }
.quick-replies-editor textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.quick-replies-editor-footer { display: flex; gap: 8px; align-items: center; }
.quick-replies-editor-footer small { margin-right: auto; color: #718097; font-size: 11px; }
.quick-replies-footer { display: flex; align-items: center; justify-content: end; flex-shrink: 0; flex-wrap: wrap; gap: 8px; padding: 14px 18px; background: #fff; }
.quick-replies-footer small { margin-right: auto; font-size: 11px; color: #718097; }
.quick-replies-footer [hidden] { display: none; }
.quick-replies-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .quick-replies-dialog { width: calc(100vw - 16px); border-radius: 16px; } .quick-replies-header { padding: 17px 16px 12px; } .quick-replies-header h2 { font-size: 21px; } .quick-replies-note { margin-inline: 12px; font-size: 11px; } .quick-replies-toolbar { padding-inline: 12px; gap: 7px; } .quick-replies-toolbar > button { font-size: 11px; padding-inline: 9px; } .quick-replies-status { padding-inline: 14px; font-size: 11px; } .quick-replies-content { padding: 12px; } .quick-reply-item { display: block; padding: 12px; } .quick-reply-item-actions { justify-content: end; margin-top: 9px; } .quick-replies-footer { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); gap: 6px; } .quick-replies-footer small { font-size: 10px; } .quick-replies-footer button { padding-inline: 10px; font-size: 11px; } .quick-replies-editor { padding: 12px; } .quick-replies-editor-footer { flex-wrap: wrap; gap: 6px; } .quick-replies-editor-footer small { font-size: 10px; } .quick-replies-editor-footer button { font-size: 11px; padding-inline: 9px; } }
