/* ========================================================================== 
   MegaPets 2.0 — Customer Reviews
   ========================================================================== */

.mp-customer-reviews,
.mp-customer-reviews * {
    box-sizing: border-box;
}

body.mp-customer-reviews-page {
    background: var(--mp-color-page);
}

body.mp-customer-reviews-page .entry-header,
body.mp-customer-reviews-page .entry-title {
    display: none;
}

body.mp-customer-reviews-page .site-content > .ast-container,
body.mp-customer-reviews-page #primary,
body.mp-customer-reviews-page .content-area,
body.mp-customer-reviews-page .site-main,
body.mp-customer-reviews-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.mp-customer-reviews-page #secondary {
    display: none;
}

.mp-customer-reviews {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 84px;
    color: var(--mp-color-grey);
    font-family: var(--mp-font-body);
}

.mp-customer-reviews__hero {
    position: relative;
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 0 20px 27px;
    text-align: center;
}

.mp-customer-reviews__hero::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: var(--mp-decorative-line-height);
    background: var(--mp-decorative-divider-line);
}

.mp-customer-reviews__eyebrow,
.mp-customer-review-form__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--mp-color-gold-dark);
    font-size: 10px;
    line-height: 1.4;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mp-customer-reviews__hero h1,
.mp-customer-review-form h2 {
    margin: 0;
    color: var(--mp-color-dark);
    font-family: var(--mp-font-heading);
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .035em;
}

.mp-customer-reviews__hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.mp-customer-reviews__hero p {
    max-width: 620px;
    margin: 15px auto 0;
    color: var(--mp-color-grey);
    font-size: 14px;
    line-height: 1.7;
}

.mp-customer-reviews__notice {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 13px 17px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-left: 3px solid var(--mp-color-gold);
    border-radius: var(--mp-radius-small);
    background: var(--mp-color-surface);
    color: var(--mp-color-brown-chocolate);
    font-size: 13px;
    line-height: 1.6;
}

.mp-customer-reviews__notice--error {
    border-left-color: #a45a4b;
}

/* Verification disclosure ------------------------------------------------- */

.mp-customer-reviews__verification {
    max-width: 900px;
    margin: 0 auto 34px;
    scroll-margin-top: 110px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-small);
    background: rgb(255 255 255 / 62%);
}

.mp-customer-reviews__verification summary {
    position: relative;
    padding: 13px 42px 13px 17px;
    color: var(--mp-color-gold-dark);
    font-size: 11px;
    line-height: 1.5;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .045em;
    cursor: pointer;
    list-style: none;
}

.mp-customer-reviews__verification summary::-webkit-details-marker {
    display: none;
}

.mp-customer-reviews__verification summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--mp-color-gold);
    font-family: var(--mp-font-body);
    font-size: 18px;
    font-weight: var(--mp-font-weight-regular);
    transform: translateY(-50%);
}

.mp-customer-reviews__verification[open] summary::after {
    content: "−";
}

.mp-customer-reviews__verification summary:focus-visible {
    outline: var(--mp-border-width) solid var(--mp-color-gold);
    outline-offset: -4px;
    border-radius: var(--mp-radius-small);
}

.mp-customer-reviews__verification > div {
    padding: 0 17px 15px;
    color: var(--mp-color-grey);
    font-size: 12px;
    line-height: 1.65;
}

.mp-customer-reviews__verification p {
    margin: 0;
}

.mp-customer-reviews__verification p + p {
    margin-top: 8px;
}

/* Public cards ------------------------------------------------------------ */

.mp-customer-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mp-customer-reviews__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 23px 19px;
    overflow: hidden;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius);
    background: var(--mp-color-surface);
    box-shadow: 0 8px 26px rgb(84 61 36 / 5%);
}

.mp-customer-reviews__card::before {
    content: "“";
    position: absolute;
    top: 35px;
    right: 20px;
    color: var(--mp-color-gold-light);
    font-family: var(--mp-font-heading);
    font-size: 78px;
    line-height: 1;
    opacity: .22;
    pointer-events: none;
}

.mp-customer-reviews__card-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.mp-customer-reviews__recommendation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: var(--mp-radius-pill);
    background: var(--mp-action-soft-background);
    color: var(--mp-color-gold-dark);
    font-size: 9px;
    line-height: 1.3;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .065em;
    text-transform: uppercase;
}

.mp-customer-reviews__recommendation--no {
    background: var(--mp-color-background-soft);
    color: var(--mp-color-grey);
}

.mp-customer-reviews__card time {
    color: var(--mp-color-grey);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .02em;
    opacity: .72;
}

.mp-customer-reviews__card blockquote {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.mp-customer-reviews__card blockquote p {
    margin: 0;
    color: var(--mp-color-brown-chocolate);
    font-family: var(--mp-font-accent);
    font-size: 16px;
    line-height: 1.65;
    font-style: italic;
}

.mp-customer-reviews__photos {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 17px;
}

.mp-customer-reviews__photos--1 {
    grid-template-columns: 1fr;
}

.mp-customer-reviews__photo {
    min-width: 0;
    margin: 0;
}

body.mp-customer-reviews-page .mp-customer-reviews__photo button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-small);
    background: var(--mp-color-background-soft);
    box-shadow: none;
    cursor: zoom-in;
}

.mp-customer-reviews__photo img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    transition: transform var(--mp-duration-fast) var(--mp-ease);
}

.mp-customer-reviews__photos--1 .mp-customer-reviews__photo img {
    height: 210px;
}

.mp-customer-reviews__photo button:hover img,
.mp-customer-reviews__photo button:focus-visible img {
    transform: scale(1.025);
}

.mp-customer-reviews__photo button:focus-visible {
    outline: 2px solid var(--mp-color-gold);
    outline-offset: 2px;
}

.mp-customer-reviews__photo-dialog {
    width: min(94vw, 1100px);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 42px 16px 16px;
    overflow: hidden;
    border: var(--mp-border-width) solid var(--mp-color-border-interactive);
    border-radius: var(--mp-radius);
    background: var(--mp-color-surface);
    box-shadow: 0 24px 80px rgb(45 35 25 / 24%);
}

.mp-customer-reviews__photo-dialog[open] {
    display: grid;
    place-items: center;
}

.mp-customer-reviews__photo-dialog::backdrop {
    background: rgb(36 29 23 / 76%);
    backdrop-filter: blur(2px);
}

.mp-customer-reviews__photo-dialog > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 62px);
    object-fit: contain;
}

body.mp-customer-reviews-page button.mp-customer-reviews__photo-dialog-close {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mp-color-dark);
    box-shadow: none;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.mp-customer-reviews__card footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 13px;
    border-top: var(--mp-standard-separator-line-thickness) solid var(--mp-standard-separator-line-color);
}

.mp-customer-reviews__card footer strong {
    color: var(--mp-color-gold-dark);
    font-size: 10px;
    line-height: 1.4;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.mp-customer-reviews__card footer .mp-customer-reviews__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    opacity: 1;
}

.mp-customer-reviews__card footer .mp-customer-reviews__country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 23px;
    padding: 3px 8px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-pill);
    background: var(--mp-color-background-soft);
    color: var(--mp-color-brown-chocolate);
    font-size: 9px;
    line-height: 1.35;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .025em;
    opacity: 1;
    white-space: nowrap;
}

.mp-customer-reviews__card footer .mp-customer-reviews__country > span {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    opacity: 1;
}

.mp-customer-reviews__card footer .mp-customer-reviews__country > span:first-child {
    font-size: 13px;
    line-height: 1;
}

.mp-customer-reviews__card footer span {
    color: var(--mp-color-grey);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .035em;
    opacity: .75;
}

.mp-customer-reviews__empty {
    margin: 36px auto;
    color: var(--mp-color-grey);
    font-family: var(--mp-font-accent);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

.mp-customer-reviews__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 32px;
}

.mp-customer-reviews__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 5px 10px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-pill);
    background: var(--mp-color-surface);
    color: var(--mp-color-gold-dark);
    font-size: 11px;
    text-decoration: none;
}

.mp-customer-reviews__pagination .page-numbers.current,
.mp-customer-reviews__pagination .page-numbers:hover,
.mp-customer-reviews__pagination .page-numbers:focus-visible {
    border-color: var(--mp-color-gold);
    background: var(--mp-action-soft-background);
}

/* Verified customer form -------------------------------------------------- */

.mp-customer-review-form {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 28px;
    border: var(--mp-border-width) solid var(--mp-color-border-interactive);
    border-radius: var(--mp-radius-large);
    background:
        linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(248 241 228 / 88%));
    box-shadow: var(--mp-shadow);
}

.mp-customer-review-form--closed {
    text-align: center;
}

.mp-customer-review-form--invitation {
    max-width: 760px;
    padding: 24px 28px;
    text-align: center;
}

.mp-customer-review-form--invitation h2 {
    font-size: clamp(24px, 3vw, 31px);
}

.mp-customer-review-form--invitation p {
    max-width: 610px;
    margin: 10px auto 0;
    color: var(--mp-color-grey);
    font-size: 13px;
    line-height: 1.65;
}

.mp-customer-review-form__shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    margin-top: 17px;
    padding: 9px 17px;
    border: var(--mp-border-width) solid var(--mp-color-gold);
    border-radius: var(--mp-radius-pill);
    background: var(--mp-color-surface);
    color: var(--mp-color-gold-dark);
    font-size: 10px;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .075em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color var(--mp-duration-fast) var(--mp-ease),
        border-color var(--mp-duration-fast) var(--mp-ease),
        color var(--mp-duration-fast) var(--mp-ease);
}

.mp-customer-review-form__shop-link:hover,
.mp-customer-review-form__shop-link:focus-visible {
    border-color: var(--mp-color-gold-dark);
    background: var(--mp-action-soft-background);
    color: var(--mp-color-brown-chocolate);
}

.mp-customer-review-form__header {
    max-width: 650px;
    margin-bottom: 23px;
}

.mp-customer-review-form h2 {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.12;
}

.mp-customer-review-form__header p,
.mp-customer-review-form--closed p {
    margin: 10px 0 0;
    color: var(--mp-color-grey);
    font-size: 13px;
    line-height: 1.65;
}

.mp-customer-review-form__status {
    margin: 0 0 20px;
    padding: 10px 13px;
    border-radius: var(--mp-radius-small);
    background: var(--mp-action-quiet-background);
    color: var(--mp-color-brown-chocolate);
    font-size: 11px;
    line-height: 1.55;
}

.mp-customer-review-form__fields {
    display: grid;
    gap: 19px;
}

.mp-customer-review-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mp-customer-review-form legend,
.mp-customer-review-form__field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--mp-color-brown-chocolate);
    font-size: 11px;
    line-height: 1.4;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .035em;
}

.mp-customer-review-form__recommendation,
.mp-customer-review-form__identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.mp-customer-review-form__recommendation legend,
.mp-customer-review-form__identity legend {
    grid-column: 1 / -1;
}

.mp-customer-review-form__recommendation label,
.mp-customer-review-form__identity label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-small);
    background: var(--mp-color-surface);
    color: var(--mp-color-grey);
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.mp-customer-review-form input[type="radio"],
.mp-customer-review-form input[type="checkbox"] {
    flex: 0 0 auto;
    accent-color: var(--mp-color-gold-dark);
}

.mp-customer-review-form__field {
    display: block;
    margin: 0;
}

.mp-customer-review-form__field input,
.mp-customer-review-form__field textarea {
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-small);
    background: var(--mp-color-surface);
    color: var(--mp-color-dark);
    box-shadow: none;
    font-family: var(--mp-font-body);
    font-size: 13px;
    line-height: 1.55;
}

.mp-customer-review-form__field textarea {
    min-height: 130px;
    resize: vertical;
}

.mp-customer-review-form__field input:focus,
.mp-customer-review-form__field textarea:focus {
    border-color: var(--mp-color-gold);
    outline: 0;
    box-shadow: 0 0 0 2px rgb(199 154 87 / 13%);
}

.mp-customer-review-form__field small,
.mp-customer-review-form__delete small {
    display: block;
    margin-top: 6px;
    color: var(--mp-color-grey);
    font-size: 9.5px;
    line-height: 1.5;
    opacity: .78;
}

.mp-customer-review-form__photos {
    display: grid;
    gap: 12px;
    padding: 17px !important;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle) !important;
    border-radius: var(--mp-radius-small);
    background: rgb(255 255 255 / 58%);
}

.mp-customer-review-form__photos > legend {
    float: left;
    width: 100%;
    margin: 0 0 3px;
}

.mp-customer-review-form__photos > legend + * {
    clear: both;
}

.mp-customer-review-form__photos > p {
    margin: 0;
    color: var(--mp-color-grey);
    font-size: 10px;
    line-height: 1.55;
}

.mp-customer-review-form__existing-photos,
.mp-customer-review-form__new-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.mp-customer-review-form__existing-photo,
.mp-customer-review-form__new-photo {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.mp-customer-review-form__existing-photo img,
.mp-customer-review-form__new-photo img {
    display: block;
    width: 100%;
    height: 105px;
    border-radius: var(--mp-radius-small);
    object-fit: cover;
}

.mp-customer-review-form__existing-photo > span,
.mp-customer-review-form__new-photo > span {
    color: var(--mp-color-grey);
    font-size: 9px;
    line-height: 1.4;
}

.mp-customer-review-form__existing-photo > span {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.mp-customer-review-form__photo-upload {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--mp-color-brown-chocolate);
    font-size: 11px;
    line-height: 1.4;
    font-weight: var(--mp-font-weight-semibold);
}

.mp-customer-review-form__photo-upload input {
    width: 100%;
    padding: 9px;
    border: var(--mp-border-width) solid var(--mp-color-border-subtle);
    border-radius: var(--mp-radius-small);
    background: var(--mp-color-surface);
    color: var(--mp-color-grey);
    font-size: 11px;
    font-weight: var(--mp-font-weight-regular);
}

.mp-customer-review-form__photo-upload small {
    color: var(--mp-color-grey);
    font-size: 9.5px;
    line-height: 1.5;
    font-weight: var(--mp-font-weight-regular);
    opacity: .78;
}

.mp-customer-review-form__photo-status {
    min-height: 0;
}

.mp-customer-review-form__photo-status.is-error {
    color: #8f3f35;
}

.mp-customer-review-form__photo-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding-top: 2px;
    color: var(--mp-color-grey);
    font-size: 10px;
    line-height: 1.55;
    cursor: pointer;
}

.mp-customer-review-form__photo-consent input {
    margin-top: 2px;
}

.mp-customer-review-form__new-photos[hidden] {
    display: none;
}

.mp-customer-review-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--mp-color-grey);
    font-size: 10px;
    line-height: 1.55;
    cursor: pointer;
}

.mp-customer-review-form__consent input {
    margin-top: 2px;
}

body.mp-customer-reviews-page .mp-customer-review-form button.mp-customer-review-form__submit {
    justify-self: start;
    min-height: 42px;
    margin: 0;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--mp-radius-pill);
    background: var(--mp-action-primary-background);
    color: var(--mp-color-surface);
    box-shadow: none;
    font-family: var(--mp-font-body);
    font-size: 11px;
    line-height: 1.4;
    font-weight: var(--mp-font-weight-semibold);
    letter-spacing: .045em;
    cursor: pointer;
}

body.mp-customer-reviews-page .mp-customer-review-form button.mp-customer-review-form__submit:hover,
body.mp-customer-reviews-page .mp-customer-review-form button.mp-customer-review-form__submit:focus-visible {
    background: var(--mp-action-primary-background-hover);
}

body.mp-customer-reviews-page .mp-customer-review-form button.mp-customer-review-form__submit:active {
    background: var(--mp-action-primary-background-active);
}

.mp-customer-review-form__delete {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    margin-top: 23px;
    padding-top: 15px;
    border-top: var(--mp-standard-separator-line-thickness) solid var(--mp-standard-separator-line-color);
}

body.mp-customer-reviews-page .mp-customer-review-form__delete button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mp-color-grey);
    box-shadow: none;
    font-family: var(--mp-font-body);
    font-size: 10px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.mp-customer-review-form__delete small {
    margin: 0;
}

.mp-customer-review-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {

    .mp-customer-reviews {
        width: min(100% - 24px, 640px);
        padding: 36px 0 58px;
    }

    .mp-customer-reviews__hero {
        margin-bottom: 24px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .mp-customer-reviews__hero h1 {
        font-size: 34px;
    }

    .mp-customer-reviews__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mp-customer-reviews__card {
        min-height: 0;
        padding: 18px 17px 16px;
    }

    .mp-customer-reviews__card blockquote p {
        font-size: 15px;
    }

    .mp-customer-reviews__photo img,
    .mp-customer-reviews__photos--1 .mp-customer-reviews__photo img {
        height: 150px;
    }

    .mp-customer-reviews__card footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .mp-customer-review-form {
        padding: 21px 17px;
        border-radius: var(--mp-radius);
    }

    .mp-customer-review-form__recommendation,
    .mp-customer-review-form__identity {
        grid-template-columns: 1fr;
    }

    .mp-customer-review-form__recommendation legend,
    .mp-customer-review-form__identity legend {
        grid-column: auto;
    }

    .mp-customer-review-form__existing-photos,
    .mp-customer-review-form__new-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.mp-customer-reviews-page .mp-customer-review-form button.mp-customer-review-form__submit {
        justify-self: stretch;
        width: 100%;
    }

    .mp-customer-reviews__pagination {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mp-customer-reviews *,
    .mp-customer-reviews *::before,
    .mp-customer-reviews *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
