/* Windows 技！ コメント返信モーダル v1.1.4 */
.wwcrm-modal[hidden] { display: none !important; }
.wwcrm-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 18px; }
.wwcrm-backdrop { position: absolute; inset: 0; background: rgba(6, 17, 33, .72); }
.wwcrm-panel { position: relative; width: min(100%, 670px); max-height: min(90dvh, 900px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #bfcbd9; border-radius: 12px; background: #fff; color: #1b2b3a; box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.wwcrm-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; background: #f2f6fa; border-bottom: 1px solid #d8e1e9; }
.wwcrm-header h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: inherit !important; font-size: 18px !important; line-height: 1.5 !important; }
.wwcrm-close { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.wwcrm-close:hover, .wwcrm-close:focus-visible { background: rgba(80,120,160,.15); }
.wwcrm-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.wwcrm-content #respond { margin: 0 !important; color: inherit; }
.wwcrm-content #respond form { margin: 0; }
.wwcrm-content #respond input:not([type="hidden"]), .wwcrm-content #respond textarea { max-width: 100%; }
.wwcrm-content #respond textarea { width: 100%; }
.wwcrm-modal :focus-visible { outline: 2px solid #3486c8; outline-offset: 2px; }
@media (max-width: 600px) { .wwcrm-modal { padding: 8px; align-items: end; } .wwcrm-panel { max-height: 94dvh; border-radius: 12px 12px 6px 6px; } .wwcrm-content { padding: 15px; } }
body.dark-mode .wwcrm-panel, body.is-dark .wwcrm-panel, html[data-theme="dark"] .wwcrm-panel { background: #232930; border-color: #46515d; color: #f2f4f7; }
body.dark-mode .wwcrm-header, body.is-dark .wwcrm-header, html[data-theme="dark"] .wwcrm-header { background: #2b343e; border-color: #46515d; }

.wwcrm-result[hidden], .wwcrm-mount[hidden] { display:none !important; }
.wwcrm-result { padding: 15px 18px; margin: 0 0 14px; border-radius: 7px; background: #edf4fc; color: #183957; font-size: 15px; line-height: 1.65; }
.wwcrm-result--success { background: #e9f5ef; color: #164b30; border: 1px solid #94c5a9; }
.wwcrm-result--error { background: #fff1ee; color: #8f3023; border: 1px solid #e1a298; }
body.dark-mode .wwcrm-result, body.is-dark .wwcrm-result { background: #2a3948; color: #f3f6f9; }
body.dark-mode .wwcrm-result--success, body.is-dark .wwcrm-result--success { border-color: #5a9d78; }
body.dark-mode .wwcrm-result--error, body.is-dark .wwcrm-result--error { border-color: #c57e75; }

/* Feedback sits directly above the submit row while the form is visible. */
.wwcrm-content #commentform > .wwcrm-result { margin: 12px 0; }
