html:has(.sa-landing-reply-dialog[open]) { overflow: hidden !important; }
html body .sa-landing-reply-dialog[open] {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(780px, calc(100vw - 24px)) !important;
  height: min(840px, calc(100dvh - 24px));
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: auto !important;
  overflow: hidden;
  border: 1px solid #dbe6df !important;
  border-radius: 16px;
  background: #fff !important;
  color: #22352a;
  box-shadow: 0 18px 60px #132b2355;
}
.sa-landing-reply-dialog::backdrop { background: #14291f70; }
.sa-landing-reply-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #dbe6df;
}
.sa-landing-reply-heading h2 { margin: 0; font-size: 18px; }
html body .sa-landing-reply-heading button {
  border: 0 !important;
  border-radius: 50%;
  background: #edf4ef !important;
  color: #234c37 !important;
  min-width: 38px;
  min-height: 38px;
  font-size: 25px;
}
html body .sa-landing-reply-scroll {
  display: block !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
html body .sa-landing-reply-scroll > article {
  display: flex !important;
  flex-direction: column;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .sa-landing-reply-scroll > article > .comment-tools {
  order: 1;
}
html body .sa-landing-reply-scroll > article > :is(.sa-hotel-reply-list,[data-replies-for]) {
  order: 2;
}
.sa-landing-reply-dock {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #dbe6df;
  background: white;
}
.sa-landing-reply-dock > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
html body .sa-landing-reply-dock :is(.sa-hotel-inline-reply,.sa-reply-form) {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  background: #edf4ef !important;
}
html body .sa-landing-reply-dock textarea {
  box-sizing: border-box;
  margin: 0 !important;
  min-height: 44px !important;
  max-height: 25dvh;
  border: 0 !important;
  background: transparent !important;
}
html body .sa-landing-reply-dock :is(.sa-hotel-reply-actions,.sa-reply-actions,.sa-reply-toolbar) {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100% !important;
}
html body .sa-landing-reply-dock button[type=submit] { margin-inline-start: auto !important; }
html body .sa-landing-reply-dock :is(small:empty, [hidden]) { display: none !important; }

html body .sa-landing-reply-dialog:not([open]) { display:none !important; }
html body .sa-landing-reply-scroll { min-height:0; }
html body .sa-landing-reply-dock .sa-reply-form { max-height:38dvh; overflow:auto; }
html body .sa-landing-reply-scroll > article > .comment-tools { padding-block:6px !important; }

/* Keep the dock in the dialog grid despite the standalone page composer rules. */
html body dialog.sa-landing-reply-dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  grid-template-areas: "title" "thread" "composer";
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}
html body dialog.sa-landing-reply-dialog > .sa-landing-reply-heading {
  grid-area: title;
  display: flex !important;
}
html body dialog.sa-landing-reply-dialog > .sa-landing-reply-scroll {
  grid-area: thread;
  position: relative !important;
  min-width: 0;
  min-height: 0;
}
html body dialog.sa-landing-reply-dialog > .sa-landing-reply-dock {
  grid-area: composer;
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  min-width: 0;
}
html body dialog.sa-landing-reply-dialog .sa-landing-reply-scroll > article > .comment-top {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px !important;
}
html body dialog.sa-landing-reply-dialog .comment-top > .sa-comment-menu-wrap {
  position: relative !important;
  margin-inline-start: auto !important;
}
html body dialog.sa-landing-reply-dialog > .sa-landing-reply-dock > form {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  display: flex !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-height: 38dvh;
  overflow: auto;
}
html body dialog.sa-landing-reply-dialog .sa-landing-reply-dock :is(form > label, textarea) {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}
html body dialog.sa-landing-reply-dialog .sa-landing-reply-dock textarea {
  height: auto !important;
  padding: 8px !important;
  resize: vertical;
}
html body dialog.sa-landing-reply-dialog .sa-landing-reply-dock :is(.sa-hotel-reply-actions, .sa-reply-toolbar) {
  position: static !important;
  inset: auto !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

html body .sa-parity-thread > .sa-reply { position:relative; padding:3px 0 3px 44px!important; min-height:38px; }
html body .sa-parity-thread > .sa-reply > .sa-reply-head { min-height:0!important; margin:0!important; padding:0!important; }
html body .sa-parity-thread > .sa-reply > .sa-reply-head > img:first-child { position:absolute!important; inset:4px auto auto 0!important; width:34px!important; height:34px!important; min-width:0!important; border-radius:50%!important; }
html body .sa-parity-thread > .sa-reply[hidden] { display:none!important; }
.sa-parity-more { margin:4px 0; padding:4px 8px; color:#087842; background:#edf4ef; border:0; border-radius:6px; }
html body .sa-landing-reply-dock > .profile-reply { flex:1; min-width:0; margin:0!important; }
html body .sa-landing-reply-dock > .profile-reply textarea { width:100%; }

/* Keep the scroll region bounded even on hotel pages with tall post media. */
html body dialog.sa-landing-reply-dialog[open] { height:min(840px,calc(100dvh - 24px))!important; overflow:hidden!important; }
html body dialog.sa-landing-reply-dialog[open] > .sa-landing-reply-scroll { height:auto!important; max-height:none!important; overflow:auto!important; touch-action:pan-y; }
html body dialog.sa-landing-reply-dialog[open] > .sa-landing-reply-dock { max-height:36dvh; overflow:auto; }
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread > .sa-reply.sa-reply {
  display:block!important; position:relative!important; padding:3px 0 3px 42px!important;
  margin:0!important; border:0!important; min-height:38px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread > .sa-reply[hidden] { display:none!important; }
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply > :is(.sa-reply-head,p,.sa-reply-tools,.sa-reply-image-grid) {
  margin:0!important; padding:0!important; min-height:0!important; line-height:1.3!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply > .sa-reply-head {
  position:static!important; display:flex!important; align-items:baseline!important; gap:6px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply-head > img:first-child {
  position:absolute!important; inset:4px auto auto 0!important; margin:0!important;
  width:34px!important; height:34px!important; min-width:34px!important; max-width:34px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply-tools button {
  min-height:24px!important; min-width:24px!important; height:auto!important; padding:2px 4px!important; gap:4px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply-tools button svg {
  width:14px!important; height:14px!important; min-width:14px!important; min-height:14px!important; flex:0 0 14px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply-image-grid {
  display:flex!important; flex-wrap:wrap!important; gap:5px!important; margin-block:4px!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .sa-parity-thread .sa-reply-image-grid .sa-reply-image-tile {
  flex:0 0 64px!important; width:64px!important; min-width:0!important; height:48px!important; min-height:0!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog,.profile-parity-replies) :is(button.sa-parity-more,summary) :is(svg) { vertical-align:middle; }
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog,.profile-parity-replies) :is(button.sa-parity-more,.sa-parity-thread > summary) {
  background:transparent!important; border:0!important; box-shadow:none!important; color:#087842!important; padding:2px 0!important;
}
html body :is(.sa-hotel-discussion,.sa-landing-reply-dialog) .comment-tools > .sa-parity-toggle { order:999!important; margin-inline-start:auto!important; }
.profile-parity-replies [hidden] { display:none!important; }
.profile-parity-replies .profile-reply-actions { display:flex; align-items:center; gap:5px; }
.profile-parity-replies .profile-reply-actions button,.profile-parity-replies .profile-reply-actions summary { padding:2px 4px; border:0; background:transparent; color:#365748; cursor:pointer; }
.profile-parity-replies .profile-reply-actions svg { width:14px; height:14px; vertical-align:middle; }
.profile-parity-replies .profile-nested-replies { margin:4px 0 0; }

/* Landing replies share one text edge under the author, beside the avatar. */
#sa-community-landing .sa-parity-thread > .sa-reply:not([hidden]) {
  --reply-avatar-size: 32px;
  --reply-avatar-gap: 9px;
  display: block !important;
  position: relative !important;
  min-height: var(--reply-avatar-size) !important;
  margin: 0 !important;
  padding: 3px 0 3px calc(var(--reply-avatar-size) + var(--reply-avatar-gap)) !important;
}
#sa-community-landing .sa-parity-thread .sa-reply > :is(.sa-reply-head, p, .sa-reply-tools) {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
}
#sa-community-landing .sa-parity-thread .sa-reply > .sa-reply-head {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
#sa-community-landing .sa-parity-thread .sa-reply-head > span { margin: 0 !important; padding: 0 !important; }
#sa-community-landing .sa-parity-thread .sa-reply-head > img:first-child {
  position: absolute !important;
  inset: 3px auto auto 0 !important;
  translate: none !important;
  transform: none !important;
  width: var(--reply-avatar-size) !important;
  height: var(--reply-avatar-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  object-fit: cover;
}
#sa-community-landing .sa-parity-thread .sa-reply > .sa-reply-tools {
  gap: 6px !important;
  margin-top: 2px !important;
}
#sa-community-landing .sa-parity-thread .sa-reply > .sa-hotel-reply-list { margin: 3px 0 0 !important; padding: 0 !important; }
#sa-community-landing :is(.comment-tools, .sa-reply-tools) button,
#sa-community-landing :is(button.sa-parity-toggle, button.sa-parity-more, .sa-parity-thread > summary) {
  border: 0 !important;
  box-shadow: none !important;
}
#sa-community-landing :is(button.sa-parity-toggle, button.sa-parity-more, .sa-parity-thread > summary) {
  background: transparent !important;
  color: #365748 !important;
  min-height: 0 !important;
  padding: 3px 4px !important;
}
#sa-community-landing .comment-tools > button.sa-parity-toggle {
  order: 999 !important;
  margin-inline-start: auto !important;
}
#sa-community-landing :is(.comment-tools button, .sa-reply-tools button, .sa-parity-more, .sa-parity-thread > summary):focus-visible {
  outline: 2px solid #087842 !important;
  outline-offset: 2px;
}

html body [data-hotel-discussion] dialog.sa-landing-reply-dialog[open] > .sa-landing-reply-scroll {
  display:block!important;
  min-block-size:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
html body [data-hotel-discussion] dialog.sa-landing-reply-dialog[open] > .sa-landing-reply-dock {
  min-block-size:0;
  max-block-size:36dvh;
}
html body [data-hotel-discussion] .sa-parity-thread > .sa-reply:not([hidden]) {
  position:relative!important;
  padding:3px 0 3px 43px!important;
}
html body [data-hotel-discussion] .sa-parity-thread > .sa-reply > .sa-reply-head {
  position:static!important;
  display:flex!important;
  align-items:center!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}
html body [data-hotel-discussion] .sa-parity-thread .sa-reply-head > img:first-child {
  position:absolute!important;
  inset:3px auto auto 0!important;
  transform:none!important;
  translate:none!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
}
html body [data-hotel-discussion] .sa-parity-thread .sa-reply-head > .sa-comment-menu-wrap {
  position:absolute!important;
  inset:0 0 auto auto!important;
}
html body [data-hotel-discussion] .sa-parity-thread > .sa-reply > :is(p,.sa-reply-tools) {
  margin:2px 0 0!important;
  padding:0!important;
}

html body [data-hotel-discussion] :is(button.sa-parity-toggle, button.sa-parity-more, .sa-parity-thread > summary, button.sa-comment-menu-trigger) {
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
html body [data-hotel-discussion] :is(button.sa-parity-toggle, button.sa-parity-more, .sa-parity-thread > summary, button.sa-comment-menu-trigger):focus-visible {
  outline:2px solid #087842!important;
  outline-offset:2px;
}

html body dialog.sa-hotel-reply-dialog .sa-landing-reply-scroll > article > .comment-top {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-align: start !important;
}
html body dialog.sa-hotel-reply-dialog .sa-landing-reply-scroll > article > .comment-top > a:first-child {
  position: static !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  margin: 0 !important;
}
html body dialog.sa-hotel-reply-dialog .sa-landing-reply-scroll > article > .comment-top > a:first-child > img {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border-radius: 50%;
}
html body dialog.sa-hotel-reply-dialog .sa-landing-reply-scroll > article > .comment-top > div:nth-child(2) {
  position: static !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body dialog.sa-hotel-reply-dialog .sa-landing-reply-scroll > article > .comment-top > .sa-comment-menu-wrap {
  flex: 0 0 auto !important;
  width: auto !important;
  align-self: center !important;
}

html body dialog.sa-hotel-reply-dialog .sa-comment-menu:not([hidden]) {
  display: block !important;
}
html body dialog.sa-hotel-reply-dialog .sa-comment-menu:popover-open {
  position: fixed !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
}
