/* Shorts comments: the outer modal and its same-origin comments iframe. */
.voicer-media-comments-modal .modal-dialog {
    width: min(580px, calc(100vw - 28px));
    max-width: none;
    height: min(780px, calc(100dvh - 32px));
    margin: auto;
}
.voicer-media-comments-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dce7f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(11, 34, 69, .22);
}
.voicer-media-comments-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 76px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2ebf6;
    background: #fff;
}
.voicer-media-comments-modal__heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.voicer-media-comments-modal__icon {
    display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
    border-radius: 12px; background: #e9f2ff; color: #2065c8; font-size: 17px;
}
.voicer-media-comments-modal__heading h2 {
    margin: 0; color: #173657; font-size: 18px; font-weight: 780; line-height: 1.15;
}
.voicer-media-comments-modal__heading p { margin: 3px 0 0; color: #7186a1; font-size: 12px; line-height: 1.2; }
.voicer-media-comments-modal__close {
    display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
    padding: 0; border: 0; border-radius: 10px; background: #f1f5fa;
    color: #5a718d; cursor: pointer;
}
.voicer-media-comments-modal__close:hover,
.voicer-media-comments-modal__close:focus-visible { background: #e5effc; color: #2065c8; }
.voicer-media-comments-modal .modal-body { flex: 1 1 auto; min-height: 0; height: auto !important; padding: 0 !important; }
.voicer-media-comments-modal iframe { display: block; width: 100%; height: 100%; border: 0; }

body.voicer-media-comments-window { min-height: 100dvh; overflow: hidden; background: #f5f8fd !important; }
body.voicer-media-comments-window #page { height: 100dvh; overflow: hidden; }
body.voicer-media-comments-window .voicer-media-comments-page {
    height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    margin: 0 !important; padding: 0 !important; overflow-y: auto;
    overscroll-behavior: contain; background: #f5f8fd !important;
}
.voicer-media-comments-page main { min-height: 100%; padding: 0 !important; }
.voicer-media-comments-list { display: grid; gap: 12px; padding: 16px 14px 24px; }
.voicer-media-comments-list > :is(#newcommentcontainer, #morecommentscontainer) { display: contents; }
.voicer-media-comment.content {
    width: 100%; margin: 0 !important; padding: 15px !important;
    border: 1px solid #dce7f5; border-radius: 16px;
    background: #fff; box-shadow: 0 5px 18px rgba(21, 55, 98, .045);
}
.voicer-media-comment.ps-5 { width: calc(100% - 18px); margin-left: 18px !important; }
.voicer-media-comment > .d-flex:first-child { align-items: center; gap: 9px; min-width: 0; }
.voicer-media-comment > .d-flex:first-child > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.voicer-media-comment > .d-flex:first-child > div:nth-child(3) { display: none; }
.voicer-media-comment > .d-flex:first-child > div:last-child { flex: 0 0 auto; margin: 0 !important; }
.voicer-media-comment .post-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: none !important; }
.voicer-media-comment > .d-flex:first-child label { margin: 0 !important; color: #173657 !important; font-size: 13px !important; font-weight: 750; cursor: pointer; }
.voicer-media-comment > .d-flex:first-child p { margin: 2px 0 0 !important; color: #788ba3; font-size: 10px !important; line-height: 1.3; }
.voicer-media-comment > .d-flex:first-child p a { margin: 0 5px 0 0 !important; color: #2065c8 !important; font-size: 11px !important; font-weight: 650; }
.voicer-media-comment__more {
    display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 10px; background: #f1f6fd;
    color: #516e90; font-size: 16px; cursor: pointer;
}
.voicer-media-comment__more i { display: none; }
.voicer-media-comment__more::before {
    content: ""; display: block; flex: 0 0 21px; width: 21px; height: 7px;
    background: radial-gradient(circle, currentColor 1.6px, transparent 1.8px) 0 0 / 7px 7px repeat-x;
}
.voicer-media-comment__more:hover,
.voicer-media-comment__more:focus-visible { background: #e3efff; color: #1e63c8; }
.voicer-media-comment__more:focus-visible,
.voicer-media-comments-modal__close:focus-visible { outline: 2px solid #75adfa; outline-offset: 2px; }
.voicer-media-comment__menu {
    min-width: 150px; padding: 5px; border: 1px solid #dce7f5;
    border-radius: 10px; background: #fff; color: #234363;
    box-shadow: 0 12px 26px rgba(12, 37, 75, .2); z-index: 19000;
}
.voicer-media-comment__menu .dropdown-item {
    display: flex; align-items: center; gap: 8px; min-height: 38px;
    padding: 8px 10px; border-radius: 7px; color: inherit; font-size: 12px !important;
}
.voicer-media-comment__menu .dropdown-item:hover { background: #eaf3ff; color: #1e63c8; }
.voicer-media-comment > .voicelink {
    margin: 12px 0 13px 47px !important; color: #304a68 !important;
    font-size: 13px !important; line-height: 1.5; overflow-wrap: anywhere;
}
.voicer-media-comment > .d-flex.font-13 {
    justify-content: flex-start; gap: 8px; margin-top: 12px; padding-top: 10px;
    border-top: 1px solid #edf2f8;
}
.voicer-media-comment > .d-flex.font-13 > div { margin: 0 !important; }
.voicer-media-comment > .d-flex.font-13 :is(a, button) {
    display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
    padding: 3px 8px; border: 0; border-radius: 7px;
    background: #f4f8fd; color: #496581 !important;
    font-size: 11px; text-decoration: none; white-space: nowrap;
}
.voicer-media-comment > .d-flex.font-13 :is(a, button):hover { background: #e9f2ff; color: #1e63c8 !important; }
.voicer-media-comment > .d-flex.font-13 .badge { background: #dceaff !important; color: #1d61c4; }
.voicer-media-comment > .d-flex.font-13 :is(.p-2, .px-1, .pe-2) { padding: 0 !important; }
.voicer-media-comment > hr { display: none; }
.voicer-media-comments-more { margin: 0; }
.voicer-media-comments-more #backtotop { display: none !important; }
.voicer-media-comments-more #loadmore { width: auto; margin: 6px auto !important; padding: 9px 18px; }
.voicer-media-comments-empty {
    display: grid; justify-items: center; gap: 7px; padding: 38px 18px;
    border: 1px dashed #cadaeb; border-radius: 16px; background: #fff;
    color: #476381; text-align: center;
}
.voicer-media-comments-empty i { color: #2065c8; font-size: 21px; }
.voicer-media-comments-empty strong { color: #173657; font-size: 14px; }
.voicer-media-comments-empty span { font-size: 12px; }
body.voicer-media-comments-window #footer-bar.voicer-media-comments-composer {
    position: fixed !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    display: flex; align-items: center; gap: 10px; width: 100% !important;
    height: auto !important; min-height: 66px; margin: 0 !important;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dce7f5; border-radius: 0 !important;
    background: #fff !important; box-shadow: 0 -5px 18px rgba(17, 48, 87, .06);
}
.voicer-media-comments-composer .speach-input { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
.voicer-media-comments-composer .speach-input .container { width: 100%; padding: 0; }
.voicer-media-comments-composer #errormessageInput { display: block; margin: 0 0 3px; font-size: 11px; }
.voicer-media-comments-composer #errormessageInput:empty { display: none; }
.voicer-media-comments-composer #messageInput {
    display: block; width: 100%; height: 42px; margin: 0; padding: 0 13px;
    border: 1px solid #d8e4f1; border-radius: 12px;
    background: #f6f9fd; color: #183858; font-size: 13px;
}
.voicer-media-comments-composer #messageInput:focus { border-color: #75adfa; outline: 2px solid #cfe4ff; }
.voicer-media-comments-composer .speach-icon { flex: 0 0 42px; margin: 0 !important; }
.voicer-media-comments-composer #postcomment {
    display: flex !important; align-items: center; justify-content: center; width: 42px; height: 42px;
    min-width: 42px; min-height: 42px; margin: 0 !important; padding: 0 !important;
    transform: none !important; border: 0; border-radius: 12px;
    background: #1e63c8; color: #fff !important; font-size: 14px;
    line-height: 1; text-decoration: none; cursor: pointer;
}
.voicer-media-comments-composer #postcomment svg { display: block; flex: none; width: 20px; height: 20px; }
@media (max-width: 767.98px) {
    .voicer-media-comments-modal .modal-dialog { width: 100%; max-width: none; height: 100dvh; margin: 0; }
    .voicer-media-comments-modal .modal-content { border: 0; border-radius: 0; }
    .voicer-media-comments-modal .modal-header { min-height: 68px; padding: 11px 14px; }
    .voicer-media-comments-list { padding: 12px 10px 22px; }
    .voicer-media-comment.content { padding: 12px !important; }
    .voicer-media-comment.ps-5 { width: calc(100% - 12px); margin-left: 12px !important; }
}
body.theme-dark .voicer-media-comments-modal .modal-content,
body.theme-dark .voicer-media-comments-modal .modal-header { background: #1c2c42; border-color: #354c69; }
body.theme-dark .voicer-media-comments-modal__heading h2 { color: #eef5ff; }
body.theme-dark .voicer-media-comments-modal__heading p { color: #afc4df; }
body.theme-dark .voicer-media-comments-modal__icon { background: #2d4a70; color: #cce2ff; }
body.theme-dark .voicer-media-comments-modal__close { background: #2a405d; color: #d1e1f5; }
body.theme-dark.voicer-media-comments-window,
body.theme-dark.voicer-media-comments-window .voicer-media-comments-page { background: #152236 !important; }
body.theme-dark .voicer-media-comment.content,
body.theme-dark .voicer-media-comments-empty { background: #1e3048; border-color: #3a5473; color: #d5e3f4; }
body.theme-dark .voicer-media-comment > .d-flex:first-child label,
body.theme-dark .voicer-media-comments-empty strong { color: #f0f6ff !important; }
body.theme-dark .voicer-media-comment > .d-flex:first-child p { color: #b0c4dd; }
body.theme-dark .voicer-media-comment > .voicelink { color: #e4edf9 !important; }
body.theme-dark .voicer-media-comment__more,
body.theme-dark .voicer-media-comment > .d-flex.font-13 :is(a, button) { background: #2b425f; color: #d3e3f6 !important; }
body.theme-dark .voicer-media-comment__menu { background: #263b56; border-color: #49627f; color: #f0f6ff; }
body.theme-dark .voicer-media-comment__menu .dropdown-item:hover { background: #34577f; color: #fff; }
body.theme-dark .voicer-media-comment > .d-flex.font-13 { border-color: #3a5473; }
body.theme-dark.voicer-media-comments-window #footer-bar.voicer-media-comments-composer { background: #1c2c42 !important; border-color: #354c69; }
body.theme-dark .voicer-media-comments-composer #messageInput { background: #253b56; border-color: #49627f; color: #f0f6ff; }
