/* ================================
   Amazon-Style WooCommerce Reviews
   Updated CSS (v2)
   ================================ */

/* --- Container & layout --- */
#review-form,
form.comment-form {
  max-width: 100%;
  margin: 30px auto 60px;
  background: #fff;
  border-radius: 8px;
  font-family: "Amazon Ember", Arial, sans-serif;
}

/* --- Header area (product image + title) --- */
.aswr-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.aswr-product-thumb {
  width: 67px;
    height: 67px;
    border-radius: 6px;
    object-fit: cover;
    background: #fafafa;
}

.aswr-product-title {
    color: var(--the7-h2-color);
    font: var(--the7-h2-font);
    text-transform: var(--the7-h2-text-transform);
    letter-spacing: var(--the7-h2-letter-spacing);
    word-spacing: var(--the7-h2-word-spacing);
    text-decoration: var(--the7-h2-text-decoration);
    break-inside: avoid;
    font: var(--the7-h4-font);
    text-transform: var(--the7-h4-text-transform);
    text-align: left;
    display: block;
}

.aswr-header-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #111;
  margin-bottom: 0 !important;
}

.aswr-product-title {
  font-size: 14px;
  color: #565959;
  margin-top: 4px;
}

/* --- Star rating UI --- */
.aswr-star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.aswr-star {
  font-size: 50px;
  color: #ccc;
  color: #f94d00;
  cursor: pointer;
  transition: transform 0.08s ease, color 0.15s ease;
}

.aswr-star.hover,
.aswr-star.full {
  color: #ffa41c;
  transform: translateY(-2px);
}

/* --- Review textarea --- */
.comment-form-comment label {
  display: none;
}

label[for="aswr-review-text"] {
    display: block !important;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
  background-color: #fff;
  color: #0f1111;
  box-sizing: border-box;
}

.comment-form-comment textarea:focus {
  outline: none;
  /*border-color: #ffa41c;
  box-shadow: 0 0 0 2px rgba(255, 164, 28, 0.25);*/
}

/* --- Review title field --- */
.aswr-title-field {
  margin-top: 20px;
}

.aswr-title-field label {
  font-weight: 700;
    font-size: 14px;
    color: #0f1111 !important;
    display: block;
    margin-bottom: 6px;
}

.aswr-title-field input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.aswr-title-field input[type="text"]:focus {
  outline: none;
  /*border-color: #ffa41c;
  box-shadow: 0 0 0 2px rgba(255, 164, 28, 0.25);*/
}

/* --- Photo upload field --- */
.aswr-photos-field {
  margin-top: 20px;
}

.aswr-photos-field label {
  font-weight: 700;
    font-size: 14px;
    color: #0f1111 !important;
  display: block;
  margin-bottom: 6px;
}

.aswr-photos-field input[type="file"] {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.aswr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.aswr-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
}

/* --- Submit button --- */
.comment-form .form-submit {
  margin-top: 30px;
  text-align: left;
}

.comment-form input[type="submit"],
.comment-form #submit {
  background-color: #f94d00;
  border: 1px solid #f94d00;
  border-radius: 24px;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 28px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.comment-form input[type="submit"]:hover {
  background-color: #f7ca00;
  transform: translateY(-1px);
}

/* --- Review display area --- */
.aswr-review-title {
  font-weight: 600;
  font-size: 16px;
  color: #0f1111;
  margin-bottom: 4px;
}

.aswr-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.aswr-review-photos .aswr-photo-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
}

/* --- Rating display on comments --- */
.aswr-rating-display {
  margin-bottom: 6px;
}

.aswr-rating-display .aswr-star {
  color: #ffa41c;
  font-size: 18px;
}
/* --- Amazon-style upload box --- */
.aswr-photos-field {
  margin-top: 24px;
}

.aswr-photos-field label {
  font-weight: 600;
  font-size: 14px;
  color: #0f1111;
  display: block;
  margin-bottom: 8px;
}

/* Upload box container */
.aswr-upload-box {
  position: relative;
  border: 2px dashed #d5d9d9;
  border-radius: 8px;
  background-color: #fafafa;
  text-align: center;
  padding: 28px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hidden file input */
.aswr-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Placeholder text + icon */
.aswr-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #565959;
  font-size: 14px;
  pointer-events: none;
}

.aswr-camera-icon {
  color: #9b9b9b;
}

/* Hover effect */
.aswr-upload-box:hover {
  background-color: #f7fafa;
  border-color: #aab7b8;
}

/* Preview thumbnails */
.aswr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.aswr-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
}

div#aswr-review-count {
    color: var(--the7-h2-color);
    font: var(--the7-h2-font);
    text-transform: var(--the7-h2-text-transform);
    letter-spacing: var(--the7-h2-letter-spacing);
    word-spacing: var(--the7-h2-word-spacing);
    text-decoration: var(--the7-h2-text-decoration);
    break-inside: avoid;
    font: var(--the7-h4-font);
    text-transform: var(--the7-h4-text-transform);
    text-align: left;
    margin-bottom: 40px !important;
    display: block;
}

.aswr-review {
    margin-bottom: 20px !important;
    width: 100%;
    padding: 0 0 0 0;
    list-style: none;
    grid-template-columns: 60px auto;
    grid-column-gap: 20px;
    display: grid;
    grid-template-areas: "thumb text";
    padding: 20px;
    border: none;
    color: var(--the7-base-color);
    background-color: var(--the7-content-boxes-bg);
}

.aswr-review-avatar {
    margin: 0 0px 15px 0px;
    object-fit: contain;
    align-self: flex-start;
    border-radius: 50%;
}

.aswr-review-avatar img.avatar {
    border-radius: 50%;
    width: 63px;
}

.aswr-review-content {
    width: 100%;
}

span.aswr-rating {
    color: #f94d00;
    font-size: 27px;
}

h4.aswr-review-title {
    display: none;
}

.aswr-review-content p {
    margin: 15px 0 15px;
	font-size: 20px;
}

.aswr-review-content strong {
    margin-top: 6px;
    display: inline-block;
    margin-right: 15px;
}

.aswr-review-media {
    margin-bottom: 20px;
}

.aswr-review-media img {
    width: 50%;
}

.aswr-product-title {
    color: var(--the7-h2-color);
    font: var(--the7-h2-font);
    text-transform: var(--the7-h2-text-transform);
    letter-spacing: var(--the7-h2-letter-spacing);
    word-spacing: var(--the7-h2-word-spacing);
    text-decoration: var(--the7-h2-text-decoration);
    break-inside: avoid;
    font: var(--the7-h4-font);
    text-transform: var(--the7-h4-text-transform);
    text-align: left;
    display: block;
}

.aswr-review:last-child {
    margin-bottom: 0 !important;
}