/* =========================================================
  REVIEW WRAPPER
========================================================= */

.pd-reviews {
    width: 100%;
    padding: 24px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 24px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);

    color: #111;
}


/* =========================================================
  TITLE
========================================================= */

.pd-review-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: #000;
}

.pd-review-heading-line {
    width: 6px;
    height: 20px;

    flex-shrink: 0;

    border-radius: 4px;

    background: #f59e0b;
}


/* =========================================================
  SUMMARY
========================================================= */

.pd-review-summary {
    display: grid;
    grid-template-columns: 3fr 8fr;
    gap: 24px;
    align-items: center;
    padding: 20px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
}


/* Average */

.pd-review-average {
    text-align: center;
}

.pd-review-average-number {
    font-size: 40px;
    line-height: 1;

    font-weight: 700;

    color: #1e293b;
}

.pd-review-average-stars {
    display: flex;

    justify-content: center;

    gap: 2px;

    margin: 8px 0;
}

.pd-review-average-stars svg {
    width: 16px;
    height: 16px;
}

.pd-summary-star {
    font-size: 18px;
    line-height: 1;

    color: #e2e8f0;
}

.pd-summary-star.active {
    color: #f59e0b;
}

.pd-summary-star.active svg {
    fill: #f59e0b;
}

.pd-review-total {
    font-size: 14px;

    font-weight: 700;

    color: #64748b;
}


/* =========================================================
  RATING BREAKDOWN
========================================================= */

.pd-review-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-review-breakdown svg {
    width: 16px;
    height: 16px;
}

.pd-rating-row {
    display: grid;
    grid-template-columns: 14px 25px 1fr 35px;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

.pd-rating-number {
    text-align: right;
}

.pd-rating-star {
    color: #f59e0b;

    font-size: 13px;
}

.pd-rating-bar {
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e2e8f0;
}

.pd-rating-bar-fill {
    height: 100%;

    border-radius: 999px;

    background: #fbbf24;

    transition: width .3s ease;
}

.pd-rating-percent {
    text-align: right;

    color: #94a3b8;

    font-family: monospace;
}


/* =========================================================
  ADD REVIEW
========================================================= */

.pd-review-add {
    margin-top: 24px;
}

.pd-review-form-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pd-review-message-icon {
    font-size: 16px;
}

span.pd-review-message-icon svg {color: #10b981;}


/* Form box */

.pd-review-form-box {
    padding: 20px;

    background: rgba(248, 250, 252, .6);

    border: 1px solid #f1f5f9;

    border-radius: 16px;
}


/* =========================================================
  RATING SELECTOR
========================================================= */

.pd-form-rating {
    margin-bottom: 18px;
}

.pd-form-rating>label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #334155;
}

.pd-rating-selector {
    display: flex;

    align-items: center;

    gap: 2px;
}

.pd-rating-star {
    width: auto;
    height: 32px;
    padding: 2px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #e2e8f0;
    cursor: pointer;
    transition:
        transform .15s ease,
        color .15s ease;
    height: auto !important;
    min-height: unset !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-rating-star:hover, .pd-rating-star.hover, .pd-rating-star.active, .pd-rating-star.active svg, .pd-rating-star.hover svg {
    color: #fbbf24;
    fill: #fbbf24;
}

.pd-rating-star:hover {
    transform: scale(1.15);
}

.pd-rating-current {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.pd-rating-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
}


/* =========================================================
  FORM FIELD
========================================================= */

.pd-form-field {
    margin-bottom: 5px;
}

.pd-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #475569;
}

.pd-required {
    color: #ef4444;
}

.pd-form-field input, .pd-form-field textarea, .pd-reply-input-content {
    display: block;
    width: 100%;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
    font-size: 12px;
}

.pd-form-field input {
    height: 42px!important;
    padding: 0 12px;
    font-size: 12px!important;
}

.pd-form-field textarea {
    min-height: 100px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    resize: vertical;
}

.pd-form-field input::placeholder,
.pd-form-field textarea::placeholder {
    color: #cbd5e1;
}

.pd-form-field input:focus,
.pd-form-field textarea:focus {
    border-color: #94a3b8 !important;

    box-shadow: 0 0 0 2px rgba(148, 163, 184, .12) !important;
}


/* =========================================================
  AUTHOR / EMAIL
========================================================= */

.pd-review-form-box #commentform .comment-form-author,
.pd-review-form-box #commentform .comment-form-email {
    width: 33.333%;

    float: left;

    margin: 0 0 15px;
}

.pd-review-form-box #commentform .comment-form-author {
    padding-right: 6px;
}

.pd-review-form-box #commentform .comment-form-email {
    padding-left: 6px;
}


/* =========================================================
  COOKIE
========================================================= */

.pd-review-form-box .comment-form-cookies-consent {
    display: none !important;
}


/* =========================================================
  SUBMIT
========================================================= */

.pd-review-form-box .form-submit {
    clear: both;

    display: flex;

    justify-content: flex-end;

    margin: 0;
}

.pd-review-form-box .form-submit input[type="submit"] {
    min-width: 145px;
    height: 42px;
    padding: 0 24px;
    border: 0 !important;
    border-radius: 10px !important;
    /* background: #111 !important; */
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: all .2s ease;
    margin: 0;
}

.pd-review-form-box .form-submit input[type="submit"]:hover {
    background: #000 !important;

    transform: translateY(-1px);
}


/* =========================================================
  REVIEW DETAIL
========================================================= */

.pd-review-detail {
    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid #f1f5f9;
}

.pd-review-detail-title {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    /* letter-spacing: .06em; */
}

.comments-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================================================
  COMMENT ITEM
========================================================= */

.pd-comment-item {
    display: flex;
    gap: 12px;
    /* padding-bottom: 20px; */
    /* border-bottom: 1px solid #f1f5f9; */
    /* background: #f1f5f9bf; */
    /* padding: 20px; */
    /* border-radius: 16px; */
}

.pd-comment-avatar {
    flex: 0 0 48px;
}

.pd-comment-avatar-img {
    width: 48px !important;
    height: 48px !important;

    border-radius: 50%;
}

.pd-comment-content {
    flex: 1;

    min-width: 0;
}

.pd-comment-top {
    display: flex;

    justify-content: space-between;

    gap: 15px;
}

.pd-comment-author {
    font-size: 13px;

    font-weight: 700;

    color: #111827;
}

.pd-comment-date {
    flex-shrink: 0;
    font-size: 10px;
    color: #94a3b8;
    font-family: monospace;
}

.pd-comment-verified {
    display: inline-block;

    margin-left: 5px;

    padding: 2px 5px;

    border-radius: 4px;

    background: #ecfdf5;

    color: #059669;

    font-size: 9px;
}


/* =========================================================
  COMMENT RATING
========================================================= */

.pd-comment-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    /* margin-top: 5px; */
}

.pd-comment-rating > .active svg path {
    fill: #fbbf24;
}

.pd-comment-rating svg {
    width: 13px;
    height: 13px;
}

.pd-comment-rating>span:not(.pd-comment-rating-number) {
    font-size: 14px;

    color: #e2e8f0;
}

.pd-comment-rating>span.active {
    color: #fbbf24;
}

.pd-comment-rating-number {
    margin-left: 6px;

    font-size: 10px;

    color: #94a3b8;
}


/* =========================================================
  COMMENT TEXT
========================================================= */

.pd-comment-text {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.pd-comment-text p {
    margin: 0;
}


/* =========================================================
  NO COMMENT
========================================================= */

.pd-no-comments {
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}


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

@media (max-width: 767px) {

    .pd-comment-actions {
        margin-top: 5px!important;
    }
    .tp-comment__head {
        display: block!important;
    }
    .pd-comment-reply-text {
        font-size: 12px!important;
    }

    .pd-tab-pane h3 {
        line-height: 26px;
    }

    .pd-reviews {
        padding: 16px;

        border-radius: 18px;
    }

    .pd-review-heading {
        font-size: 16px;
    }

    .pd-review-summary {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 16px;
    }

    .pd-review-average {
        text-align: center;
    }

    .pd-review-average-number {
        font-size: 26px;
    }

    .pd-review-form-box {
        padding: 20px;
    }

    .pd-review-form-box #commentform .comment-form-author,
    .pd-review-form-box #commentform .comment-form-email {
        width: 100%;

        float: none;

        padding: 0;
    }

    /*.pd-review-form-box .form-submit {
        justify-content: stretch;
    }

    .pd-review-form-box .form-submit input[type="submit"] {
        width: 100%;
    }*/

    .pd-comment-top {
        display: block;
    }

    .pd-comment-date {
        display: block;

        margin-top: 3px;
    }

    .pd-review-form-box .pd-form-field{
        grid-column: 1 / -1 !important;
    }
}

p.stars {
    display: none;
}

.pd-review-form-box h3#reply-title {
    display: none;
}
form#commentform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0;
}

form#commentform > *:not(.pd-form-field), .pd-form-rating{/* grid-row: 2; *//* grid-column: 1; */grid-column: 1 / -1;}

.group-input-field {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 15px;
}

.pd-form-field.pd-form-content {
    /* grid-row: 2; */
    grid-column: 1 / -1;
}
.main-pd-comment {
    border-bottom: 1px solid #f1f5f9;
    background: #f1f5f9bf;
    padding: 20px;
    border-radius: 16px;
}

.pd-comment-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pd-comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fs-color-primary);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.pd-comment-reply-btn:hover {
    color: #1d4ed8;
}

.pd-comment-reply-btn:hover .pd-comment-reply-text {
    text-decoration: underline;
}

.pd-comment-reply-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: block;
}

.pd-comment-reply-text {
    font-weight: 700;
    font-size: 14px;
}


/* ========================================
       REPLY LIST
    ======================================== */

.pd-reply-list {
    margin-top: 12px;
    margin-left: 40px;
    padding-left: 12px;

    border-left: 2px solid #e2e8f0;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ========================================
   REPLY ITEM
======================================== */

.pd-reply-item {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #f1f5f9;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}


/* ========================================
   AVATAR
======================================== */

.pd-reply-avatar {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: #f1f5f9;
}

.pd-reply-avatar-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ========================================
   CONTENT
======================================== */

.pd-reply-content {
    min-width: 0;
    flex: 1;
}


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

.pd-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 3px;
}

.pd-reply-author {
    display: block;
    min-width: 0;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.4;
    /* font-weight: 700; */
}

.pd-reply-date {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 9px;
    line-height: 1.4;
    font-family: monospace;
    font-weight: 700;
}


/* ========================================
   TEXT
======================================== */

.pd-reply-text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    text-align: left;
}


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

@media (max-width: 767px) {

    .pd-reply-list {
        margin-left: 20px;
        padding-left: 10px;
    }

    .pd-reply-item {
        padding: 11px;
        gap: 8px;
    }

    .pd-reply-avatar {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .pd-reply-author {
        font-size: 12px;
    }

    .pd-reply-date {
        font-size: 8px;
    }

    .pd-reply-text {
        font-size: 12px;
    }
}

.pd-review-form-box .pd-form-rating {
    order: 1;
}

.pd-review-form-box .pd-form-field.pd-form-content {
    order: 2;
}

.pd-review-form-box .pd-form-field {
    order: 3;
}


.pd-review-form-box .form-submit {
    order: 5;
}
.comments-list .item-reply {
    padding-left: 40px;
    margin-top: 25px;
}
.title-reply {
    font-size: 14px;
    text-transform: uppercase;
    color: #334155;
}
.pd-reply-form .pd-form-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}

.pd-reply-form .pd-form-field label {
    font-weight: bold;
}

.pd-form-input label {
    font-size: 11px;
}

.pd-reply-form-actions {
    display: flex;
    justify-content: end;
    flex-flow: row-reverse;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-reply-form-actions button {
    margin: 0;
    background: var(--fs-color-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 200;
    padding: 6px 16px;
    text-transform: uppercase;
    min-height: unset;
    height: unset;
    line-height: unset;
}

@media (max-width: 1024px){
    form#commentform {
        column-gap: 15px;
    }
    .pd-rating-star svg {
        width: 28px;
        height: 28px;
    }
    .pd-review-heading {
        font-size: 16px!important;
    }
}


.pd-loadmore-wrap {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .pd-loadmore-btn {
        padding: 3px 21px;
        border: 1px solid var(--fs-color-primary);
        border-radius: 999px;
        background: #fff;
        color: var(--fs-color-primary);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all .15s ease;
        margin: 0;
    }

    .pd-loadmore-btn:hover {
        background: var(--fs-color-primary);
        color: #fff;
    }

    .pd-loadmore-btn:disabled {
        opacity: .6;
        cursor: default;
    }