.italwax-marketplace-reviews {
    clear: both;
    margin: 0 0 42px;
    padding: 30px;
    border: 1px solid #eee9df;
    border-radius: 10px;
    background: #fff;
}

.single-product .woocommerce-tabs.wc-tabs-wrapper + .italwax-marketplace-reviews {
    margin-top: -24px;
}

.italwax-marketplace-reviews__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.italwax-marketplace-reviews__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #a77e17;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.italwax-marketplace-reviews h3 {
    margin: 0;
    color: #2f2114;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.2;
}

.italwax-marketplace-reviews__intro {
    max-width: 660px;
    margin: 9px 0 0;
    color: #786e65;
    font-size: 13px;
    line-height: 1.55;
}

.italwax-marketplace-reviews__summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1px 9px;
    min-width: 138px;
    padding: 12px 15px;
    border: 1px solid #eee9df;
    border-radius: 7px;
    background: #faf8f4;
}

.italwax-marketplace-reviews__summary strong {
    grid-row: 1 / 3;
    color: #2f2114;
    font-size: 27px;
    line-height: 1;
}

.italwax-marketplace-reviews__summary span,
.italwax-marketplace-review__stars {
    color: #a77e17;
    font-size: 13px;
    letter-spacing: .05em;
}

.italwax-marketplace-reviews__summary small {
    color: #80756d;
    font-size: 10px;
}

.italwax-marketplace-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.italwax-marketplace-review {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #eee9df;
    border-radius: 8px;
    background: #fff;
}

.italwax-marketplace-review__top,
.italwax-marketplace-review__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.italwax-marketplace-review__source {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.italwax-marketplace-review__source--wb {
    background: #9c2ead;
}

.italwax-marketplace-review__source--ozon {
    background: #1264e5;
}

.italwax-marketplace-review__meta {
    margin-top: 15px;
}

.italwax-marketplace-review__meta strong {
    color: #2f2114;
    font-size: 14px;
}

.italwax-marketplace-review__meta time {
    color: #938980;
    font-size: 11px;
}

.italwax-marketplace-review__text {
    margin-top: 13px;
    color: #5f554d;
    font-size: 14px;
    line-height: 1.65;
}

.italwax-marketplace-review__text p:last-child {
    margin-bottom: 0;
}

.italwax-marketplace-review__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.italwax-marketplace-review__photos a,
.italwax-marketplace-review__photos img {
    display: block;
    width: 54px;
    height: 54px;
}

.italwax-marketplace-review__photos img {
    border-radius: 5px;
    object-fit: cover;
}

.italwax-marketplace-reviews__more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee9df;
}

.italwax-marketplace-reviews__more a {
    color: #8d6917;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.italwax-marketplace-reviews__more a:hover {
    color: #2f2114;
}

.italwax-marketplace-reviews__note {
    margin: 16px 0 0;
    color: #938980;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .italwax-marketplace-reviews {
        padding: 23px 18px;
    }

    .single-product .woocommerce-tabs.wc-tabs-wrapper + .italwax-marketplace-reviews {
        margin-top: -25px;
    }

    .italwax-marketplace-reviews__header {
        display: block;
    }

    .italwax-marketplace-reviews__summary {
        width: fit-content;
        margin-top: 18px;
    }

    .italwax-marketplace-reviews__grid {
        grid-template-columns: 1fr;
    }
}

/* Магазины Italwax на маркетплейсах */
.italwax-marketplace-stores {
    margin: 55px 0;
    color: #2f2114;
}

.italwax-marketplace-stores__heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.italwax-marketplace-stores__heading > span {
    display: block;
    margin-bottom: 7px;
    color: #a77e17;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.italwax-marketplace-stores__heading h2 {
    margin: 0;
    color: #2f2114;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.15;
}

.italwax-marketplace-stores__heading p {
    margin: 10px 0 0;
    color: #786e65;
    font-size: 14px;
    line-height: 1.6;
}

.italwax-marketplace-stores__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.italwax-marketplace-store {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid #e9e2d8;
    border-radius: 10px;
    background: #fff;
}

.italwax-marketplace-store__top,
.italwax-marketplace-store__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.italwax-marketplace-store__logo {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.italwax-ozon-logo {
    display: block;
    width: 190px;
    max-width: 42vw;
    height: 42px;
    background-image: url('../assets/images/ozon-logo-current.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 240px 109px;
}

.italwax-wb-logo {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 5px;
    background: linear-gradient(100deg, #9b24b7, #d31387);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.italwax-marketplace-store__official {
    color: #8b8179;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: right;
    text-transform: uppercase;
}

.italwax-marketplace-store__metrics {
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(180px, 1.15fr);
    gap: 0;
    margin: 30px 0;
    border-top: 1px solid #eee9df;
    border-bottom: 1px solid #eee9df;
}

.italwax-marketplace-store__rating,
.italwax-marketplace-store__count {
    min-width: 0;
    padding: 22px 0;
}

.italwax-marketplace-store__count {
    padding-left: clamp(18px, 3vw, 34px);
    border-left: 1px solid #eee9df;
}

.italwax-marketplace-store__rating > span,
.italwax-marketplace-store__count > span {
    display: block;
    margin-bottom: 7px;
    color: #8b8179;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.italwax-marketplace-store__rating strong,
.italwax-marketplace-store__count strong {
    display: inline-block;
    max-width: 100%;
    color: #2f2114;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
    overflow-wrap: anywhere;
}

.italwax-marketplace-store__rating small {
    margin-left: 5px;
    color: #a77e17;
    font-size: 18px;
    vertical-align: top;
}

.italwax-marketplace-store__count small {
    display: block;
    margin-top: 6px;
    color: #8b8179;
    font-size: 11px;
}

.italwax-marketplace-store__footer {
    margin-top: auto;
}

.italwax-marketplace-store__footer time,
.italwax-marketplace-store__date {
    flex: 0 1 auto;
    color: #998f86;
    font-size: 10px;
    line-height: 1.4;
}

.italwax-marketplace-store__footer a {
    flex: 0 0 auto;
    padding: 12px 16px;
    border: 1px solid #9b761f;
    border-radius: 4px;
    color: #785a16;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.italwax-marketplace-store__footer a:hover {
    background: #9b761f;
    color: #fff;
}

@media (max-width: 900px) {
    .italwax-marketplace-stores__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .italwax-marketplace-stores {
        margin: 42px 0;
    }

    .italwax-marketplace-store {
        min-height: 0;
    }

    .italwax-marketplace-store__top,
    .italwax-marketplace-store__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .italwax-marketplace-store__official {
        text-align: left;
    }

    .italwax-marketplace-store__metrics {
        grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
        width: 100%;
        margin: 23px 0;
    }

    .italwax-marketplace-store__rating strong,
    .italwax-marketplace-store__count strong {
        font-size: clamp(30px, 11vw, 44px);
    }

    .italwax-marketplace-store__footer a {
        width: 100%;
        text-align: center;
    }
}
