/* Review form consent and compact modal. Scoped to review interfaces only. */
@media screen and (min-width: 801px) {
  #lea_msgbox.up-review-form-msgbox {
    display: flex;
    flex-direction: column;
    width: 420px !important;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
  }

  #lea_msgbox.up-review-form-msgbox #lea_msgbox_text {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 18px 22px 12px !important;
    overflow-x: hidden;
    overflow-y: visible;
  }

  #lea_msgbox.up-review-form-msgbox #lea_msgbox_txt_title {
    margin: 0 42px 13px 0 !important;
    font-size: 26px;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_field {
    margin: 0 0 9px !important;
    font-size: 14px;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_field > span[style*="color:red"] {
    color: var(--up-color-red) !important;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_field input[type="text"],
  #lea_msgbox.up-review-form-msgbox .cms_guestbook_field textarea {
    min-height: 38px;
    margin: 5px 0 0 !important;
    padding: 8px 12px;
    font-size: 14px;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_field textarea {
    height: 88px;
    min-height: 88px;
    max-height: 120px;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_rating {
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_rating__title {
    color: var(--up-color-ink);
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_consent,
  .up-reviews-form .up-reviews-form__consent--compact {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin: 6px 0 0 !important;
    color: #66758b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_consent input[type="checkbox"],
  .up-reviews-form .up-reviews-form__consent--compact input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 0;
    margin: 1px 0 0 !important;
    padding: 0;
    accent-color: var(--up-color-blue);
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_consent a,
  .up-reviews-form .up-reviews-form__consent--compact a {
    color: var(--up-color-blue);
    font: inherit;
    font-weight: 500;
    line-height: inherit;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_consent__text {
    min-width: 0;
    overflow-wrap: break-word;
  }

  #lea_msgbox.up-review-form-msgbox .cms_guestbook_consent + .cms_guestbook_consent {
    margin-top: 12px !important;
  }

  #lea_msgbox.up-review-form-msgbox #lea_msgbox_btns {
    flex: 0 0 auto;
    padding: 0 22px 16px;
  }

  #lea_msgbox.up-review-form-msgbox #lea_msgbox_ok,
  #lea_msgbox.up-review-form-msgbox #lea_msgbox_cancel {
    min-height: 44px;
    font-size: 15px;
  }
}

@media screen and (max-width: 800px) {
  body.up-reviews-page .up-reviews-form .up-reviews-form__consent--compact,
  #lea_msgbox.mobile-v2-review-form-msgbox .cms_guestbook_consent {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    margin: 6px 0 0 !important;
    color: #66758b;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
  }

  body.up-reviews-page .up-reviews-form .up-reviews-form__consent--compact input[type="checkbox"],
  #lea_msgbox.mobile-v2-review-form-msgbox .cms_guestbook_consent input[type="checkbox"] {
    width: 13px;
    height: 13px;
    min-height: 0;
    margin: 1px 0 0 !important;
    padding: 0;
    accent-color: #173778;
  }

  body.up-reviews-page .up-reviews-form .up-reviews-form__consent--compact a,
  #lea_msgbox.mobile-v2-review-form-msgbox .cms_guestbook_consent a {
    color: #173778;
    font: inherit;
    font-weight: 500;
    line-height: inherit;
  }
}
