/* FrenchLink post reviews v1
 * Shared presentation for the review composer and the post review list.
 */

.fl-post-review-trigger {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  appearance: none;
}

.fl-post-review-trigger:focus-visible {
  outline: 3px solid var(--fl-post-accent-strong, #007f91);
  outline-offset: 3px;
}

body.night-mode .fl-post-review-trigger:focus-visible {
  outline-color: var(--fl-post-accent-soft, #6edbe8);
}

.fl-post-review-modal {
  --fl-review-entity: var(--fl-color-entity-particulier-fonce, #63dbeb);
  --fl-review-entity-light: var(--fl-color-entity-particulier-clair, #00a2b7);
  --fl-review-entity-rgb: 99, 219, 235;
  --fl-review-entity-light-rgb: 0, 162, 183;
  --fl-review-entity-on: #000;
  --fl-review-entity-text: #357c89;
  --fl-review-entity-text-dark: var(--fl-color-entity-particulier-fonce, #63dbeb);
  --fl-review-accent: var(--fl-review-entity-text);
  --fl-review-accent-strong: var(--fl-review-entity-text);
  --fl-review-accent-soft: rgba(var(--fl-review-entity-rgb), .1);
  --fl-review-gold: #f4b740;
  --fl-review-ink: #102f38;
  --fl-review-muted: #627780;
  --fl-review-border: #dce9ec;
  --fl-review-surface: #fff;
  display: flex;
  min-height: 0;
  max-height: min(820px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
  color: var(--fl-review-ink);
  background: var(--fl-review-surface);
  border-top: 4px solid var(--fl-review-entity);
  border-radius: 26px;
}

#modal[data-fl-post-reviews-modal] .modal-dialog,
#modal .fl-post-reviews-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
}

#modal[data-fl-post-reviews-modal="list"] .modal-dialog,
#modal[data-fl-post-reviews-modal="list"] .fl-post-reviews-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

#modal[data-fl-post-reviews-modal] .modal-content,
#modal .modal-content:has(> .fl-post-review-modal) {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(5, 37, 45, .22);
}

.fl-post-review-modal__header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 16px;
  padding: 25px 28px 22px;
  background:
    radial-gradient(circle at 9% 15%, rgba(var(--fl-review-entity-light-rgb), .22), transparent 34%),
    linear-gradient(135deg, rgba(var(--fl-review-entity-rgb), .08) 0%, rgba(var(--fl-review-entity-light-rgb), .1) 52%, #fff 100%);
  border-bottom: 1px solid rgba(var(--fl-review-entity-rgb), .18);
}

.fl-post-review-modal__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  color: var(--fl-review-entity-on);
  font-size: 21px;
  background: var(--fl-review-entity);
  border-radius: 17px;
  box-shadow: 0 12px 24px rgba(var(--fl-review-entity-rgb), .28);
}

.fl-post-review-modal__heading {
  min-width: 0;
  padding-right: 48px;
}

.fl-post-review-modal__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--fl-review-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fl-post-review-modal .modal-title {
  margin: 0;
  color: var(--fl-review-ink);
  font-family: "Plus Jakarta Sans", Poppins, sans-serif;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  line-height: 1.2;
}

.fl-post-review-modal__description {
  max-width: 530px;
  margin: 7px 0 0;
  color: var(--fl-review-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fl-post-review-modal__close {
  position: absolute;
  top: 21px;
  right: 22px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(16, 47, 56, .1);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .78);
  background-size: 12px;
  opacity: 1;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.fl-post-review-modal__close:hover {
  border-color: rgba(var(--fl-review-entity-rgb), .38);
  background-color: #fff;
  transform: translateY(-1px);
}

.fl-post-review-modal__form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.fl-post-review-modal__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 24px 28px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fl-post-review-modal__target {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding: 13px 15px;
  background: var(--fl-review-accent-soft);
  border: 1px solid rgba(var(--fl-review-entity-rgb), .22);
  border-radius: 17px;
}

.fl-post-review-modal__target-avatar,
.fl-post-review-modal__target-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  color: var(--fl-review-entity-text);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(var(--fl-review-entity-rgb), .18);
}

.fl-post-review-modal__target-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fl-post-review-modal__target-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.fl-post-review-modal__target-copy span {
  color: var(--fl-review-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fl-post-review-modal__target-copy strong {
  overflow: hidden;
  color: var(--fl-review-ink);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-post-review-modal__proof {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 15px;
  color: #176144;
  background: #eefbf4;
  border: 1px solid #ccefdc;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.5;
}

.fl-post-review-modal__proof i {
  margin-top: 2px;
}

.fl-post-review-field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.fl-post-review-field__label,
.fl-post-review-field legend {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  color: var(--fl-review-ink);
  font-size: 13px;
  font-weight: 800;
}

.fl-post-review-field__hint {
  display: block;
  margin: -4px 0 11px;
  color: var(--fl-review-muted);
  font-size: 12px;
  line-height: 1.45;
}

.fl-post-review-rating__choices {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
}

.fl-post-review-rating__choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fl-post-review-rating__choices label {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #627780;
  font-size: 22px;
  cursor: pointer;
  background: #f5f8f9;
  border: 1px solid var(--fl-review-border);
  border-radius: 15px;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.fl-post-review-rating__choices label:hover,
.fl-post-review-rating__choices label:has(~ label:hover),
.fl-post-review-rating__choices input:checked + label,
.fl-post-review-rating__choices label:has(~ input:checked) {
  color: #5c3b00;
  background: linear-gradient(145deg, #f7c75c, var(--fl-review-gold));
  border-color: #875600;
  text-shadow: none;
}

.fl-post-review-rating__choices label:hover {
  transform: translateY(-2px);
}

.fl-post-review-rating__choices input:focus-visible + label {
  outline: 3px solid var(--fl-review-accent);
  outline-offset: 3px;
}

.fl-post-review-rating__status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--fl-review-accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.fl-post-review-modal__textarea-wrap {
  position: relative;
}

.fl-post-review-modal__textarea {
  min-height: 132px;
  padding: 15px 16px 34px;
  resize: vertical;
  color: var(--fl-review-ink);
  background: #fbfdfe;
  border: 1px solid var(--fl-review-border);
  border-radius: 16px;
  box-shadow: none;
}

.fl-post-review-modal__textarea:focus {
  background: #fff;
  border-color: var(--fl-review-accent);
  box-shadow: 0 0 0 3px rgba(var(--fl-review-entity-rgb), .18);
}

.fl-post-review-modal__counter {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--fl-review-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.fl-post-review-modal__attachments.attachments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.fl-post-review-modal__attachments.attachments li {
  float: none;
  margin: 0;
}

.fl-post-review-modal__attachments.attachments li.add {
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--fl-review-accent);
  font-size: 24px;
  background: var(--fl-review-accent-soft);
  border: 2px dashed rgba(var(--fl-review-entity-rgb), .48);
  border-radius: 17px;
  transition: background-color .16s ease, border-color .16s ease;
}

.fl-post-review-modal__attachments.attachments li.add:hover {
  background: rgba(var(--fl-review-entity-rgb), .16);
  border-color: var(--fl-review-accent);
}

.fl-post-review-modal__attachments .x-uploader {
  position: absolute;
  inset: 0;
}

.fl-post-review-modal__attachments .x-uploader .fa {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-post-review-modal__error {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #8a1f36;
  background: #fff0f3;
  border: 1px solid #ffd0da;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
}

.fl-post-review-modal__footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 28px calc(17px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--fl-review-border);
  backdrop-filter: blur(12px);
}

.fl-post-review-modal__button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  transition: box-shadow .18s ease, transform .18s ease;
}

.fl-post-review-modal__button--secondary {
  color: var(--fl-review-ink);
  background: #f3f7f8;
  border-color: var(--fl-review-border);
}

.fl-post-review-modal__button--primary {
  color: var(--fl-review-entity-on);
  background: var(--fl-review-entity);
  box-shadow: 0 10px 22px rgba(var(--fl-review-entity-rgb), .28);
}

.fl-post-review-modal__button--primary:hover,
.fl-post-review-modal__button--primary:focus {
  color: var(--fl-review-entity-on);
  background: var(--fl-review-entity);
  box-shadow: 0 13px 27px rgba(var(--fl-review-entity-rgb), .34);
  transform: translateY(-1px);
}

.fl-post-review-modal__button:focus-visible,
.fl-post-review-modal__close:focus-visible,
.fl-post-review-card__reply:focus-visible,
.fl-post-reviews-modal__more:focus-visible {
  outline: 3px solid var(--fl-review-accent);
  outline-offset: 3px;
}

/* Review list */
.fl-post-reviews-modal__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 22px 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fl-post-reviews-modal__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px 18px;
  background: linear-gradient(135deg, var(--fl-review-accent-soft), rgba(var(--fl-review-entity-light-rgb), .08));
  border: 1px solid rgba(var(--fl-review-entity-rgb), .22);
  border-radius: 18px;
}

.fl-post-reviews-modal__score {
  color: var(--fl-review-ink);
  font-family: "Plus Jakarta Sans", Poppins, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.fl-post-reviews-modal__score-copy {
  min-width: 0;
}

.fl-post-reviews-modal__stars,
.fl-post-review-card__stars {
  display: flex;
  gap: 3px;
  color: #71858d;
  font-size: 14px;
}

.fl-post-reviews-modal__stars .is-active,
.fl-post-review-card__stars .is-active {
  color: #9a6500;
}

.fl-post-review-card__rating-value {
  color: var(--fl-review-ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fl-post-reviews-modal__score-copy p {
  margin: 4px 0 0;
  color: var(--fl-review-muted);
  font-size: 12px;
}

.fl-post-reviews-modal__count {
  padding: 7px 11px;
  color: var(--fl-review-ink);
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  border: 1px solid rgba(var(--fl-review-entity-rgb), .24);
  border-radius: 999px;
  white-space: nowrap;
}

.fl-post-reviews-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.fl-post-review-card {
  display: block;
  width: 100%;
}

.fl-post-review-card__article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--fl-review-border);
  border-radius: 18px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.fl-post-review-card__article:hover {
  border-color: rgba(var(--fl-review-entity-rgb), .38);
  box-shadow: 0 10px 26px rgba(17, 60, 70, .07);
}

.fl-post-review-card__avatar,
.fl-post-review-card__avatar img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 15px;
}

.fl-post-review-card__avatar {
  display: block;
  overflow: hidden;
  background: var(--fl-review-accent-soft);
}

.fl-post-review-card__content {
  min-width: 0;
}

.fl-post-review-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fl-post-review-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.fl-post-review-card__identity a {
  overflow: hidden;
  color: var(--fl-review-ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-post-review-card__time {
  flex: 0 0 auto;
  color: var(--fl-review-muted);
  font-size: 11px;
  white-space: nowrap;
}

.fl-post-review-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
}

.fl-post-review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #176144;
  font-size: 10px;
  font-weight: 800;
  background: #eefbf4;
  border-radius: 999px;
}

.fl-post-review-card__text {
  margin: 12px 0 0;
  color: #304a52;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.fl-post-review-card__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.fl-post-review-card__photos button {
  width: 70px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  background: #edf3f5;
  border: 0;
  border-radius: 13px;
}

.fl-post-review-card__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fl-post-review-photo-open {
  overflow: hidden;
}

.fl-post-review-photo-preview {
  position: fixed;
  z-index: 1095;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 24, 30, .88);
  backdrop-filter: blur(10px);
}

.fl-post-review-photo-preview__surface {
  position: relative;
  display: grid;
  max-width: min(1080px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  place-items: center;
}

.fl-post-review-photo-preview__image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.fl-post-review-photo-preview__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #102f38;
  font-size: 21px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid var(--fl-review-accent, #007f91);
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

.fl-post-review-photo-preview__close:focus-visible {
  outline: 3px solid var(--fl-review-entity-light, #6edbe8);
  outline-offset: 3px;
}

.fl-post-review-card__response {
  margin-top: 13px;
  padding: 12px 14px;
  color: #33525a;
  background: #f4f8f9;
  border-left: 3px solid var(--fl-review-accent);
  border-radius: 0 13px 13px 0;
}

.fl-post-review-card__response strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fl-review-ink);
  font-size: 11px;
  text-transform: uppercase;
}

.fl-post-review-card__response p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.fl-post-review-card__actions {
  margin-top: 12px;
}

.fl-post-review-card__reply {
  min-height: 36px;
  padding: 0 13px;
  color: var(--fl-review-ink);
  font-size: 11px;
  font-weight: 800;
  background: var(--fl-review-accent-soft);
  border: 1px solid rgba(var(--fl-review-entity-rgb), .28);
  border-radius: 11px;
}

.fl-post-reviews-modal__more {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: var(--fl-review-ink);
  font-size: 12px;
  font-weight: 800;
  background: var(--fl-review-accent-soft);
  border: 1px solid rgba(var(--fl-review-entity-rgb), .26);
  border-radius: 14px;
}

.fl-post-reviews-modal__more .loader {
  width: auto;
  margin-left: 8px;
}

.fl-post-reviews-modal__empty {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px 20px;
  text-align: center;
}

.fl-post-reviews-modal__empty-icon {
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--fl-review-accent);
  font-size: 26px;
  background: var(--fl-review-accent-soft);
  border-radius: 22px;
}

.fl-post-reviews-modal__empty h3 {
  margin: 0;
  color: var(--fl-review-ink);
  font-size: 18px;
  font-weight: 800;
}

.fl-post-reviews-modal__empty p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--fl-review-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.night-mode .fl-post-review-modal {
  --fl-review-accent: var(--fl-review-entity-text-dark);
  --fl-review-accent-strong: var(--fl-review-entity-text-dark);
  --fl-review-ink: #eef8fa;
  --fl-review-muted: #a7bac1;
  --fl-review-border: #344952;
  --fl-review-surface: #1f2b31;
  --fl-review-accent-soft: rgba(var(--fl-review-entity-rgb), .16);
}

body.night-mode .fl-post-review-modal__header {
  background:
    radial-gradient(circle at 9% 15%, rgba(var(--fl-review-entity-light-rgb), .2), transparent 35%),
    linear-gradient(135deg, rgba(var(--fl-review-entity-rgb), .14), #20343c 58%, #1f2b31);
  border-bottom-color: rgba(var(--fl-review-entity-rgb), .32);
}

body.night-mode .fl-post-review-modal__close,
body.night-mode .fl-post-review-modal__footer,
body.night-mode .fl-post-review-card__article,
body.night-mode .fl-post-reviews-modal__count {
  background-color: #263840;
  border-color: #3b525c;
}

body.night-mode .fl-post-review-modal__close {
  background-image: none;
}

body.night-mode .fl-post-review-modal__close::before,
body.night-mode .fl-post-review-modal__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: #eef8fa;
  border-radius: 999px;
  content: "";
}

body.night-mode .fl-post-review-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.night-mode .fl-post-review-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.night-mode .fl-post-review-modal__icon,
body.night-mode .fl-post-review-modal__button--primary {
  color: var(--fl-review-entity-on);
  background: var(--fl-review-entity);
}

body.night-mode .fl-post-review-modal__button--primary:hover,
body.night-mode .fl-post-review-modal__button--primary:focus {
  color: var(--fl-review-entity-on);
  background: var(--fl-review-entity);
  box-shadow: 0 13px 27px rgba(var(--fl-review-entity-rgb), .38);
  transform: translateY(-1px);
}

body.night-mode .fl-post-review-modal__target,
body.night-mode .fl-post-reviews-modal__summary {
  background: rgba(var(--fl-review-entity-rgb), .14);
  border-color: rgba(var(--fl-review-entity-rgb), .34);
}

body.night-mode .fl-post-review-modal__textarea {
  color: #eef8fa;
  background: #18262c;
  border-color: #3b525c;
}

body.night-mode .fl-post-review-rating__choices label {
  color: #8ca0a8;
  background: #263840;
  border-color: #3b525c;
}

body.night-mode .fl-post-review-rating__choices label:hover,
body.night-mode .fl-post-review-rating__choices label:has(~ label:hover),
body.night-mode .fl-post-review-rating__choices input:checked + label,
body.night-mode .fl-post-review-rating__choices label:has(~ input:checked) {
  color: #5c3b00;
  background: linear-gradient(145deg, #f7c75c, var(--fl-review-gold));
  border-color: #875600;
}

body.night-mode .fl-post-review-modal__button--secondary,
body.night-mode .fl-post-review-card__response {
  color: #e8f5f7;
  background: #263840;
  border-color: #3b525c;
}

body.night-mode .fl-post-review-card__text,
body.night-mode .fl-post-review-card__response {
  color: #d1e1e5;
}

body.night-mode .fl-post-reviews-modal__stars,
body.night-mode .fl-post-review-card__stars {
  color: #a7bac1;
}

body.night-mode .fl-post-reviews-modal__stars .is-active,
body.night-mode .fl-post-review-card__stars .is-active {
  color: #f4b740;
}

@media (max-width: 575.98px) {
  #modal[data-fl-post-reviews-modal] .modal-dialog,
  #modal .fl-post-reviews-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  #modal[data-fl-post-reviews-modal] .modal-content,
  #modal .modal-content:has(> .fl-post-review-modal) {
    min-height: 100dvh;
    border-radius: 0;
  }

  .fl-post-review-modal {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .fl-post-review-modal__header {
    gap: 12px;
    padding: calc(17px + env(safe-area-inset-top)) 18px 17px;
  }

  .fl-post-review-modal__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .fl-post-review-modal__heading {
    padding-right: 38px;
  }

  .fl-post-review-modal__close {
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .fl-post-review-modal__description {
    display: none;
  }

  .fl-post-review-modal__body,
  .fl-post-reviews-modal__body {
    padding: 18px;
  }

  .fl-post-review-rating__choices {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .fl-post-review-rating__choices label {
    width: clamp(44px, 14vw, 52px);
    height: clamp(44px, 14vw, 52px);
  }

  .fl-post-review-modal__footer {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .fl-post-review-modal__button {
    width: 100%;
    padding: 0 12px;
  }

  .fl-post-reviews-modal__summary {
    grid-template-columns: auto 1fr;
  }

  .fl-post-reviews-modal__count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .fl-post-review-card__article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .fl-post-review-card__avatar,
  .fl-post-review-card__avatar img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .fl-post-review-card__topline {
    display: block;
  }

  .fl-post-review-card__time {
    display: block;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-post-review-modal *,
  .fl-post-review-modal *::before,
  .fl-post-review-modal *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .fl-post-review-modal,
  .fl-post-review-card__article,
  .fl-post-review-modal__target,
  .fl-post-reviews-modal__summary {
    border: 1px solid CanvasText;
  }

  .fl-post-review-rating__choices input:checked ~ label {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
}
