
.threeph-reviews {
    margin: 28px 0 36px;
    color: #3b434c;
    max-width: 100%;
}

.threeph-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfdfdf;
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
}

.threeph-reviews__summary strong {
    font-weight: 700;
    color: #2f3d4d;
}

.threeph-reviews__stars,
.threeph-reviews-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.threeph-reviews-star {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.threeph-reviews-star.is-filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f0b12f' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.threeph-reviews-star.is-outline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z' fill='none' stroke='%23f0b12f' stroke-width='1.75' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.threeph-reviews__score,
.threeph-reviews__score-label,
.threeph-reviews__count {
    color: #43484f;
}

.threeph-reviews__toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 350px) minmax(0, 1fr);
    gap: 30px 40px;
    align-items: start;
    margin-bottom: 30px;
}

.threeph-reviews__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    max-width: 100%;
    min-height: 64px;
    padding: 14px 24px;
    border: 3px solid #1d355b;
    border-radius: 10px;
    background: #fff;
    color: #1d355b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.threeph-reviews__button:hover,
.threeph-reviews__button:focus {
    background: #1d355b;
    color: #fff;
}

.threeph-reviews__note {
    max-width: 900px;
    color: #5e6570;
    font-size: 16px;
    line-height: 1.68;
}

.threeph-reviews__note p {
    margin: 0 0 6px;
}

.threeph-reviews__note p:last-child {
    margin-bottom: 0;
}

.threeph-reviews__grid {
    column-count: 2 !important;
    column-gap: 30px;
    column-fill: balance;
}


.threeph-reviews__empty {
    border: 1px solid #ddd6cd;
    background: #f4f0ea;
    padding: 26px 28px;
}

.threeph-reviews__load-more {
    padding: 8px 0 4px;
}

.threeph-reviews__load-more-sentinel {
    height: 1px;
}

.threeph-reviews__load-more-status {
    min-height: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.threeph-reviews-card {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 30px;
    padding: 28px 32px 24px;
    border: 1px solid #ddd6cd;
    background: #f4f0ea;
    color: #333;
    overflow: hidden;
}

.threeph-reviews-card__header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    margin-bottom: 18px;
}

.threeph-reviews-card__quote {
    flex: 0 0 auto;
    display: inline-block;
    width: 32px;
    height: 22px;
    margin-top: 3px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%239f9f9f' d='M24.4 0C11.3 0 0 10.7 0 23.6C0 32.7 5.7 40 13.7 40c5.9 0 10.7-4.6 10.7-10.3c0-5.6-4.6-10.1-10.2-10.1c-0.9 0-1.6 0.1-2.4 0.3c1.4-5.5 6.5-9.7 12.6-9.7V0zM59.9 0C46.8 0 35.5 10.7 35.5 23.6C35.5 32.7 41.2 40 49.2 40c5.9 0 10.7-4.6 10.7-10.3c0-5.6-4.6-10.1-10.2-10.1c-0.9 0-1.6 0.1-2.4 0.3c1.4-5.5 6.5-9.7 12.6-9.7V0z'/%3E%3C/svg%3E");
}

.threeph-reviews-card__title {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    flex: 1 1 auto;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.22;
    color: #333;
}

.threeph-reviews-card__body.has-photo {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.threeph-reviews-card__photo {
    flex: 0 0 110px;
    max-width: 110px;
}

.threeph-reviews-card__photo-img {
    display: block;
    width: 110px;
    height: auto;
    border: 1px solid #d7d7d7;
    background: #fff;
}

.threeph-reviews-card__content {
    min-width: 0;
    flex: 1 1 auto;
}

.threeph-reviews-card__text {
    font-size: 16px;
    line-height: 1.62;
    color: #333;
}

.threeph-reviews-card__project-link {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    color: #53565a;
}


.threeph-reviews-card__project-link a {
    color: #6987c2;
    text-decoration: none;
    word-break: normal;
}

.threeph-reviews-card__footer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.threeph-reviews-card__rating {
    font-size: 27px;
    line-height: 1;
}

.threeph-reviews-card__author {
    font-size: 16px;
    color: #4d4d4d;
}

.threeph-reviews-modal-open {
    overflow: hidden;
}

.threeph-reviews-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

.threeph-reviews-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.threeph-reviews-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100vw - 48px)) !important;
    max-width: 680px !important;
    max-height: calc(100vh - 48px);
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
    overflow-y: auto;
}

.threeph-reviews-modal__content {
    padding: 22px 24px 24px;
}

.threeph-reviews-modal__title {
    margin: 0 42px 22px 0;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.08;
    color: #000;
    text-align: center;
}

.threeph-reviews-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.threeph-reviews-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.threeph-reviews-form__field {
    margin-bottom: 12px;
}

.threeph-reviews-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #444;
}

.threeph-reviews-form__required {
    color: #ff2b2b;
}

.threeph-reviews-form__input,
.threeph-reviews-form__textarea {
    width: 100%;
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    padding: 9px 12px;
    box-sizing: border-box;
}

.threeph-reviews-form__file-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    padding: 0;
    box-sizing: border-box;
}

.threeph-reviews-form__textarea {
    min-height: 118px;
    resize: vertical;
}

.threeph-reviews-form__input.is-invalid,
.threeph-reviews-form__textarea.is-invalid,
.threeph-reviews-form__file-input.is-invalid {
    border-color: #d63638;
}

.threeph-reviews-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.threeph-reviews-rating__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    cursor: pointer;
}

.threeph-reviews-rating__star .threeph-reviews-star {
    width: 32px;
    height: 32px;
}

.threeph-reviews-rating__star.is-active .threeph-reviews-star {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f0b12f' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.threeph-reviews-form__hint {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: #5f6975;
    font-style: italic;
}

.threeph-reviews-form__error {
    margin-top: 4px;
    color: #d63638;
    font-size: 12px;
    line-height: 1.4;
}

.threeph-reviews-form__messages {
    margin: 12px 0 0;
    padding: 0;
    min-height: 22px;
    font-size: 15px;
    line-height: 1.45;
}

.threeph-reviews-form__messages.is-success {
    color: #0a7a35;
}

.threeph-reviews-form__messages.is-error {
    color: #d63638;
}

.threeph-reviews-form__actions {
    margin-top: 12px;
}

.threeph-reviews-form__submit {
    border: 0;
    background: #1d355b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 18px;
    min-height: 40px;
    cursor: pointer;
    text-transform: uppercase;
}

.threeph-reviews-form__submit[disabled] {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 1100px) {
    .threeph-reviews-card {
        padding: 24px 26px 22px;
    }

    .threeph-reviews-modal__content {
        padding: 28px 32px 32px;
    }

    .threeph-reviews-modal__title {
        font-size: 40px;
    }
}

@media (max-width: 980px) {
    .threeph-reviews__toolbar {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .threeph-reviews__button {
        width: 100%;
        max-width: 340px;
    }


    .threeph-reviews-card {
        padding: 22px 22px 20px;
    }

    .threeph-reviews-card__title {
        font-size: 23px;
    }

    .threeph-reviews-modal {
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .threeph-reviews-card__body.has-photo {
        display: block;
    }

    .threeph-reviews-card__photo {
        margin-bottom: 16px;
    }
}

@media (max-width: 782px) {
    .threeph-reviews {
        margin-top: 20px;
    }

    .threeph-reviews__summary {
        justify-content: flex-start;
        text-align: left;
        font-size: 16px;
    }

    .threeph-reviews__grid {
        column-count: 1 !important;
        column-gap: 0;
    }

    .threeph-reviews__button {
        width: 100%;
        max-width: none;
        min-height: 58px;
        font-size: 16px;
    }

    .threeph-reviews-card {
        padding: 20px 18px 18px;
    }
    .threeph-reviews-card__header {
        margin-bottom: 14px;
    }

    
    .threeph-reviews-card__title {
        font-size: 20px;
    }

    .threeph-reviews-card__text,
    .threeph-reviews__note,
    .threeph-reviews-form__label,
    .threeph-reviews-form__input,
    .threeph-reviews-form__textarea,
    .threeph-reviews-form__file-input {
        font-size: 15px;
    }

    .threeph-reviews-card__photo,
    .threeph-reviews-card__photo-img {
        width: 94px;
        max-width: 94px;
    }

    .threeph-reviews-card__rating {
        font-size: 24px;
    }

    .threeph-reviews-modal {
        padding: 8px;
    }

    .threeph-reviews-modal__dialog {
        max-height: calc(100vh - 16px);
    }

    .threeph-reviews-modal__content {
        padding: 16px 14px 18px;
    }

    .threeph-reviews-modal__title {
        margin: 0 36px 14px 0;
        font-size: 28px;
        text-align: left;
    }

    .threeph-reviews-modal__close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .threeph-reviews-rating__star {
        width: 32px;
        height: 32px;
    }

    .threeph-reviews-rating__star .threeph-reviews-star {
        width: 24px;
        height: 24px;
    }

    .threeph-reviews-form__textarea {
        min-height: 104px;
    }
}

/* v0.5.2 compact modal */
.threeph-reviews-modal {
    padding: 24px 12px !important;
}

.threeph-reviews-modal__dialog {
    width: min(760px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 48px) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
}

.threeph-reviews-modal__content {
    padding: 26px 34px 30px !important;
}

.threeph-reviews-modal__title {
    margin: 0 48px 22px 0 !important;
    font-size: 34px !important;
    line-height: 1.12 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

.threeph-reviews-modal__close {
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 30px !important;
    line-height: 1 !important;
}

.threeph-reviews-form__field {
    margin-bottom: 14px !important;
}

.threeph-reviews-form__label {
    margin-bottom: 6px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

.threeph-reviews-form__input,
.threeph-reviews-form__textarea {
    font-size: 15px !important;
    line-height: 1.35 !important;
    padding: 9px 12px !important;
}

.threeph-reviews-form__input {
    min-height: 40px !important;
}

.threeph-reviews-form__textarea {
    min-height: 118px !important;
    rows: 4;
}

.threeph-reviews-rating {
    gap: 6px !important;
}

.threeph-reviews-rating__star {
    width: 34px !important;
    height: 34px !important;
    line-height: 1 !important;
}

.threeph-reviews-rating__star .threeph-reviews-star {
    width: 28px !important;
    height: 28px !important;
}

.threeph-reviews-form__file-input {
    font-size: 14px !important;
}

.threeph-reviews-form__hint,
.threeph-reviews-form__error,
.threeph-reviews-form__messages {
    font-size: 13px !important;
}

.threeph-reviews-form__actions {
    margin-top: 14px !important;
}

.threeph-reviews-form__submit {
    min-height: 42px !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
}

@media (max-width: 782px) {
    .threeph-reviews-modal {
        padding: 8px !important;
    }

    .threeph-reviews-modal__dialog {
        width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px) !important;
    }

    .threeph-reviews-modal__content {
        padding: 18px 16px 22px !important;
    }

    .threeph-reviews-modal__title {
        margin: 0 42px 18px 0 !important;
        font-size: 28px !important;
        text-align: left !important;
    }

    .threeph-reviews-modal__close {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 24px !important;
    }

    .threeph-reviews-rating__star {
        width: 32px !important;
        height: 32px !important;
    }

    .threeph-reviews-rating__star .threeph-reviews-star {
        width: 24px !important;
        height: 24px !important;
    }
}


/* v0.5.4: compact rating stars and plain modal close button */
.threeph-reviews-rating {
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
}

.threeph-reviews-rating__star {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    letter-spacing: 0 !important;
}

.threeph-reviews-modal__close,
.threeph-reviews-modal__close:hover,
.threeph-reviews-modal__close:focus {
    width: 34px !important;
    height: 34px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    line-height: 34px !important;
    text-align: center !important;
}

.threeph-reviews__stars .threeph-reviews-star {
    width: 22px;
    height: 22px;
}

@media (max-width: 782px) {
    .threeph-reviews__stars .threeph-reviews-star {
        width: 20px;
        height: 20px;
    }

    .threeph-reviews-card__rating .threeph-reviews-star {
        width: 30px;
        height: 30px;
    }
}


.threeph-reviews-form__turnstile {
    margin-top: 4px;
}

.threeph-reviews-form__turnstile iframe {
    max-width: 100%;
}


/* v0.8.8: centered success message after review submission */
.threeph-reviews-success-popup {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.threeph-reviews-success-popup[hidden] {
    display: none !important;
}

.threeph-reviews-success-popup__inner {
    width: min(420px, calc(100vw - 40px));
    padding: 22px 28px;
    border: 1px solid #b9dfc4;
    border-radius: 12px;
    background: #e9f7ee;
    color: #1f5d35;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
    text-align: center;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
}

@media (max-width: 782px) {
    .threeph-reviews-success-popup__inner {
        padding: 18px 20px;
        font-size: 16px;
    }
}


.threeph-reviews--single-card {
    margin: 0;
}

.threeph-reviews--single-card .threeph-reviews-card {
    margin-bottom: 0;
}


/* v1.0.5: force card title/text colors over theme dark styles */
.threeph-reviews .threeph-reviews-card__title,
.threeph-reviews .threeph-reviews-card__title a,
.threeph-reviews-card .threeph-reviews-card__title,
.threeph-reviews-card .threeph-reviews-card__title a {
    color: #333 !important;
}

.threeph-reviews .threeph-reviews-card__text,
.threeph-reviews-card .threeph-reviews-card__text {
    color: #333 !important;
}


/* v1.0.6: fix modal close button position */
.threeph-reviews-modal__dialog {
    position: relative;
}

.threeph-reviews-modal__close {
    position: absolute !important;
    top: 22px !important;
    right: 26px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 28px !important;
    z-index: 3 !important;
}

@media (max-width: 782px) {
    .threeph-reviews-modal__close {
        top: 16px !important;
        right: 18px !important;
    }
}

@media (max-width: 782px) {
    .threeph-reviews-card__header {
        gap: 9px;
    }

    .threeph-reviews-card__quote {
        width: 28px;
        height: 19px;
        margin-top: 2px;
    }
}


.threeph-reviews-form__field--consent {
    margin-top: 14px;
}

.threeph-reviews-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

.threeph-reviews-form__consent-input {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.threeph-reviews-form__consent-input.is-invalid {
    outline: 1px solid #d63638;
    outline-offset: 2px;
}

.threeph-reviews-form__consent-text {
    display: block;
}

.threeph-reviews-form__consent-text a {
    white-space: nowrap;
}

@media (max-width: 782px) {
    .threeph-reviews-form__consent {
        font-size: 12px;
        line-height: 1.45;
    }
}
