/* RBT-PRODUCT-REVIEWS-001
   PrestaShop 9.1.5 / Panda / stproductcomments
   Robotimall LAB - Child Theme only
*/

body#product .tab-content .st_product_comment_wrap,
body#product .tab-content .pccomment_block {
  direction: rtl;
  color: #344054;
}

/* Main review area */
body#product .tab-content .st_product_comment_wrap {
  padding: 8px 0 24px;
}

body#product .tab-content .st_product_comment_wrap h3,
body#product .tab-content .st_product_comment_wrap h4 {
  color: #253041;
  font-weight: 700;
  line-height: 1.7;
}

/* Review form card */
body#product .tab-content .st_product_comment_wrap form {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: 0 3px 14px rgba(0,0,0,.025);
}

/* Rating criteria */
body#product .tab-content .criterions_list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
}

body#product .tab-content .criterions_list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 12px 16px;
  border: 1px solid #e9edf2;
  border-radius: 8px;
  background: #f8f9fb;
}

body#product .tab-content .criterion_name {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

/* Fields */
body#product .tab-content .st_product_comment_wrap
.form-group.row {
  display: grid;
  grid-template-columns: minmax(125px, 185px) minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin: 0 0 18px !important;
}

body#product .tab-content .st_product_comment_wrap
.form-group.row > .col-md-2 {
  width: 100%;
  max-width: 100%;
  padding: 10px 0;
  text-align: right;
}

body#product .tab-content .st_product_comment_wrap
.form-group.row > .col-md-8 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

body#product .tab-content .st_product_comment_wrap
.form-control-label {
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

body#product .tab-content .st_product_comment_wrap
:is(input.form-control, textarea.form-control, select.form-control) {
  width: 100%;
  background: #fff;
  color: #344054;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

body#product .tab-content .st_product_comment_wrap
:is(input.form-control, textarea.form-control, select.form-control):focus {
  outline: none;
  border-color: #d52b35;
  box-shadow: 0 0 0 3px rgba(213,43,53,.08);
}

body#product .tab-content .st_product_comment_wrap
textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.9;
}

/* Image upload */
body#product .tab-content #st_product_comment_uploader {
  min-height: 105px;
  background: #f8f9fb;
  border: 2px dashed #d9dee7;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: background .2s, border-color .2s;
}

body#product .tab-content #st_product_comment_uploader:hover {
  background: #fff8f8;
  border-color: #d52b35;
}

body#product .tab-content #st_product_comment_uploader
.dz-message {
  color: #667085;
  font-size: 13px;
  line-height: 1.9;
}

/* Submit button */
body#product .tab-content #st_product_comment_submit {
  min-height: 44px;
  padding: 10px 28px;
  background: #d52b35 !important;
  border: 1px solid #d52b35 !important;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  transition: background .2s;
}

body#product .tab-content #st_product_comment_submit:hover {
  background: #ba202b !important;
  border-color: #ba202b !important;
}

/* Review summary - based on Takhsha structure */
body#product .tab-content .pccomment_block .pcomments_header {
  direction: rtl;
  background: #f8f9fb;
  border: 1px solid #e9edf2;
  border-right: 3px solid #d52b35;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,.025);
}

body#product .tab-content .pcomments_header
> .flex_box:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

body#product .tab-content .pcomments_header
.general_right_border {
  color: #d52b35;
  font-size: 23px;
  font-weight: 800;
  border: 0;
}

body#product .tab-content .pcomments_header
.pcomments_score {
  width: 100%;
  max-width: 430px;
}

body#product .tab-content .pcomments_header
.pc_progress {
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #e9edf2;
}

body#product .tab-content .pcomments_header
.pc_progress .progress-bar {
  height: 9px !important;
  border-radius: 20px;
  background: #d52b35;
}

/* Review filter bar */
body#product .tab-content #js_pcomments_filter {
  direction: rtl;
  margin-bottom: 20px;
  background: #f8f9fb;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  padding: 14px 16px;
}

body#product .tab-content #js_pcomments_filter
> .flex_container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 767px) {
  body#product .tab-content .st_product_comment_wrap form {
    padding: 16px;
    border-radius: 9px;
  }

  body#product .tab-content .st_product_comment_wrap
  .form-group.row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 15px !important;
  }

  body#product .tab-content .st_product_comment_wrap
  .form-group.row > .col-md-2,
  body#product .tab-content .st_product_comment_wrap
  .form-group.row > .col-md-8 {
    grid-column: 1;
    padding: 0;
  }

  body#product .tab-content .criterions_list {
    flex-direction: column;
    gap: 10px;
  }

  body#product .tab-content .criterions_list > li {
    margin: 0 !important;
    padding: 10px 12px;
  }

  body#product .tab-content .pccomment_block .pcomments_header {
    padding: 16px;
  }
}
/* END RBT-PRODUCT-REVIEWS-001 */
/* RBT-REVIEWS-TAG-WIDTH-001 */
body#product .tab-content .st_product_comment_wrap
.tag-wrap {
  min-width: 0;
}

body#product .tab-content .st_product_comment_wrap
.tag-wrap input.tm-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* END RBT-REVIEWS-TAG-WIDTH-001 */
CSS

echo "SUCCESS: Review tag input width updated"
