/* =========================================================
   REVIEWS MODULE
   Petitek Review System
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   EMBED BADGE
========================================================= */
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    font-family: Arial, Helvetica, sans-serif;
}

.rating-number,
.review-count {
    font-size: 15px;
    line-height: 1;
}

.rating-number {
    color: #111;
}

.review-count {
    color: #2a3e8f;
    text-decoration: none;
}

.stars-wrap {
  position: relative;
  display: inline-block;
  width: 94px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 1px;
}

.stars-wrap {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  vertical-align: middle;
}

.stars-bg {
  color: #d5d9d9;
}

.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  color: #f59e0b;
  overflow: hidden;
  white-space: nowrap;
  width: var(--star-fill);
  max-width: 100%;
}


.embed-stars{
  display:inline-block !important;
  color:#f59e0b !important;
  font-size:18px !important;
  line-height:1 !important;
  letter-spacing:1px !important;
  font-family:Arial, Helvetica, sans-serif !important;
  white-space:nowrap !important;
}

/* =========================================================
   FULL REVIEW PAGE LAYOUT
========================================================= */

.reviews-shell {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}


/* =========================================================
   REVIEW HEADER
========================================================= */

.reviews-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.reviews-score-row {

    display: flex;

    align-items: center;

    gap: 8px;
}

.review-stars {

    color: #f59e0b;

    font-size: 1.35rem;

    letter-spacing: 0;

    -webkit-text-stroke: .4px #b45309;

    vertical-align: middle;
}

.review-score {

    font-size: 1.3rem;

    font-weight: 500;
}

.review-count-text {
    color: #555;
    margin-top: 6px;
}

/* =========================================================
   FEATURED REVIEW
========================================================= */

.featured-review {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

.featured-label {
    color: #5EBCBC;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}

.featured-review-body {
    line-height: 1.55;
}

.featured-review-body.collapsed {
    max-height: 8em;
    overflow: hidden;
}

.featured-read-more-btn {
    border: none;
    background: none;
    padding: 0;
    margin-top: 10px;
    color: #007185;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   RATING DISTRIBUTION BARS
========================================================= */

.rating-bars {
    margin-top: 24px;
}

.rating-bar-row {

    display: grid;

    grid-template-columns:
        60px
        1fr
        50px;

    gap: 10px;

    align-items: center;

    margin-bottom: 10px;
}

.rating-bar-row div {

    height: 18px;

    border: 1px solid #cfcfcf;

    border-radius: 4px;

    overflow: hidden;
}

.rating-bar-row b {

    display: block;

    height: 100%;

    background: #f59e0b;
}


/* =========================================================
   CUSTOMERS SAY
========================================================= */

.customers-say {

    margin-top: 30px;

    padding: 20px;

    border-radius: 12px;

    background: #f8f8f8;
}

.customers-say h2 {
    margin-top: 0;
}


/* =========================================================
   WRITE REVIEW BUTTON
========================================================= */

.write-review-btn {

    display: block;

    margin-top: 24px;

    padding: 14px;

    text-align: center;

    border-radius: 999px;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid #cfcfcf;

    color: #111;

    font-weight: 600;
}


/* =========================================================
   REVIEW LIST
========================================================= */

.review-list {
    margin-top: 40px;
}

.review-list {
    max-width: 850px;
}

/* =========================================================
   REVIEW CARD
========================================================= */

.review-card {

    padding-top: 28px;

    padding-bottom: 28px;

    border-bottom: 1px solid #e5e7eb;
}

.review-card-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    margin-bottom: 16px;
}

.review-avatar {
    grid-column: 1;
    grid-row: 1;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: #e3e6e6;
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 700;
}

.review-person {
    grid-column: 2;
    grid-row: 1;

    font-size: 1rem;
    font-weight: 700;
    margin: 0;

    align-self: center;
}

.review-stars-line {

    grid-column: 2;
    grid-row: 2;

    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: -2px;
}

.review-stars-line {
    grid-column: 2;
    grid-row: 2;

    display: flex;
    align-items: center;
    gap: 5px;
}

.review-user-info {

    grid-column: 2;

    display: block;
}


.verified {
    color: #c45500;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
}

.review-stars-line {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

/* =========================================================
   HELPFUL BUTTON
========================================================= */

.helpful-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 90px;

    padding: 10px 20px;

    border: 1px solid #d5d9d9;

    border-radius: 999px;

    background: #ffffff;

    color: #111111 !important;

    -webkit-text-fill-color: #111111;

    font-size: 14px;

    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    transition: .2s;
}

.helpful-btn:hover {
    background: #f7fafa;
}

.helpful-count {
    color: #565959;
    font-size: .85rem;
    margin-top: 14px;
    margin-bottom: 10px;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 12px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .reviews-shell {
        padding: 16px;
    }

    .reviews-header h1 {
        font-size: 1.75rem;
    }

}

/* =========================================================
   READ MORE
========================================================= */

.review-body {

    font-size: 1rem;

    line-height: 1.6;

    color: #111;
}

.review-body.collapsed {

    display: -webkit-box;

    -webkit-line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.read-more-btn {

    border: none;

    background: none;

    padding: 0;

    margin-top: 8px;

    color: #007185;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   WRITE REVIEW PAGE
========================================================= */

.write-review-page {
    max-width: 700px;
    margin: 0 auto;
}

.write-review-page h1 {
    margin-bottom: 24px;
}

.review-form-label {
    display: block;
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.review-textarea {

    width: 100%;

    min-height: 180px;

    padding: 14px;

    border: 1px solid #d5d9d9;

    border-radius: 8px;

    font-size: 16px;

    resize: vertical;

    box-sizing: border-box;
}


.review-input {

    width: 100%;

    padding: 14px;

    border: 1px solid #d5d9d9;

    border-radius: 8px;

    font-size: 16px;

    box-sizing: border-box;
}

.review-disclaimer {

    margin-top: 20px;

    color: #565959;

    font-size: .9rem;
}


/* =========================================================
  STAR PICKER
========================================================= */

.star-picker {

    display: flex;

    gap: 8px;

    margin-bottom: 24px;
}

.star-picker button {

    border: none;

    background: none;

    padding: 0;

    margin: 0;

    font-size: 42px;

    color: #d5d9d9;

    cursor: pointer;

    line-height: 1;
}

.star-picker button.active {
    color: #f59e0b;
}

/* =========================================================
   SUBMIT REVIEW BUTTON
========================================================= */

.submit-review-btn {

    margin-top: 24px;

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 999px;

    background: #111111;

    color: #ffffff;

    font-weight: 600;

    font-size: 16px;

    cursor: pointer;

    transition: .2s;
}

.submit-review-btn:hover {

    background: #222222;
}

/* =========================================================
   THANK YOU PAGE
========================================================= */

.thank-you-page {

    max-width: 700px;

    margin: 0 auto;

    text-align: center;

    padding-top: 40px;

    padding-bottom: 40px;
}

.thank-you-icon {

    width: 90px;

    height: 90px;

    margin: 0 auto 24px;

    border-radius: 50%;

    background: #5ebcbc;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 42px;

    font-weight: 700;
}

.thank-you-page h1 {

    margin-bottom: 16px;

    font-size: 2rem;
}

.thank-you-message {

    max-width: 520px;

    margin: 0 auto 16px;

    color: #111111;

    line-height: 1.6;
}

.thank-you-note {

    max-width: 420px;

    margin: 0 auto 32px;

    color: #565959;

    line-height: 1.6;
}

.return-reviews-btn {

    display: inline-block;

    min-width: 280px;

    padding: 16px 28px;

    border-radius: 999px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition: .2s;
}

.return-reviews-btn:hover {

    background: #222222;
}


/* =========================================================
   EMBED BADGE
========================================================= */
.review-badge-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}


.review-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

/* =========================================================
   MANAGE REVIEW PAGE
========================================================= */

.manage-review-actions {
    margin-top: 24px;
}

.manage-review-actions .submit-review-btn,
.manage-review-actions .write-review-btn {
    width: 100%;
}

.manage-review-actions form {
    margin-top: 12px;
}

.review-edited {
  margin-top: 6px;
  font-size: .85rem;
  color: #777;
  font-style: italic;
}

/* =========================================================
   REVIEW EDIT FORM
========================================================= */

.review-write-form {
  max-width: 760px;
  margin: 30px auto 0;
}

.review-write-form .form-group {
  margin-bottom: 22px;
}

.review-write-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #222;
}

.review-write-form input,
.review-write-form select,
.review-write-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.review-write-form textarea {
  min-height: 180px;
  resize: vertical;
}

.review-write-form input:focus,
.review-write-form select:focus,
.review-write-form textarea:focus {
  outline: none;
  border-color: #5EBCBC;
  box-shadow: 0 0 0 3px rgba(94,188,188,.15);
}

.review-write-form .submit-review-btn,
.review-write-form .write-review-btn {
  width: 100%;
}

.review-stars-svg{
  display:inline-flex;
  gap:1px;
  vertical-align:middle;
}

.star-svg{
  width:18px;
  height:18px;
  display:block;
}

.star-empty{
  fill:#d5d9d9;
}

.star-filled{
  fill:#f59e0b;
}

.review-stars-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.review-title-inline {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.review-title-below {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}