/* =========================================================
   CUSTOMER REVIEWS
========================================================= */

.tmkm-reviews-page {
    background: #f7f7f8;
    color: #191919;
    padding: 60px 20px 80px;
}

.tmkm-review-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.tmkm-review-header {
    max-width: 760px;
    margin-bottom: 35px;
}

.tmkm-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a40018;
}

.tmkm-review-header h1 {
    margin: 0 0 15px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: #111;
}

.tmkm-review-header p {
    margin: 0;
    max-width: 680px;
    font-size: 17px;
    line-height: 1.7;
    color: #5d5d62;
}


/* =========================================================
   SUMMARY
========================================================= */

.tmkm-rating-summary {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 45px;
    align-items: center;
    padding: 32px;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e8e8ea;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}

.tmkm-rating-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tmkm-average {
    font-size: 64px;
    line-height: 1;
    color: #111;
}

.tmkm-big-stars,
.tmkm-review-stars {
    display: flex;
    gap: 3px;
}

.tmkm-big-stars span,
.tmkm-review-stars span {
    color: #d5d5d8;
}

.tmkm-big-stars span.active,
.tmkm-review-stars span.active {
    color: #e8a400;
}

.tmkm-big-stars {
    font-size: 23px;
}

.tmkm-rating-main p {
    margin: 7px 0 0;
    color: #6a6a70;
}


/* =========================================================
   BARS
========================================================= */

.tmkm-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmkm-rating-row {
    display: grid;
    grid-template-columns: 38px 1fr 35px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.tmkm-bar {
    height: 8px;
    overflow: hidden;
    background: #ececef;
    border-radius: 20px;
}

.tmkm-bar span {
    display: block;
    height: 100%;
    background: #a40018;
    border-radius: inherit;
}


/* =========================================================
   BUTTON
========================================================= */

.tmkm-primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: #a40018;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.tmkm-primary-button:hover {
    background: #7d0012;
    transform: translateY(-1px);
}

.tmkm-primary-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* =========================================================
   TRUST
========================================================= */

.tmkm-review-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.tmkm-review-trust > div {
    padding: 20px;
    background: #fff;
    border: 1px solid #e6e6e9;
    border-radius: 12px;
}

.tmkm-review-trust strong {
    color: #146c43;
}

.tmkm-review-trust p {
    margin: 8px 0 0;
    color: #68686d;
    line-height: 1.55;
    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.tmkm-review-form-section {
    scroll-margin-top: 30px;
    margin-bottom: 45px;
}

.tmkm-review-form-section[hidden] {
    display: none !important;
}

.tmkm-form-card {
    padding: 35px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
}

.tmkm-form-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tmkm-form-heading h2 {
    margin: 0;
    font-size: 30px;
}

#tmkm-close-review {
    width: 40px;
    height: 40px;
    border: 0;
    background: #f1f1f3;
    border-radius: 50%;
    cursor: pointer;
    font-size: 25px;
}

.tmkm-form-intro {
    margin: 12px 0 28px;
    color: #67676c;
}

.tmkm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tmkm-field {
    margin-bottom: 22px;
}

.tmkm-field label,
.tmkm-display-choice legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.tmkm-field input,
.tmkm-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d5d5d9;
    border-radius: 8px;
    background: #fff;
    color: #1b1b1d;
    font: inherit;
    outline: none;
}

.tmkm-field textarea {
    resize: vertical;
}

.tmkm-field input:focus,
.tmkm-field textarea:focus {
    border-color: #a40018;
    box-shadow: 0 0 0 3px rgba(164, 0, 24, .08);
}

.tmkm-field small {
    display: block;
    margin-top: 6px;
    color: #77777c;
}


/* =========================================================
   STAR INPUT
========================================================= */

.tmkm-star-input {
    display: flex;
    gap: 5px;
}

.tmkm-star {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d3d3d7;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.tmkm-star:hover,
.tmkm-star.selected {
    color: #e8a400;
}


/* =========================================================
   DISPLAY CHOICE
========================================================= */

.tmkm-display-choice {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #e0e0e4;
    border-radius: 9px;
}

.tmkm-display-choice label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 25px;
}

.tmkm-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 22px;
    line-height: 1.5;
}


/* =========================================================
   HONEYPOT
========================================================= */

.tmkm-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   FORM MESSAGES
========================================================= */

#tmkm-form-message {
    margin-bottom: 15px;
}

.tmkm-form-success,
.tmkm-form-error {
    padding: 13px 15px;
    border-radius: 7px;
    font-size: 14px;
}

.tmkm-form-success {
    background: #e9f7ef;
    color: #146c43;
}

.tmkm-form-error {
    background: #fdeced;
    color: #9d1722;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.tmkm-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.tmkm-section-title h2 {
    margin: 0;
    font-size: 30px;
}

.tmkm-sort-label {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e3e3e6;
    border-radius: 7px;
    color: #65656a;
    font-size: 13px;
}


/* =========================================================
   REVIEW CARDS
========================================================= */

.tmkm-review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tmkm-review-card {
    padding: 27px;
    background: #fff;
    border: 1px solid #e5e5e8;
    border-radius: 14px;
}

.tmkm-review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.tmkm-review-person {
    display: flex;
    gap: 13px;
    align-items: center;
}

.tmkm-review-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #a40018;
    color: #fff;
    font-weight: 800;
}

.tmkm-review-person h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.tmkm-review-card time {
    color: #7c7c81;
    font-size: 13px;
}


/* =========================================================
   BADGES
========================================================= */

.tmkm-verified-badge,
.tmkm-email-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.tmkm-verified-badge {
    background: #e7f6ee;
    color: #146c43;
}

.tmkm-email-badge {
    background: #f1f1f3;
    color: #55555a;
}


/* =========================================================
   REVIEW CONTENT
========================================================= */

.tmkm-review-stars {
    margin: 17px 0 10px;
    font-size: 20px;
}

.tmkm-review-content {
    color: #39393d;
    font-size: 16px;
    line-height: 1.7;
}

.tmkm-review-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LIKED
========================================================= */

.tmkm-liked {
    margin-top: 18px;
    padding: 15px;
    background: #f8f8f9;
    border-radius: 8px;
}

.tmkm-liked strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.tmkm-liked p {
    margin: 0;
    line-height: 1.6;
}


/* =========================================================
   OWNER RESPONSE
========================================================= */

.tmkm-owner-response {
    margin-top: 18px;
    padding: 17px 18px;
    border-left: 3px solid #a40018;
    background: #faf4f5;
}

.tmkm-owner-response strong {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #810013;
}

.tmkm-owner-response p {
    margin: 0;
    line-height: 1.65;
}


/* =========================================================
   PAGINATION
========================================================= */

.tmkm-review-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.tmkm-review-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #dddde1;
    border-radius: 7px;
    color: #333;
    text-decoration: none;
}

.tmkm-review-pagination .current {
    background: #a40018;
    border-color: #a40018;
    color: #fff;
}


/* =========================================================
   TRANSPARENCY
========================================================= */

.tmkm-transparency {
    max-width: 800px;
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid #dddde0;
}

.tmkm-transparency h2 {
    margin-top: 0;
}

.tmkm-transparency p {
    color: #5f5f64;
    line-height: 1.75;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .tmkm-rating-summary {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tmkm-summary-action .tmkm-primary-button {
        width: 100%;
    }

    .tmkm-review-trust {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .tmkm-reviews-page {
        padding: 35px 14px 60px;
    }

    .tmkm-review-header h1 {
        font-size: 34px;
    }

    .tmkm-rating-summary,
    .tmkm-form-card,
    .tmkm-review-card {
        padding: 20px;
    }

    .tmkm-average {
        font-size: 50px;
    }

    .tmkm-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tmkm-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .tmkm-review-card-header {
        flex-direction: column;
    }

    .tmkm-display-choice label {
        display: flex;
        margin: 10px 0;
    }

    .tmkm-submit-button {
        width: 100%;
    }

}