.entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--badge-color) 35%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-color) 12%, white);
  color: var(--badge-color);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px #172a1c14;
}
.entity-badge img {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  object-fit: cover;
}
.entity-badge i {
  font-style: normal;
}
.restaurant-card-badges {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  max-width: calc(100% - 72px);
  flex-wrap: wrap;
  gap: 5px;
}
.restaurant-card {
  cursor: pointer;
}
.restaurant-card:focus-visible {
  outline: 3px solid #8fa77c;
  outline-offset: 3px;
}
.restaurant-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.owned-restaurant-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 8px;
}
.badge-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.badge-choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--deep);
  text-align: left;
}
.badge-choice:hover,
.badge-choice.active {
  border-color: #73906b;
  background: #f2f6ed;
}
.badge-choice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5eadb;
  font: 700 20px Georgia, serif;
}
.badge-choice-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.badge-choice span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.badge-choice small {
  color: var(--muted);
  line-height: 1.35;
}
.badge-choice > b {
  color: #60795b;
  font-size: 11px;
}
.review-card {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid #e1e3d9;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 28px #263c2910;
}
.review-card-highlight {
  outline: 3px solid #d19b51;
  box-shadow: 0 0 0 6px #d19b5120, 0 18px 40px #23382716;
}
.habitual-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1d8;
  color: #8b563f;
  font-size: 11px;
  font-weight: 900;
}
.review-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.own-review-section { margin-bottom: 28px; }
.own-review-card { padding: 32px 20px 18px; border-color: #dce4d6; }
#my-restaurant-review { scroll-margin-block: 32px; }
.own-review-label {
  position: absolute;
  left: 16px;
  top: -1px;
  padding: 6px 10px;
  border-radius: 0 0 8px 8px;
  color: #4e7248;
  background: #eaf1e3;
  font-size: 9px;
  font-weight: 850;
}
.community-review-card.is-archived {
  opacity: .78;
}
.archived-review-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4eee4;
  color: #8a5d2d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}
.community-reviews > header {
  position: static;
  display: flex;
  width: 100%;
  height: auto;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.community-reviews > header h3 { margin: 0; font: 600 25px Georgia, serif; }
.community-reviews > header p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.community-reviews > header select {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--deep);
  background: white;
  font-size: 10px;
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}
.review-card-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.review-author > div {
  display: grid;
  gap: 4px;
}
.review-author-badges {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}
.review-author { flex-direction: row-reverse; }
.review-rating-line { display: flex; align-items: center; gap: 10px; }
.review-rating-line > b { color: #334438; font-size: 10px; }
.tier-image-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 125px;
  padding: 3px 7px 3px 3px;
  border: 1px solid #d9c58f;
  border-radius: 999px;
  color: #684d19;
  background: #fff9e8;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.tier-image-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.header-tier-image {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.header-tier-image img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
}
.header-tier-image b {
  display: none;
}
.dash-tier-image {
  margin-top: 4px;
}
.reply-author-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.plan-grid article:has([data-plan="premium"])::before,
.plan-grid article:has([data-plan="business"])::before,
.plan-grid article:has([data-plan="businessPlus"])::before {
  content: "";
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 7px 22px #48310e24;
}
.plan-grid article:has([data-plan="premium"])::before {
  background-image: url("../../images/premium_badge.png");
}
.plan-grid article:has([data-plan="business"])::before {
  background-image: url("../../images/business_badge.png");
}
.plan-grid article:has([data-plan="businessPlus"])::before {
  background-image: url("../../images/business_plus_badge.png");
}
.review-avatar {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe7d7;
  color: var(--deep);
  font-weight: 800;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-tier {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9edde;
  color: #526747;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.review-stars {
  color: #79945e;
  font-size: 21px;
  letter-spacing: 2px;
}
.review-stars span {
  color: #d9ddd1;
}
.review-photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 5px;
}
.review-photo-strip figure {
  flex: 0 0 112px;
  height: 76px;
  margin: 0;
}
.review-photo-open {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: zoom-in;
}
.own-review-usage { color: var(--muted); font-size: 10px; }
.own-review-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.own-review-actions button {
  padding: 9px 13px;
  border: 1px solid #d9ddd5;
  border-radius: 8px;
  color: var(--deep);
  background: white;
  font-size: 10px;
  font-weight: 800;
}
.own-review-actions .danger { color: #d84638; border-color: #efb7af; }
.inline-review-editor {
  margin-top: 8px;
}
.own-review-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
}
.own-review-restaurant-image {
  display: grid;
  width: 150px;
  height: 150px;
  min-height: 132px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: #dfe7d7;
  font: 700 34px Georgia, serif;
}
.own-review-restaurant-image.image-error::before {
  content: attr(data-initial);
}
.own-review-restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.own-review-body { display: grid; align-content: start; gap: 10px; }
.own-review-body > header {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.own-review-body > header h3 {
  margin: 0;
  font: 600 22px Georgia, serif;
}
.own-review-body > header > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #4f7647;
  background: #e9f1e3;
  font-size: 9px;
}
.own-review-body time,
.community-review-content time {
  color: var(--muted);
  font-size: 10px;
}
.own-review-edit-form {
  display: grid;
  gap: 12px;
}
.own-review-edit-form textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d9ddd5;
  border-radius: 9px;
  color: #334037;
  background: #fff;
  font: inherit;
  line-height: 1.55;
}
.own-review-card.editing .own-review-actions { display: none; }
.community-review-card {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
}
.community-review-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid #e6e8e1;
  text-align: center;
}
.community-review-author > div {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
}
.community-review-author .review-avatar {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  font-size: 24px;
}
.community-review-author .review-author-badges {
  justify-content: center;
}

.chat-notifications {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  background: white;
  font-size: 19px;
}
.chat-notifications.has-unread { border-color: #d76c43; }
.chat-notifications img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.chat-notifications b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: #dc623b;
  font-size: 10px;
}
#chat-modal { z-index: 140; }
#chat-report-modal { z-index: 150; }
.chat-card {
  width: min(1080px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 70px));
  padding: 0;
  overflow: hidden;
}
.chat-header {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.chat-header h2 { margin: 2px 0 0; font: 700 28px Georgia, serif; }
.chat-header .kicker { margin: 0; }
.chat-layout {
  display: grid;
  height: calc(100% - 91px);
  grid-template-columns: 330px minmax(0, 1fr);
}
.chat-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #faf8f2;
}
.chat-list-item {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #e8e5dc;
  background: transparent;
  text-align: left;
}
.chat-list-item:hover,
.chat-list-item.active { background: #edf2e5; }
.chat-list-item > span:not(.chat-avatar) { display: grid; min-width: 0; gap: 4px; }
.chat-list-item small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-item em {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #dc623b;
  font-size: 10px;
  font-style: normal;
}
.chat-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  background-position: center;
  background-size: cover;
  font-weight: 800;
}
.chat-avatar.has-image { color: transparent; }
.chat-conversation { display: grid; min-width: 0; grid-template-rows: auto 1fr auto; }
.conversation-header {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.conversation-header > div { display: flex; align-items: center; gap: 12px; }
.conversation-header span { display: grid; gap: 3px; }
.conversation-header small { color: var(--muted); }
.conversation-tools { display: flex; align-items: center; gap: 8px; }
.chat-preferences {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-right: 42px;
  color: var(--muted);
  font-size: 10px;
}
.chat-preferences label { display: flex; align-items: center; gap: 5px; }
.chat-blocked-notice {
  padding: 18px;
  border-top: 1px solid #ead2ce;
  color: #8d4036;
  background: #fff2ef;
  text-align: center;
  font-weight: 750;
}
.chat-messages {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #f8f6ef;
}
.chat-messages article {
  max-width: 76%;
  align-self: flex-start;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 3px;
  background: white;
}
.chat-messages article.mine {
  align-self: flex-end;
  border-color: #d7e1ce;
  border-radius: 14px 14px 3px 14px;
  background: #e8f0df;
}
.chat-messages p { margin: 0 0 5px; white-space: pre-wrap; }
.chat-messages time { color: var(--muted); font-size: 10px; }
.chat-message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--line);
  background: white;
}
.chat-message-form textarea {
  min-height: 48px;
  max-height: 110px;
  resize: vertical;
}
.chat-empty,
.chat-list-empty {
  display: grid;
  place-content: center;
  gap: 7px;
  min-height: 160px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
}
.chat-report-card { width: min(500px, calc(100vw - 30px)); }
.chat-report-card label { display: grid; gap: 7px; margin-top: 15px; font-weight: 700; }
.chat-report-card textarea { min-height: 120px; }
.chat-report-card .solid { margin-top: 18px; }

@media (max-width: 720px) {
  .chat-card { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .chat-layout { grid-template-columns: 120px minmax(0, 1fr); }
  .chat-list-item { grid-template-columns: 42px; justify-content: center; }
  .chat-list-item > span:not(.chat-avatar), .chat-list-item em { display: none; }
  .chat-message-form { grid-template-columns: 1fr; }
}
.restaurant-hero-initial,
.restaurant-hero-main.image-error {
  display: grid;
  place-items: center;
  color: #31513a;
  background: linear-gradient(135deg, #dce7d3, #f1e5d6);
  font: 700 clamp(58px, 9vw, 120px) Georgia, serif;
}
.restaurant-hero-main.image-error::before { content: attr(data-initial); }
.community-review-author strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-review-author small {
  color: var(--muted);
  font-size: 10px;
}
.community-review-content {
  display: grid;
  align-content: start;
  gap: 12px;
}
.community-review-content > header {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.community-review-content > header > button {
  width: auto;
  padding: 8px 12px;
  border: 1px solid #d9ddd5;
  border-radius: 8px;
  color: var(--deep);
  background: white;
  font-size: 10px;
  font-weight: 800;
}
.community-review-card > .owner-reply,
.community-review-card > .owner-reply-form {
  grid-column: 2;
}
.edit-review-photo-manager figure button[data-queue-remove-image] {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #8f1f1b;
  box-shadow: 0 2px 8px #32100f66;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.review-photo-lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  padding: 48px;
  place-items: center;
  background: #07130ddd;
  cursor: zoom-out;
}
.review-photo-lightbox[hidden] { display: none; }
.review-photo-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 25px 80px #0009;
  cursor: default;
}
.review-photo-lightbox > button {
  position: fixed;
  z-index: 1;
  top: 24px;
  right: 28px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  color: white;
  background: #13271d;
  font-size: 28px;
  line-height: 1;
}
.review-photo-strip img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}
.review-comment {
  margin: 0;
  color: #334037;
  line-height: 1.65;
}
.review-report {
  justify-self: start;
  margin: 0;
}
.owner-reply {
  padding: 14px 16px;
  border-left: 3px solid #7f9873;
  border-radius: 4px 12px 12px 4px;
  background: #f0f4eb;
}
.owner-reply > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.owner-reply small {
  color: var(--muted);
}
.review-manage {
  justify-self: end;
  width: min(100%, 540px);
}
.review-manage summary {
  color: #60795b;
  cursor: pointer;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}
.owner-reply-form {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.owner-reply-form input {
  min-width: 0;
  flex: 1;
}
@media (max-width: 650px) {
  .dashboard-review-card { grid-template-columns: 1fr; }
  .dashboard-review-restaurant { width: 100%; height: 190px; }
  .community-reviews > header { align-items: stretch; flex-direction: column; }
  .community-reviews > header select { width: 100%; }
  .own-review-actions { display: grid; grid-template-columns: 1fr; }
  .own-review-layout,
  .community-review-card { grid-template-columns: 1fr; }
  .own-review-restaurant-image { min-height: 190px; }
  .own-review-restaurant-image { width: 100%; height: 190px; }
  .review-photo-lightbox { padding: 18px; }
  .community-review-author {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid #e6e8e1;
  }
  .community-review-card > .owner-reply,
  .community-review-card > .owner-reply-form { grid-column: 1; }
  .review-card-head {
    align-items: flex-start;
  }
  .review-author {
    max-width: 65%;
  }
  .owner-reply-form {
    flex-wrap: wrap;
  }
  .owner-reply-form input {
    flex-basis: 100%;
  }
  .badge-selector {
    grid-template-columns: 1fr;
  }
}
