.no-comments-found .vtlc-load-more-wrapper {
  display: none;
}
.no-comments-found .vtl-no-comments-message {
  display: block !important;
}
#vtlCommentModal .modal-header {
  position: relative !important; /* Ensure positioning context for child */
}
#vtlCommentModal .modal-header .close {
  position: absolute !important;
  right: 15px !important;
  top: 10px !important; /* Adjusted top value */
  display: block !important;
  visibility: visible !important;
  opacity: 0.7 !important;
  color: #000 !important;
  text-shadow: none !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  z-index: 10 !important; /* Ensure it's above other content */
}
#vtlCommentModal .modal-header .close:hover {
  opacity: 1 !important;
}
.vtl-comment-item {
  margin-bottom: 12px;
}

.vtl-comment-item .media-left {
  width: 48px;
  height: 48px;
  min-width: 48px; /* Prevent collapsing */
  margin-right: 15px; /* Add some space */
}

.vtl-comment-item .media-left .avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Make it circular */
  object-fit: cover; /* Prevent distortion */
}
.vtl-rating-filter .fa-star {
  color: #ddd;
  cursor: pointer;
  margin: 0 3px;
}

.vtl-rating-filter .fa-star,
.vtl-rating-filter .fa-star-o {
  color: #f39c12;
}

.vtl-comment-stars .fa {
  color: #f39c12;
}

.vtl-rating-input__star {
  color: #ddd;
  cursor: pointer;
  margin-right: 4px;
}

.vtl-rating-input__star.is-active {
  color: #f39c12;
}

.vtl-review-media img {
  max-height: 120px;
}

.vtl-comments-wrapper .panel {
  border-radius: 10px;
  box-shadow: none;
}

.vtl-rating-filter {
  white-space: nowrap;
}

.vtl-filter-set {
  padding: 0 6px;
  background: transparent;
  border: none;
  opacity: 0.85;
}

.vtl-filter-set:focus {
  outline: none;
  box-shadow: none;
}

.vtl-filter-set .fa {
  color: #f39c12;
  margin: 0 1px;
}

.vtl-filter__button.is-active {
  opacity: 1;
}

.vtl-filter-block .vtl-filter__button {
  padding: 0px;
  text-decoration: none;
}

.vtl-filter-block .vtl-filter__button:hover,
.vtl-filter-block .vtl-filter__button:focus {
  text-decoration: none;
}

.vtl-comments-wrapper .btn-link:focus,
.vtl-comments-wrapper .btn-link:hover {
  text-decoration: none;
}

.vtl-filter-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vtl-preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 10px;
}

.vtl-preview-item {
  position: relative;
  margin: 6px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fafafa;
  width: 120px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtl-preview-item img,
.vtl-preview-item video {
  max-width: 100%;
  max-height: 100%;
}

.vtl-preview-meta {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 2px;
  width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtl-comments-list .vtl-comment-preview {
  background: #fffdf3;
  border: 1px solid #ddd; /* Add a full default border */
  border-left: 4px solid #f39c12; /* Then add the highlight */
}

.vtl-pending-note {
  margin-top: 8px;
  background: #fff8e1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #b8860b;
}

.vtl-pending-note i {
  margin-right: 5px;
}

.vtl-comment-actions {
  margin-top: 10px;
}

.vtl-edit-form textarea {
  margin-bottom: 5px;
}

.vtl-media-item {
  display: inline-block;
  position: relative;
  margin-right: 10px;
}

.vtl-media-item .vtl-delete-media {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .vtl-comments-wrapper {
    text-align: left;
  }
  .vtl-comments-list-container .vtl-comments-list {
    padding-left: 0;
    margin-left: 0;
  }
  .vtl-comments-list .vtl-comment-item {
    margin-left: 0;
    margin-right: 0;
  }
  /* Stack and center the main header elements */
  .vtl-comments-wrapper .row > .col-sm-4,
  .vtl-comments-wrapper .row > .col-sm-8 {
    text-align: center !important;
    width: 100%;
    margin-bottom: 20px;
  }
  .vtl-comments-wrapper .row .media {
    display: inline-block; /* Helps with centering */
    text-align: center;
    padding: 10px;
  }

  /* Make the star filter section more compact on mobile */
  .vtl-rating-filter .d-flex {
    flex-direction: column;
    align-items: center;
  }
  .vtl-filter-block {
    margin-bottom: 10px;
  }

  /* Make the modal preview grid more compact */
  .vtl-preview-grid {
    justify-content: center; /* Center the preview items */
  }
  .vtl-preview-item {
    width: 90px;
    height: 70px;
  }

  .vtl-comments-wrapper .vtl-comments-list .media {
    padding: 10px;
  }
  .vtl-comments-wrapper .vtl-comments-list .panel-body {
    text-align: unset;
  }
}
