.dvr-collapsed {
  display: none !important;
}
.dvr-comments.dvr-collapsed,
.dvr-children.dvr-collapsed,
.dvr-comments-list.dvr-collapsed {
  display: none !important;
}
.dvr-children {
  margin-left: 24px;
}
.dvr-wrap {
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  background: #ffffff;
}
.dvr-summary {
  display: grid;
  grid-template-columns: 3fr 5fr 4fr;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #eeeeee;
}

.dvr-summary > * {
  position: relative;
}

.dvr-summary > *:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 100%;
  background: #eeeeee;
}

.dvr-score {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.dvr-score__value {
  font-size: 64px;
  font-weight: 700;
  color: #212111;
  line-height: 112%;
}
.dvr-score__stars {
  color: #fbc02d;
  font-size: 32px;
  letter-spacing: 2px;
}
.dvr-score__meta {
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  color: #212121;
}
.dvr-bars {
  flex: 1;
  width: 100%;
}
.dvr-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.dvr-bar__label {
  width: 20px;
  text-align: right;
  color: #757575;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
}
.dvr-bar__track {
  flex: 1;
  height: 8px;
  background: #eeeeee;
  border-radius: 9999px;
  overflow: hidden;
}
.dvr-bar__fill {
  height: 100%;
  background: #238b00;
}
.dvr-bar__pct {
  text-align: left;
  color: #757575;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
}
.dvr-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}
.dvr-btn {
  display: inline-block;
  background: #238b00;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 4%;
  width: 100%;
}
.dvr-btn:hover {
  color: #ffffff;
}
.dvr-list {
  margin-top: 48px;
}
.dvr-entry {
  margin-bottom: 16px;
}
.dvr-entry .dvr-item {
  position: relative;
}
.dvr-entry .dvr-item::before {
  position: absolute;
  top: -10px;
  left: 12px;
  background: #fff;
  color: #6b7280;
  font-size: 11px;
  padding: 0 6px;
}
.dvr-item {
  display: flex;
  gap: 12px;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 12px;
}
.dvr-item:first-child {
  margin-top: 0;
}
.dvr-avatar {
  border-radius: 9999px;
  width: 40px;
  height: 40px;
}
.dvr-item__body {
  flex: 1;
}
.dvr-item__head {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-bottom: 8px;
}
.dvr-item__author-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dvr-comment__author-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
}
.dvr-comment__author {
  color: #212121;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
}
.dvr-item__role.dvr-item__role--admin {
  color: #ffffff;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  padding: 4px 8px;
  background: #238b00;
  border-radius: 4px;
}
.dvr-item__role.dvr-item__role--customer {
  color: #238b00;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dvr-item__author {
  color: #212121;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 1%;
}
.dvr-item__stars {
  color: #fbc02d;
  letter-spacing: 1px;
}
.dvr-item__content {
  color: #222;
}
.dvr-item__meta {
  color: #888;
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
.dvr-comments-padding-left {
  margin-left: 50px;
  padding-left: 12px;
  border-left: 1px solid #eeeeee;
}
.dvr-comments-padding-left .dvr-comment {
  display: grid;
  grid-template-columns: 0.8fr 11.2fr;
  gap: 12px;
}
.dvr-date {
  color: #bdbdbd;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
}

.dvr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
}
.dvr-like__icon {
  width: 18px;
}
.dvr-actions-new {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: unset;
  margin-top: 12px;
}

.dvr-actions-new .dvr-date {
  margin-left: auto;
  color: #bdbdbd;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
}
.dvr-btn--ghost.dvr-replies-toggle {
  margin-top: 12px;
}
.dvr-btn-group {
  display: flex;
  gap: 32px;
}
.dvr-actions .dvr-like .dvr-like__count {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  color: #757575;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
}
.dvr-btn--ghost {
  color: #757575;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  background: none;
  display: flex;
  gap: 12px;
  align-items: center;
}
.dvr-btn--ghost img {
  width: 18px;
}

/* Comments & likes */
.dvr-comments {
  margin-top: 10px;
  padding-top: 10px;
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dvr-comments-toggle {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dvr-comments-toggle img {
  width: 18px;
}
.dvr-comments-list {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

.dvr-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  cursor: pointer;
}
.dvr-like[aria-pressed="true"] {
  color: #1d4ed8;
}
.dvr-comment {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dvr-comment--child {
  margin-left: 24px;
  border-left: 2px solid #eef2f7;
  padding-left: 12px;
}
.dvr-comment .dvr-comment__meta {
  color: #212121;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
}
.dvr-reply {
  margin-left: 24px;
}
.dvr-reply-form textarea {
  width: 100%;
  min-height: 80px;
}
.dvr-reply-form,
.dvr-comment-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dvr-edit-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.dvr-comment-form {
  margin-bottom: 10px;
}

/* Modal */
.dvr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dvr-modal--open {
  display: flex;
}
.star__group {
  display: grid;
  grid-template-columns: 3.5fr 8.5fr;
  gap: 12px;
  padding: 16px 0;
}
#dvr-images {
  display: none;
}

label[for="dvr-images"] {
  display: inline-block;
  padding: 10px 16px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

label[for="dvr-images"] {
  display: inline-block;
  padding: 12px 20px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dvr-modal__panel {
  background: #ffffff;
  border-radius: 10px;
  max-width: 856px;
  width: 92%;
  padding: 32px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  max-height: 80vh;
  overflow-y: auto;
}
.dvr-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dvr-modal__title {
  font-weight: 700;
  font-size: 18px;
}
.dvr-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.dvr-field {
  margin: 8px 0;
}
.dvr-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.dvr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dvr-field label {
  display: block;
  margin-bottom: 4px;
  color: #333;
}
.dvr-field label:last-child {
  margin-top: 20px;
}
.dvr-stars {
  display: flex;
  gap: 6px;
  font-size: 22px;
  color: #ddd;
  cursor: pointer;
}
.dvr-stars-pig {
  display: flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
  margin: 0 auto;
}
.dvr-stars-pig .dvr-star {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.dvr-star-label {
  color: #00000099;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  text-align: center;
  transition: color 0.2s ease;
}

.dvr-star-item:hover .dvr-star-label,
.dvr-star-item.active .dvr-star-label {
  color: #fbc02d;
}

.dvr-stars .is-active {
  color: #fbc02d;
}

.dvr-text {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  border-radius: 8px;
}
.dvr-like[aria-pressed="true"] .dvr-like__count {
  color: #238b00;
}

.dvr-like[aria-pressed="false"] .dvr-like__count {
  color: #757575;
}
.dvr-submit {
  margin-top: 32px;
  background: #238b00;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  display: flex;
  margin: 0 auto;
}
.dvr-label-with-icon {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.dvr-reply-form button {
  background: #238b00;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  display: flex;
  margin: 0 auto;
}
.dvr-message {
  margin-top: 8px;
  font-size: 13px;
}

/* Images gallery in review */
.dvr-item__images img {
  border: 1px solid #e5e7eb;
}

/* Preview selected images in modal */
.dvr-preview {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.dvr-preview__item {
  width: 80px;
  height: 80px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dvr-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* “Xem thêm đánh giá” link style baseline (if present) */
.dvr-more {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.dvr-more a {
  color: #2563eb;
  text-decoration: none;
}
.dvr-more a:hover {
  text-decoration: underline;
}

/* Toast notification */
.dvr-toast-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
}
.dvr-toast {
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.98;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dvr-toast--error {
  background: #b91c1c;
}
.dvr-toast--success {
  background: #15803d;
}
.dvr-toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}
.dvr-message {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-top: 8px;
  min-height: 1.5em;
}
.dvr-submit.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
@media screen and (max-width:998px) {
  .star__group {
    grid-template-columns: 1fr !important;
  }
  .dvr-stars-pig .dvr-star {
    width: 40px;
  }
}

@media screen and (max-width: 768px) {
  .dvr-summary {
    grid-template-columns: 1fr;
  }
  .dvr-field label:last-child {
    margin-bottom: 20px;
  }
  .dvr-comments-padding-left .dvr-comment {
    grid-template-columns: 1fr;
  }
  .dvr-grid-3 {
    grid-template-columns: 1fr;
  }
}
