.pl-reviews-page {
    background: #fff;
}

.pl-reviews-hero {
    padding: 70px 0 45px;
}

.pl-reviews-hero-inner {
    max-width: 1000px;
}

.pl-reviews-hero h1 {
    margin: 12px 0 16px;
}

.pl-reviews-intro {
    max-width: 680px;
    margin: 0;
    color: #5f6b70;
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================
   TOP
========================================================== */

.pl-reviews-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 55px;
}

.pl-reviews-summary,
.pl-reviews-google {
    min-height: 150px;
    padding: 26px;
    border: 1px solid #e4eaec;
    border-radius: 16px;
    background: #fff;
}

.pl-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pl-reviews-score {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    color: #172126;
}

.pl-reviews-summary-content {
    min-width: 0;
}

.pl-reviews-stars {
    color: #f5b301;
    font-size: 21px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.pl-reviews-count {
    margin-top: 8px;
    color: #68757a;
    font-size: 14px;
}


/* ==========================================================
   GOOGLE
========================================================== */

.pl-reviews-google {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pl-reviews-google-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

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

    font-size: 24px;
    font-weight: 800;
}

.pl-reviews-google-content strong {
    display: block;
    font-size: 17px;
}

.pl-reviews-google-content p {
    margin: 5px 0 9px;
    color: #68757a;
    font-size: 14px;
    line-height: 1.5;
}

.pl-reviews-google-link {
    color: #009bad;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pl-reviews-google-link:hover {
    text-decoration: underline;
}


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

.pl-reviews-list {
    max-width: 1100px;
}

.pl-reviews-list-header {
    margin-bottom: 22px;
}

.pl-reviews-list-header h2 {
    margin: 0;
}

.pl-reviews-card {
    padding: 24px 0;
    border-bottom: 1px solid #e6ebed;
}

.pl-reviews-card:first-of-type {
    border-top: 1px solid #e6ebed;
}

.pl-reviews-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pl-reviews-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pl-reviews-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 50%;
    background: #e8f6f7;
    color: #087f8c;

    font-size: 15px;
    font-weight: 800;
}

.pl-reviews-author h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.pl-reviews-author time {
    display: block;
    margin-top: 3px;
    color: #7b878c;
    font-size: 13px;
}

.pl-reviews-card-rating {
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pl-reviews-card-body {
    margin-left: 54px;
    max-width: 900px;
}

.pl-reviews-card-body p {
    margin: 14px 0 0;
    color: #39464b;
    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   EMPTY
========================================================== */

.pl-reviews-empty {
    padding: 40px 0;
    color: #68757a;
}

.pl-reviews-empty h3 {
    margin: 0 0 8px;
    color: #172126;
}


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

.pl-reviews-form-section {
    max-width: 900px;
    margin: 70px 0 90px;
    padding: 34px;
}

.pl-reviews-form-header h2 {
    margin: 10px 0 10px;
}

.pl-reviews-form-header p {
    margin: 0 0 28px;
    color: #68757a;
    line-height: 1.6;
}


/* ==========================================================
   FORM FIELDS
========================================================== */

.pl-reviews-field {
    margin-bottom: 22px;
}

/*
   Важно:
   > label ограничивает общий стиль только прямыми
   label формы и не затрагивает label звёзд рейтинга.
*/

.pl-reviews-field > label,
.pl-reviews-field > legend {
    display: block;
    margin-bottom: 8px;

    color: #172126;
    font-size: 14px;
    font-weight: 700;
}

.pl-reviews-field input[type="text"],
.pl-reviews-field textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d5dfe1;
    border-radius: 10px;

    background: #fff;

    color: #172126;

    font: inherit;

    padding: 13px 14px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.pl-reviews-field input[type="text"]:focus,
.pl-reviews-field textarea:focus {
    border-color: #009bad;
    box-shadow: 0 0 0 3px rgba(0, 155, 173, .12);
}

.pl-reviews-field textarea {
    min-height: 150px;
    resize: vertical;
}

.pl-reviews-field-help {
    margin-top: 6px;
    color: #7b878c;
    font-size: 12px;
}


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

.pl-reviews-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}

.pl-reviews-rating-input input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.pl-reviews-rating-input label {
    display: inline-block;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    color: #cbd3d5;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: color .12s ease;
}

.pl-reviews-rating-input label span[aria-hidden="true"] {
    display: inline;

    margin: 0;
    padding: 0;

    font-size: inherit;
    line-height: inherit;
}

.pl-reviews-rating-input label:hover,
.pl-reviews-rating-input label:hover ~ label,
.pl-reviews-rating-input input:checked ~ label {
    color: #f5b301;
}

.pl-reviews-rating-input input:focus-visible + label {
    outline: 3px solid rgba(0, 155, 173, .25);
    outline-offset: 3px;
    border-radius: 3px;
}


/* ==========================================================
   SCREEN READER ONLY
========================================================== */

.pl-reviews-rating-input .sr-only {
    position: absolute !important;

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

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

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

    white-space: nowrap !important;

    border: 0 !important;
}


/* ==========================================================
   BUTTONS
========================================================== */

.pl-reviews-submit,
.pl-reviews-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 20px;

    border: 0;
    border-radius: 10px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;
}

.pl-reviews-submit {
    background: #009bad;
    color: #fff;
}

.pl-reviews-submit:hover {
    background: #008b9b;
}

.pl-reviews-delete {
    background: #c73b3b;
    color: #fff;
}

.pl-reviews-form-note {
    margin: 14px 0 0;
    color: #7b878c;
    font-size: 12px;
    line-height: 1.5;
}


/* ==========================================================
   HONEYPOT
========================================================== */

.pl-reviews-hp {
    position: absolute !important;

    left: -9999px !important;

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

    overflow: hidden !important;
}


/* ==========================================================
   ACTION
========================================================== */

.pl-reviews-action {
    min-height: 60vh;
    padding: 80px 0;
}

.pl-reviews-action-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px;

    border: 1px solid #e1e8ea;
    border-radius: 18px;

    background: #fff;
}

.pl-reviews-action-card h1 {
    margin: 12px 0 20px;
}

.pl-reviews-action-review {
    margin: 25px 0;
    padding: 20px;

    border-radius: 12px;

    background: #f7f9fa;
}

.pl-reviews-action-author {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.pl-reviews-action-author span {
    color: #f5b301;
}

.pl-reviews-action-review p {
    margin: 15px 0 0;
    line-height: 1.7;
}

.pl-reviews-action-buttons {
    margin-top: 25px;
}

.pl-reviews-action-buttons p {
    margin-bottom: 16px;
}

.pl-reviews-action-success,
.pl-reviews-action-error {
    text-align: center;
}

.pl-reviews-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #e8f6f7;

    color: #009bad;

    font-size: 25px;
    font-weight: 800;
}


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

@media (max-width: 700px) {

    .pl-reviews-hero {
        padding: 50px 0 35px;
    }

    .pl-reviews-top {
        grid-template-columns: 1fr;
    }

    .pl-reviews-summary {
        min-height: auto;
    }

    .pl-reviews-google {
        min-height: auto;
    }

    .pl-reviews-form-section {
        padding: 24px 18px;
        margin-top: 55px;
    }

    .pl-reviews-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .pl-reviews-card-body {
        margin-left: 0;
    }

    .pl-reviews-action {
        padding: 50px 0;
    }

    .pl-reviews-action-card {
        padding: 25px 18px;
    }

    .pl-reviews-action-author {
        flex-direction: column;
        gap: 5px;
    }

    .pl-reviews-rating-input label {
        font-size: 30px;
    }

}