.crp-container {
  max-width: 100%;
  margin: auto;
  font-family: "KoHo";
}
.crp-title {
  text-align: center;
  font-size: 26px;
}
.crp-filter {
  text-align: center;
  margin: 10px;
  display: none;
}
.crp-filter button {
  margin: 5px;
}

.crp-item {
  margin-bottom: 30px;
  border: 1px solid #eee;
  padding: 20px;
}
.crp-header {
  display: flex;
  gap: 10px;
}
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.crp-name {
  font-weight: 500;
  color: #33479d;
  font-size: 20px;
  padding-bottom: 5px;
}
.crp-email {
  font-size: 12px;
  color: #777;
}
.crp-stars {
  color: #ffb400;
}

.product-name {
  font-weight: bold;
  margin: 20px 0;
  color: #33479d;
  font-size: 24px;
}
.product-content-review p {
  padding-bottom: 20px;
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
}
.crp-media {
  display: flex;
  gap: 10px;
}
.crp-media .crp-thumb-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

/* VIDEO */
.crp-video {
  width: 150px;
  height: 150px;
  position: relative;
  cursor: pointer;
}
.crp-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.crp-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: auto;
  opacity: 1;
}
.crp-play:after {
  content: "";
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 5px;
}

/* AUDIO */
.crp-audio {
  width: 100px;
  font-size: 12px;
}

/* LOAD MORE */
#crp-loadmore {
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#crp-loadmore button {
  padding: 10px 20px;
  background: #33479d;
  color: #fff;
  border: none;
  font-size: 22px;
  font-weight: 500;
  width: fit-content;
  margin: 0 auto;
}

/* BUTTON */
.crp-btn {
  display: block;
  padding: 10px;
  background: #33479d;
  color: #fff;
  border: none;
  font-size: 22px;
  font-weight: 500;
  width: 400px;
  margin: 20px auto;
}
/* POPUP */
#crp-popup,
#crp-form-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 99;
}

#crp-popup img {
  max-width: 80%;
}

/* ===== FORM REVIEW ===== */
#crp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* INPUT + TEXTAREA */
#crp-form input,
#crp-form textarea,
#crp-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
  background: #fafafa;
}

/* FOCUS */
#crp-form input:focus,
#crp-form textarea:focus,
#crp-form select:focus {
  border-color: #33479d;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(63, 95, 169, 0.1);
}

/* TEXTAREA */
#crp-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* RATING */
#crp-form select {
  cursor: pointer;
}

/* FILE INPUT CUSTOM */
#crp-form input[type="file"] {
  background: #fff;
  padding: 10px;
  border: 2px dashed #ddd;
  cursor: pointer;
}

#crp-form input[type="file"]:hover {
  border-color: #33479d;
  background: #f5f8ff;
}

/* BUTTON */
#crp-form button {
  background: linear-gradient(135deg, #33479d, #6f8cd6);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

#crp-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FORM BOX */
.crp-form-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 500px;
  max-width: 100%;
  position: relative;
  font-family: "KoHo";
}

/* CLOSE BUTTON */
.crp-form-box span {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
}

/* TITLE */
.crp-form-box:before {
  content: "Viết đánh giá";
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #33479d;
}

/* FILE LABEL STYLE */
#crp-form input[type="file"]::file-selector-button {
  background: #33479d;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 10px;
  cursor: pointer;
}
/*Review*/
.crp-header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  color: #33479d;
}
.crp-header ul li img {
  width: 80px;
  height: 80px;
}
.crp-header ul li .verified {
  background: #4caf50;
  padding: 10px 30px;
  color: #ffff;
  font-size: 16px;
  margin-left: 30px;
}

.crp-header ul li .pending {
  background: #ff9800;
  padding: 10px 30px;
  color: #ffff;
  font-size: 16px;
  margin-left: 30px;
}
/* BUTTON LOADING */
#crp-loadmore-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* TEXT LOADING */
.crp-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}
.crp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: crp-spin 0.6s linear infinite;
  margin-right: 6px;
}

@keyframes crp-spin {
  to {
    transform: rotate(360deg);
  }
}
/* MOBILE */
@media (max-width: 768px) {
  .crp-form-box {
    width: 95%;
    padding: 20px;
  }
}
