/* Custom appearance belongs to the official reply card only. */
.admin-reply-box.has-custom-reply{position:relative;isolation:isolate;overflow:hidden;background:var(--reply-bg)!important;border-color:var(--reply-border)!important}
.admin-reply-box.has-custom-reply>.review-chat-media,.admin-reply-box.has-custom-reply>.review-chat-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;width:100%;height:100%;object-fit:cover}
.admin-reply-box.has-custom-reply>.review-chat-media img{width:100%;height:100%;object-fit:cover}
.admin-reply-box.has-custom-reply>.review-chat-shade{background:var(--reply-bg);opacity:var(--chat-overlay)}
.admin-reply-box.has-custom-reply :is(.admin-reply-label,.admin-reply-text,.admin-reply-kicker,.admin-reply-time){color:var(--reply-text)!important}
.admin-reply-label.has-custom-reply-badge::after{display:none!important}
.admin-reply-label .reply-custom-badge{width:var(--reply-badge-size,20px);height:var(--reply-badge-size,20px);object-fit:contain;vertical-align:middle;margin-left:5px}
.reply-theme-editor{margin:12px 0;padding:12px;border:1px solid #bde3ee;border-radius:10px;background:#f7fcff;color:#173d56}
.reply-theme-editor summary{cursor:pointer;font-weight:800}
.reply-theme-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.reply-theme-fields label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:650}
.reply-theme-fields :is(input,select){width:100%;min-width:0;box-sizing:border-box;font:inherit;padding:8px;border:1px solid #badce8;border-radius:8px;color:#173d56;background:white}
.reply-theme-fields input[type=checkbox]{width:18px;height:18px}
.reply-theme-fields input[type=color]{height:38px;padding:3px}
.reply-theme-fields .reply-theme-wide{grid-column:1/-1}
.reply-theme-editor .reply-theme-help{font-size:12px;line-height:1.5;margin:10px 0;color:#527185}
.reply-theme-preview .admin-reply-box{display:block;margin:12px 0}
.reply-theme-editor .reply-theme-save{padding:9px 14px;background:#069bc3;color:white;border:0;border-radius:8px;font-weight:750;cursor:pointer}
.reply-theme-editor button:disabled{opacity:.55;cursor:wait}
:root[data-theme=dark] .reply-theme-editor{background:#172738;color:#dceeff}
@media(max-width:520px){.reply-theme-fields{grid-template-columns:minmax(0,1fr)}}

.admin-reply-box.has-custom-reply>.review-chat-media .review-animated-emoji{display:block;width:100%;height:100%;margin:0}
.admin-reply-box.has-custom-reply .admin-reply-footer{background:transparent!important;border-top-color:var(--reply-border)!important}

/* Media stays above the card fill and below its content. */
.admin-reply-box.has-custom-reply>.review-chat-media{z-index:0}
.admin-reply-box.has-custom-reply>.review-chat-shade{z-index:1}
.admin-reply-box.has-custom-reply>:is(.admin-reply-header,.admin-reply-text,.admin-reply-footer){position:relative;z-index:2}

/* All official reply logos fill their frame without a white mat. */
.admin-reply-box .admin-reply-avatar{display:block;padding:0!important;border:0!important;background:transparent!important;object-fit:cover!important;box-sizing:border-box}
.admin-reply-box.has-custom-reply>.review-chat-media{display:block;margin:0!important;padding:0!important;border:0!important;max-width:none;max-height:none;object-fit:cover!important}

.reply-direct-wrap{position:relative;z-index:2;padding:0 14px 12px}
.reply-direct-button{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:8px 12px;border:1px solid #9edcea;border-radius:8px;background:#eafaff;color:#096c8a;font-family:inherit;font-size:12px;font-weight:700;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.reply-direct-button:hover{background:#d4f4fc}
.reply-direct-editor{min-width:0;margin:14px 0;padding:12px;border:1px solid #c3dfec;border-radius:12px}
.reply-direct-editor legend{font-size:13px;font-weight:800;padding:0 5px}
.reply-direct-editor label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;font-size:12px;font-weight:650}
.reply-direct-editor :is(p,small){font-size:12px;line-height:1.5}
.reply-direct-editor input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}
.reply-direct-editor input:not([type=checkbox]){width:100%;box-sizing:border-box;min-width:0;padding:9px;border:1px solid #badce8;border-radius:8px;background:white;color:#173d56;font:inherit}

.toast .toast-message{flex:1;min-width:0}.toast .toast-count{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 5px;border-radius:7px;background:rgba(0,0,0,.06);font-size:11px;font-weight:800;line-height:1.4}

.admin-feedback-fields{min-width:0;margin:12px 0;padding:12px;border:1px solid #badce8;border-radius:10px;color:#173d56;background:#f7fcff}
.admin-feedback-fields legend{font-size:13px;font-weight:800;padding:0 5px}
.admin-feedback-fields label{display:grid;gap:8px;font-size:13px}.admin-feedback-fields input[type=file]{max-width:100%}
.admin-feedback-fields .admin-feedback-preview{display:block;max-width:100%;width:auto;max-height:180px;object-fit:contain;border-radius:9px;margin:10px 0}
.admin-feedback-fields [hidden]{display:none!important}
.admin-feedback-fields button,.admin-feedback-dialog header button{font:inherit;padding:8px 12px;border:1px solid #afdce9;border-radius:8px;background:#eaf9ff;color:#0a7191;cursor:pointer}
.admin-feedback-status{font-size:12px;line-height:1.5}.admin-feedback-fields:disabled{opacity:.65}
.admin-feedback-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:88dvh;overflow:auto;border:1px solid #a9d7e7;border-radius:15px;padding:16px;background:#f9fdff;color:#173d56;font:14px/1.5 system-ui,sans-serif}
.admin-feedback-dialog::backdrop{background:#0320399c}
.admin-feedback-dialog header{position:sticky;top:-16px;z-index:3;display:flex;gap:8px;align-items:center;padding:12px 0;background:#f9fdff;border-bottom:1px solid #c3dfec}
.admin-feedback-dialog header strong{flex:1}.admin-feedback-dialog textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #badce8;border-radius:8px;font:inherit;color:#173d56;background:white}
.admin-feedback-role,.admin-feedback-text{display:grid;gap:6px;margin:14px 0;font-weight:700}
.admin-feedback-role input{box-sizing:border-box;min-width:0;width:100%;padding:10px;border:1px solid #badce8;border-radius:8px;font:inherit;color:#173d56;background:white}
.admin-feedback-role small{font-size:12px;font-weight:400;color:#426078}
