.product-hero {
    display: flex;
    min-height: 100vh;
}

.product-hero__gallery {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.product-hero__gallery-group {
    position: absolute;
    inset: 0;
    display: none;
}

.product-hero__gallery-group.is-active-group {
    display: block;
}

.product-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-hero__slide.is-active {
    opacity: 1;
}

.product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: clamp(40px, 2.778vw, 76px);
    height: clamp(40px, 2.778vw, 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.product-hero__arrow:hover {
    opacity: 0.7;
}

.product-hero__arrow--prev {
    left: clamp(12px, 0.833vw, 24px);
}

.product-hero__arrow--next {
    right: clamp(12px, 0.833vw, 24px);
}

.product-hero__arrow--next img {
    transform: scaleX(-1);
}

.product-hero__dots {
    position: absolute;
    bottom: clamp(16px, 1.111vw, 30px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background-color: var(--color-vanilla-50);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.product-hero__dot.is-active {
    width: 20px;
    border-radius: 100px;
    background-color: var(--color-vanilla-cream);
}

.product-hero__panel {
    flex: 0 0 50%;
    background-color: var(--color-dark-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:
        clamp(115px, 7.986vw, 173px)
        var(--edge-inset)
        clamp(56px, 3.889vw, 134px)
        clamp(48px, 3.333vw, 100px);
}

.product-hero__top {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 1.389vw, 28px);
}

.product-hero__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(16px, 1.111vw, 24px);
}

.product-hero__name {
    font-size: var(--text-h1);
    font-weight: 500;
    line-height: 1;
    color: var(--color-vanilla-cream);
}

.product-hero__subtitle {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-vanilla-cream);
}

.product-hero__rating {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.product-hero__rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-hero__rating-value {
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    color: var(--color-dark-vanilla);
}

.product-hero__stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-hero__star {
    width: auto;
    height: clamp(16px, 1.111vw, 20px);
    color: var(--color-vanilla-20);
}

.product-hero__star.is-filled {
    color: var(--color-matcha-green);
}

.product-hero__review-count {
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 400;
    color: var(--color-dark-vanilla);
}

.product-hero__price-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.111vw, 24px);
}

.product-hero__price {
    display: none;
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-vanilla-cream);
}

.product-hero__price.is-active {
    display: block;
}

.product-hero__price del {
    color: var(--color-dark-vanilla);
    opacity: 0.6;
}

.product-hero__price ins {
    text-decoration: none;
}

.product-hero__weights {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-hero__weight {
    height: clamp(30px, 2.083vw, 38px);
    padding: 0 clamp(14px, 0.972vw, 18px);
    border-radius: 100px;
    border: 1.5px solid var(--color-vanilla-cream);
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    color: var(--color-dark-vanilla);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.product-hero__weight.is-selected {
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
    border-color: transparent;
}

.product-hero__servings {
    display: none;
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-dark-vanilla);
}

.product-hero__servings.is-active {
    display: block;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .product-hero__price-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .product-hero__servings {
        width: 100%;
    }
}

.product-hero__bottom {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 1.389vw, 28px);
}

.product-accordion__item {
    border-bottom: 2px solid var(--color-vanilla-cream);
}

.product-accordion__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(14px, 0.972vw, 20px) 0;
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-vanilla-cream);
    text-align: left;
}

.product-accordion__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(20px, 1.389vw, 28px);
    height: clamp(20px, 1.389vw, 28px);
    color: var(--color-vanilla-cream);
    transition: transform 0.3s ease;
}

.product-accordion__item.is-open .product-accordion__icon {
    transform: rotate(180deg);
}

.product-accordion__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.product-accordion__answer-inner {
    padding-bottom: clamp(14px, 0.972vw, 20px);
}

.product-accordion__answer-inner p {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-vanilla);
}

.product-nutrition__basis {
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-vanilla-50);
    margin-bottom: 12px;
}

.product-nutrition__table {
    width: 100%;
    border-collapse: collapse;
}

.product-nutrition__table tr {
    border-bottom: 1px solid var(--color-vanilla-20);
}

.product-nutrition__table tr:last-child {
    border-bottom: none;
}

.product-nutrition__table th,
.product-nutrition__table td {
    padding: 4px 0;
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-dark-vanilla);
}

.product-nutrition__table th {
    text-align: left;
    font-weight: 400;
}

.product-nutrition__table td {
    text-align: right;
    font-weight: 500;
    color: var(--color-vanilla-cream);
}

.product-nutrition__row--indent th {
    padding-left: 16px;
    font-size: var(--text-s);
    color: var(--color-vanilla-50);
}

.product-nutrition__note {
    padding: 8px 0;
    border-top: 1px solid var(--color-vanilla-20);
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-dark-vanilla);
}

.product-hero__cart-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.111vw, 24px);
}

.product-qty {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 2.639vw, 38px);
    height: clamp(44px, 3.056vw, 60px);
    padding: 0 clamp(10px, 0.972vw, 14px);
    border: 1.5px solid var(--color-vanilla-cream);
    border-radius: 100px;
}

.product-qty__btn {
    position: relative;
    flex-shrink: 0;
    width: clamp(34px, 2.361vw, 46px);
    height: clamp(34px, 2.361vw, 46px);
}

.product-qty__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background-color: var(--color-vanilla-cream);
    transform: translate(-50%, -50%);
}

.product-qty__btn--plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 20px;
    background-color: var(--color-vanilla-cream);
    transform: translate(-50%, -50%);
}

.product-qty__value {
    min-width: 1ch;
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    color: var(--color-vanilla-cream);
    text-align: center;
}

.product-hero__cta,
.product-reviews__cta,
.review-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(44px, 3.056vw, 60px);
    padding: 0 clamp(16px, 1.111vw, 20px);
    border-radius: 100px;
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    letter-spacing: 0.16px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.product-hero__cta {
    flex: 1 1 auto;
    min-width: 0;
    transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.product-hero__cta:hover {
    background-color: var(--color-dark-vanilla);
    color: var(--color-dark-green);
}

.product-hero__cta:active,
.review-modal__submit:active {
    transform: scale(0.97);
}

.product-hero__cta.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-features {
    padding: 0 var(--edge-inset) clamp(60px, 4.167vw, 100px);
}

.product-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.111vw, 24px);
}

.product-features__item {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 1.944vw, 34px);
}

.product-features__photo {
    position: relative;
}

.product-features__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.product-features__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: auto;
}

.product-features__content {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.694vw, 14px);
}

.product-features__title {
    font-size: var(--text-h4);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
}

.product-features__body {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
}

@media (max-width: 1024px) and (orientation: portrait) {
    .product-features__grid {
        grid-template-columns: 1fr;
        gap: clamp(40px, 7.031vw, 54px);
    }

    .product-features__item {
        align-items: center;
        text-align: center;
    }

    .product-features__body {
        max-width: 46rem;
    }
}

.product-reviews {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 2.778vw, 60px);
    padding: clamp(60px, 4.167vw, 100px) var(--edge-inset);
}

.product-reviews__title {
    font-size: var(--text-h2);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
    text-align: center;
}

.product-reviews__summary {
    position: relative;
    display: flex;
    justify-content: center;
    padding-bottom: clamp(40px, 2.778vw, 60px);
    border-bottom: 2px solid var(--color-dark-green-10);
}

.product-reviews__rating {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.417vw, 8px);
}

.product-reviews__rating-value {
    font-size: var(--text-h3);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
}

.product-reviews__rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-reviews__rating-stars .product-reviews__star {
    height: clamp(16px, 1.111vw, 20px);
}

.product-reviews__rating-count {
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-dark-green);
}

.product-reviews__star {
    width: auto;
    color: var(--color-dark-green-10);
}

.product-reviews__star.is-filled {
    color: var(--color-dark-green);
}

.product-reviews__star--sm {
    height: clamp(16px, 1.111vw, 20px);
}

.product-reviews__breakdown {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.694vw, 14px);
    max-width: 500px;
}

.product-reviews__breakdown-row {
    display: flex;
    align-items: center;
    gap: clamp(14px, 0.972vw, 20px);
}

.product-reviews__breakdown-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-reviews__breakdown-stars .product-reviews__star {
    height: clamp(16px, 1.111vw, 20px);
}

.product-reviews__breakdown-bar {
    width: clamp(120px, 8.333vw, 166px);
    height: clamp(15px, 1.042vw, 21px);
    border-radius: 100px;
    background-color: var(--color-dark-green-10);
    overflow: hidden;
    flex-shrink: 0;
}

.product-reviews__breakdown-bar-fill {
    display: block;
    height: 100%;
    border-radius: 100px;
    background-color: var(--color-matcha-green);
}

.product-reviews__breakdown-count {
    font-size: clamp(14px, 0.972vw, 16px);
    font-weight: 500;
    color: var(--color-dark-green);
    min-width: 2ch;
}

.product-reviews__cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.product-reviews__cta:hover,
.review-modal__submit:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.product-reviews__cta:active {
    transform: translateY(-50%) scale(0.97);
}

.product-reviews__empty {
    font-size: var(--text-body);
    color: var(--color-dark-green);
}

.product-reviews__list {
    display: flex;
    flex-direction: column;
}

.product-reviews__item {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 0.972vw, 19px);
    padding: clamp(28px, 1.944vw, 40px) 0;
    border-bottom: 2px solid var(--color-dark-green-10);
}

.product-reviews__item:last-child {
    border-bottom: none;
}

.product-reviews__item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 1.111vw, 24px);
}

.product-reviews__item-info {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.694vw, 14px);
}

.product-reviews__item-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-reviews__item-name {
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 500;
    color: var(--color-dark-green);
}

.product-reviews__item-date {
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-dark-green);
    flex-shrink: 0;
}

.product-reviews__item-text {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
    max-width: 900px;
}

@media (min-width: 1025px) and (max-height: 900px), (orientation: landscape) and (max-height: 500px) {
    .product-hero__panel {
        gap: clamp(24px, 1.667vw, 40px);
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .product-hero {
        flex-direction: column;
        height: auto;
    }

    .product-hero__gallery {
        flex: none;
        width: 100%;
        height: 55vh;
    }

    .product-hero__panel {
        flex: none;
        width: 100%;
        padding: clamp(80px, 15.625vw, 160px) var(--edge-inset);
        gap: clamp(80px, 15.625vw, 160px);
    }

    .product-hero__title-row {
        flex-direction: column;
        align-items: stretch;
        gap: clamp(12px, 2.083vw, 16px);
    }

    .product-hero__rating {
        order: -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: clamp(12px, 2.083vw, 16px);
    }

    .product-hero__top {
        gap: clamp(18px, 3.125vw, 24px);
    }

    .product-hero__bottom {
        gap: clamp(24px, 4.167vw, 32px);
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .product-hero__subtitle {
        max-width: 46rem;
    }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (min-height: 501px) {
    .product-hero {
        min-height: 70vh;
    }
}

.product-reviews__item-photo {
    width: clamp(200px, 13.889vw, 282px);
    aspect-ratio: 282 / 353;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.review-modal.is-open {
    pointer-events: auto;
}

.review-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.review-modal.is-open .review-modal__overlay {
    opacity: 1;
}

.review-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(calc(1116px + max(0px, (min(100vw, var(--site-max-width)) - 1440px)) * 0.25), 90vw);
    min-height: min(712px, 85vh);
    max-height: 100%;
    border-radius: 24px;
    background-color: var(--color-vanilla-cream);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal.is-open .review-modal__panel {
    opacity: 1;
    transform: scale(1);
}

.review-modal[data-active-step="4"] .review-modal__panel {
    width: min(calc(432px + max(0px, (min(100vw, var(--site-max-width)) - 1440px)) * 0.25), 90vw);
    min-height: min(276px, 85vh);
}

.review-modal[data-active-step="4"] .review-modal__close {
    top: clamp(12px, 0.972vw, 14px);
    right: clamp(12px, 0.972vw, 14px);
}

.review-modal[data-active-step="4"] .review-modal__body {
    padding: clamp(24px, 4.444vw, 64px) clamp(20px, 5.139vw, 74px);
}

.review-modal__close {
    position: absolute;
    top: clamp(14px, 1.667vw, 24px);
    right: clamp(14px, 1.667vw, 24px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-vanilla-cream);
    border: none;
    border-radius: 50%;
    color: var(--color-dark-green);
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.review-modal__close:hover {
    opacity: 0.7;
}

.review-modal__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(70px, 6.667vw, 155px) clamp(24px, 2.222vw, 52px) clamp(24px, 2.222vw, 52px);
}

.review-modal__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 clamp(24px, 2.778vw, 40px) clamp(28px, 2.5vw, 36px);
}

.review-modal[data-active-step="4"] .review-modal__footer {
    display: none;
}

.review-modal__back,
.review-modal__skip {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-dark-green);
    cursor: pointer;
}

.review-modal__back {
    grid-column: 1;
    justify-self: start;
}

.review-modal__skip {
    grid-column: 3;
    justify-self: end;
}

.review-modal__skip:disabled {
    opacity: 0.4;
    cursor: default;
}

.review-modal__submit {
    grid-column: 3;
    justify-self: end;
    display: none;
    gap: 10px;
    border: none;
    font-family: var(--font-primary);
    cursor: pointer;
}

.review-modal__submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.review-modal__submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.review-modal__submit.is-loading .review-modal__submit-spinner {
    display: block;
}

.review-modal[data-active-step="1"] [data-review-next],
.review-modal[data-active-step="2"] [data-review-back],
.review-modal[data-active-step="2"] [data-review-skip],
.review-modal[data-active-step="3"] [data-review-back],
.review-modal[data-active-step="3"] [data-review-submit] {
    display: flex;
}

.review-modal[data-active-step="2"][data-has-photo="true"] [data-review-skip] {
    display: none;
}

.review-modal[data-active-step="2"][data-has-photo="true"] [data-review-photo-next] {
    display: flex;
}

.review-modal__progress {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-modal__progress-seg {
    width: 72px;
    max-width: 20vw;
    height: 4px;
    border-radius: 100px;
    background-color: var(--color-dark-green-10);
}

.review-modal__progress-seg.is-active {
    background-color: var(--color-dark-green);
}

.review-modal__step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(20px, 1.667vw, 28px);
    width: 100%;
}

.review-modal__step.is-active {
    display: flex;
}

.review-modal__heading {
    font-size: var(--text-h3);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
    max-width: 32ch;
}

.review-modal__subtext {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
    max-width: 40ch;
}

.review-modal__stars {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.833vw, 12px);
}

.review-modal__star {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-dark-green-10);
    transition: color 0.2s ease;
}

.review-modal__star.is-filled {
    color: var(--color-dark-green);
}

.review-modal__star .lattesa-star {
    width: clamp(36px, 4.167vw, 60px);
    height: auto;
}

.review-modal__scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-dark-green-50);
}

.review-modal__rating-label {
    font-size: var(--text-lead);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--color-dark-green);
    min-height: 1.1em;
}

.review-modal__photo-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 100px;
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.review-modal__photo-btn:not([hidden]) {
    display: inline-flex;
}

.review-modal__photo-btn:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.review-modal__photo-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.review-modal__photo-preview:not([hidden]) {
    display: flex;
}

.review-modal__photo-thumb-wrap {
    position: relative;
}

.review-modal__photo-thumb {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.review-modal__photo-name {
    font-size: var(--text-m);
    color: var(--color-dark-green-50);
    max-width: 288px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-modal__photo-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark-green);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.review-modal__field-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.review-modal__field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.review-modal__field label {
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-dark-green);
}

.review-modal__step .lattesa-checkbox {
    align-self: flex-start;
}

.review-modal__field input,
.review-modal__field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--color-dark-green-10);
    border-radius: 14px;
    background-color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-body);
    color: var(--color-dark-green);
}

.review-modal__field input::placeholder,
.review-modal__field textarea::placeholder {
    color: var(--color-dark-green-50);
}

.review-modal__field textarea {
    min-height: 160px;
    resize: vertical;
}

.review-modal__error {
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-error);
}

.review-modal__emoji {
    width: 108px;
    height: 36px;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .review-modal__panel {
        min-height: 0;
    }

    .review-modal__body {
        align-items: flex-start;
        padding: clamp(72px, 12.5vw, 96px) 20px clamp(48px, 8.333vw, 64px);
    }

    .review-modal__field-row {
        flex-direction: column;
        gap: 20px;
    }

    .review-modal__footer {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "progress progress"
            "back skip";
        row-gap: 16px;
    }

    .review-modal[data-active-step="3"] .review-modal__footer {
        grid-template-areas:
            "progress progress"
            "back back"
            "submit submit";
    }

    .review-modal__progress {
        grid-area: progress;
        justify-self: stretch;
        width: 100%;
    }

    .review-modal__progress-seg {
        flex: 1;
        width: auto;
        max-width: none;
    }

    .review-modal__back {
        grid-area: back;
        justify-self: start;
    }

    .review-modal__skip {
        grid-area: skip;
        justify-self: end;
    }

    .review-modal__submit {
        grid-area: submit;
        justify-self: stretch;
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .review-modal {
        padding: 12px;
    }

    .review-modal__panel {
        padding: 56px 20px 32px;
        min-height: 0;
    }

    .review-modal__step {
        gap: 16px;
    }

    .review-modal__heading {
        font-size: var(--text-h4);
    }

    .review-modal__field textarea {
        min-height: 80px;
    }
}

@media (max-width: 1024px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
    .product-reviews__summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: clamp(24px, 4.167vw, 32px);
    }

    .product-reviews__rating,
    .product-reviews__cta {
        position: static;
        transform: none;
    }

    .product-reviews__rating {
        order: 1;
    }

    .product-reviews__cta {
        order: 2;
    }

    .product-reviews__rating-stars {
        display: none;
    }

    .product-reviews__breakdown {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .product-reviews__breakdown-bar {
        width: auto;
        flex: 1;
    }

    .product-reviews__cta:active {
        transform: scale(0.97);
    }

    .product-reviews__item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.product-lifestyle-band__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 718;
    object-fit: cover;
    display: block;
}
