/* Backdrop */
#lat-review-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

/* Modal container */
.lat-review-show-more-modal {
  display: none;
  position: fixed;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 90%;

  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  min-width: 752px;
}

/* Header */
.lat-review-show-more-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 12px 16px;
}

.lat-review-show-more-modal-company {
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lat-review-show-more-modal-drop-arrow {
  cursor: pointer;
}

.lat-review-show-more-modal-close {
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 5px;
  position: absolute;
  right: 15px;
}

.edit-review-btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #DCDCE5;
  gap: 12px;
  font-family: "Figtree", serif;
  color: #121117;
  font-size: 14px;
  font-weight: 600;
  min-width: 100px;
  background: none;

}

/* Body */
.lat-review-show-more-modal-body {
  padding: 48px;
  color: #121117;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding-bottom: 0;
}

.lat-review-show-more-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.op-8 {
  opacity: 0.8;
}

.lat-review-show-more-modal-body h3 {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 22px;
  color: #121117;
}

.lat-review-show-more-modal-info {
  color: #6e6e73;
}

/* Rating summary */
.lat-review-show-more-modal-rating-summary {
  display: flex;
  flex-direction: column;
  height: 104px;
  justify-content: space-between;
}

.lat-modal-avg {
  max-height: 44px;
  margin-top: -15px;
  font-size: 48px;
  font-weight: 500;
  color: #121117;
  font-family: "Noto Sans", sans-serif;
}

.lat-modal-stars {
  font-size: 20px;
  color: #000;
  margin-top: 12px;
}

.lat-modal-total {
  color: #4D4C5C;
  font-size: 14px;
  font-weight: 400;
}

/* Breakdown bars */
.lat-review-show-more-modal-bars {
  list-style: none;
  padding: 0;
}

.lat-review-show-more-modal-bars li {
  display: flex;
  align-items: center;
  max-height: 20px;
}

.lat-review-show-more-modal-bars li>span:first-child {
  width: 16px
}

.lat-review-show-more-modal-bars li>span {
  width: 16px;
  font-size: 14px;
  font-family: "Figtree", serif;
  color: #121117
}

.bar-bg {
  flex: 1;
  height: 8px;
  background: #F4F4F8;
  overflow: hidden;
  border: 2px solid #121117;
}

.bar-fill {
  height: 100%;
  background: #121117;
}

/* Reviews list */
.lat-review-show-more-modal-reviews {
  margin-bottom: 24px;
}

.review-item {
  padding-block: 16px;
  border-top: 1px solid #DCDCE5
}

.review-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin-right: 16px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: start !important;
}

.review-name {
  font-weight: bold;
  font-size: 1rem;
}

.review-date {
  font-size: 0.85rem;
  color: #6e6e73;
}

.review-stars {
  color: #000;
  margin-bottom: 8px;
  font-size: 20px;
}

.review-text {
  font-size: 16px;
  color: #121117;
}

.update-review-btn:hover {
  background: rgba(255, 88, 60, 1) !important;
}

.edit-review-btn:hover,
.cancel-review-btn:hover {
  background-color: #f2f4f7 !important;
}

/* Edit section */
.lat-review-show-more-modal-review-edit {
  margin-top: 16px;
}

.lat-review-show-more-modal-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.lat-review-show-more-modal-review-meta {
  font-size: 16px;
  color: #121117;
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
  /* margin-bottom: 12px; */
  align-items: start;
  justify-content: center;
}

.lat-review-show-more-modal-review-meta span {
  font-size: 14px;
  color: #4D4C5C;
  font-weight: 400;
}

.lat-review-show-more-modal-star-input {
  margin-bottom: 16px;
  cursor: pointer;
}

.lat-review-show-more-modal-star-input .selected {
  color: #000;
}

#lat-review-show-more-modal-text {
  width: 100%;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 24px;
  resize: none;
  border: 2px solid #DCDCE5;
}

.lat-review-show-more-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#lat-review-show-more-modal-cancel {
  background: #fff;
  /* border: 1px solid #444; */
  color: #444;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 2px solid #121117;
  min-width: 160px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#lat-review-show-more-modal-update {
  background: #FF2500;
  /* border: none; */
  color: #fff;
  border: 2px solid #121117;
  border-radius: 8px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: c;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
}

@media (max-width: 768px) {

  .lat-review-show-more-modal {
    min-width: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    top: 0;
    left: 0;
    transform: none;
    max-width: none;
  }

  .lat-review-show-more-modal-body {
    padding: 0px 16px 16px 16px;
    max-height: none;
    overflow: auto;
    height: calc(100vh - 82px);
  }

  .lat-review-show-more-modal-title {
    padding-block: 16px;
    font-size: 18px !important;
    margin-bottom: 0 !important;
    position: sticky;
    margin-left: -16px;
    width: 100vw;
    background: var(--bg);
    padding-inline: 16px;
  }

  .lat-modal-avg {
    font-family: inherit;
    font-weight: 700;
    font-size: 40px;
  }

  .lat-review-show-more-modal-review-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
  }

  .lat-review-edit-btn {
    width: 40px;
    height: 40px;
  }
  .lat-modal-total {
    color: #4D4C5C;
    font-size: 14px;
    font-weight: 400;
  }

  .lat-review-show-more-modal-close {
    z-index: 1;
  }
}