/* Customer reviews — matched to miratap_review_v12_modal_mini_refined.html. */
.product-reviews {
  padding: 0 0 clamp(72px, 7vw, 110px);
  background: #fff;
}

.product-reviews [hidden] { display: none !important; }
.product-reviews__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid #d8d0c7;
}

.product-reviews__heading p,
.product-reviews__heading h2,
.product-reviews__heading span,
.review-score-card p,
.review-overview-note p,
.review-overview-note h3,
.review-entry__head p,
.review-entry__head strong,
.review-entry h3,
.review-entry__copy,
.review-entry__footer,
.product-reviews__empty p,
.product-reviews__empty h3,
.product-reviews__empty span,
.review-composer__head p,
.review-composer__head h3,
.review-composer__head span,
.review-form__message { margin: 0; }

.product-reviews__heading p,
.review-score-card > p:first-child,
.review-overview-note > p,
.review-composer__head p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a8e84;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}

.product-reviews__heading h2 {
  margin-top: 8px;
  color: #26221f;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 600;
  line-height: 1.28;
}

.product-reviews__heading > span {
  display: block;
  max-width: 760px;
  margin-top: 10px;
  color: #6d655e;
  font-size: 13px;
  line-height: 1.85;
}

.review-icon { flex: 0 0 auto; width: 16px; height: 16px; display: inline-block; color: currentColor; }
.review-icon--small { width: 14px; height: 14px; }
.product-reviews__write {
  min-width: 154px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(38, 34, 31, .12);
  border-radius: 999px;
  background: linear-gradient(180deg, #2f2925 0%, #1f1b18 100%);
  box-shadow: 0 10px 24px rgba(28, 23, 18, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.product-reviews__write:hover,
.product-reviews__write:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(28, 23, 18, .18); }

.product-reviews__overview {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(260px, .9fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 24px;
}
.review-score-card,
.review-breakdown,
.review-overview-note {
  min-width: 0;
  padding: 18px 22px;
  border: 1px solid #dfd6cd;
  border-radius: 20px;
  background: #faf7f3;
}
.review-score-card {
  background: linear-gradient(180deg, #f8f4ef 0%, #f5efe8 100%);
  box-shadow: 0 12px 32px rgba(33, 28, 24, .04);
}
.review-score-card__value { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; }
.review-score-card__value strong { color: #26221f; font-family: var(--font-en); font-size: clamp(44px, 4vw, 60px); font-weight: 300; line-height: .88; letter-spacing: -.06em; }
.review-score-card__value span { padding-bottom: 7px; color: #8f857d; font-size: 12px; }
.review-stars { color: #b79070; font-family: Arial, sans-serif; font-size: 15px; line-height: 1; letter-spacing: .08em; }
.review-stars i { color: #d9d2cb; font-style: normal; }
.review-stars--large { margin-top: 12px; font-size: 18px; }
.review-stars--large span { color: transparent; background: linear-gradient(90deg, #b79070 var(--review-score, 0%), #d9d2cb var(--review-score, 0%)); -webkit-background-clip: text; background-clip: text; }
.review-score-card__count { display: flex; align-items: center; gap: 8px; margin-top: 10px !important; color: #81776f; font-size: 12px; }
.review-breakdown { display: grid; align-content: center; gap: 10px; background: #fff; }
.review-breakdown > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 10px; color: #756c65; font-size: 12px; }
.review-breakdown i { height: 6px; overflow: hidden; border-radius: 999px; background: #ebe4dc; }
.review-breakdown b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #26221f 0%, #8d7661 100%); transition: width .35s ease; }
.review-breakdown em { font-style: normal; text-align: right; }
.review-overview-note {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  background: radial-gradient(circle at top right, rgba(176, 140, 111, .12), transparent 36%), linear-gradient(135deg, #2e2722 0%, #1e1a17 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(24, 20, 17, .12);
}
.review-overview-note::after { content: ""; position: absolute; right: -48px; bottom: -48px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.1), transparent 65%); }
.review-overview-note h3,
.review-overview-note li,
.review-overview-note p { position: relative; z-index: 1; color: #fff; }
.review-overview-note h3 { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.review-overview-note ul { display: grid; margin: 16px 0 0; padding: 0; list-style: none; }
.review-overview-note li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; line-height: 1.7; }
.review-overview-note li strong { color: #fff; font-size: 13px; }

.product-reviews__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e0d8d0; border-radius: 16px; background: #fff; }
.review-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.review-filter button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid #ddd3ca; border-radius: 14px; background: #fff; color: #71685f; font-size: 12px; cursor: pointer; transition: all .2s ease; }
.review-filter button.is-active,
.review-filter button:hover,
.review-filter button:focus-visible { border-color: #26221f; background: #26221f; color: #fff; }
.review-filter button em { margin-left: 6px; font-style: normal; font-size: 10px; opacity: .62; }
.review-filter button.is-active em { opacity: .9; }
.review-sort { display: inline-flex; align-items: center; gap: 10px; color: #847a71; font-size: 12px; }
.review-sort select { min-height: 38px; padding: 0 36px 0 14px; border: 1px solid #ddd3ca; border-radius: 999px; background: #fff; color: #3a322d; font-size: 12px; }

.product-reviews__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.review-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid #e4dbd2;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf8f4 100%);
  box-shadow: 0 16px 36px rgba(31, 25, 20, .05);
  animation: reviewCardIn .22s ease both;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.review-entry:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(31,25,20,.08); border-color: #ddd2c8; }
.review-entry--text { justify-content: space-between; }
.review-entry__content { min-width: 0; display: flex; flex-direction: column; height: 100%; }
.review-entry .review-entry__media + .review-entry__content { margin-top: 4px; }
.review-entry__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 6px; }
.review-entry__media button { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid #e7dfd6; border-radius: 12px; background: #eee9e3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); cursor: zoom-in; }
.review-entry__media button::after { content: ""; position: absolute; inset: auto 8px 8px auto; width: 26px; height: 26px; border-radius: 999px; background: rgba(24,21,18,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11 4H4v7' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 4l8 8' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M13 20h7v-7' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 20l-8-8' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/13px 13px no-repeat; opacity: .92; transition: transform .22s ease, background-color .22s ease; }
.review-entry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.review-entry__media button:hover img,
.review-entry__media button:focus-visible img { transform: scale(1.04); }
.review-entry__media button:hover::after,
.review-entry__media button:focus-visible::after { transform: scale(1.06); background-color: rgba(24,21,18,.82); }
.review-entry__media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(24,21,18,.5); color: #fff; font-family: var(--font-en); font-size: 20px; font-weight: 600; }
.review-entry__media script { display: none; }
.review-entry__head { display: block; }
.review-entry__head > div { display: grid; gap: 8px; }
.review-entry__topline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.review-entry__head strong { color: #26221f; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.review-entry__stars-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.review-entry__stars-row span { display: inline-flex; gap: 2px; color: #b9936d; font-size: 18px; }
.review-entry__head p { margin-top: 9px; color: #8c847d; font-size: 12px; line-height: 1.5; }
.review-entry__badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid #d7cdc4; border-radius: 12px; background: #f6f1eb; color: #796d64; font-size: 10px; white-space: nowrap; }
.review-entry__badge svg { width: 12px; height: 12px; margin-right: 6px; }
.review-entry__badge--text { background: #fff; }
.review-entry h3 { margin-top: 18px; color: #26221f; font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; }
.review-entry__copy-wrap { margin-top: 13px; }
.review-entry__copy { color: #5f5852; font-size: 13px; line-height: 1.9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.review-entry__copy.is-expanded { display: block; overflow: visible; }
.review-entry__copy-wrap > button { margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #786b61; font-size: 11px; cursor: pointer; }
.review-entry__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #ebe4dd; color: #8b837b; font-size: 11px; }
.review-entry__footer span { display: flex; align-items: center; gap: 6px; }
.review-entry__footer button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid #d4ccc3; border-radius: 999px; background: #fffdf9; color: #746a62; font-size: 11px; cursor: pointer; }
.review-entry__footer button svg { width: 14px; height: 14px; }
.review-entry__footer button.is-active { border-color: #26221f; background: #26221f; color: #fff; }

.product-reviews__load { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 14px 16px; border-top: 1px solid #e3dbd3; }
.product-reviews__load p { margin: 0; color: #8b8179; font-size: 12px; }
.product-reviews__load > div { display: flex; gap: 10px; }
.product-reviews__load button { min-height: 40px; padding: 0 18px; border: 1px solid #d8cec4; border-radius: 999px; background: #fff; color: #4d453f; font-size: 12px; cursor: pointer; }
.product-reviews__load button:first-child { border-color: #26221f; background: #26221f; color: #fff; }
.product-reviews__load button[disabled] { opacity: .55; cursor: wait; }
.product-reviews__filtered-empty { margin-top: 20px; padding: 26px; border: 1px dashed #d5cbc1; border-radius: 18px; color: #746c65; text-align: center; }
.product-reviews__filtered-empty p { margin: 0; }
.product-reviews__empty { margin-top: 20px; padding: 38px 24px; border: 1px dashed #d5cbc1; border-radius: 24px; background: #faf6f1; text-align: center; }
.product-reviews__empty > p { color: #a2968c; font-family: var(--font-en); font-size: 9px; letter-spacing: .18em; }
.product-reviews__empty h3 { margin-top: 10px; color: #26221f; font-size: 26px; }
.product-reviews__empty > span { display: block; max-width: 540px; margin: 10px auto 0; color: #746c65; font-size: 13px; line-height: 1.8; }
.product-reviews__empty button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 48px; margin-top: 24px; padding: 0 18px; border: 1px solid #26221f; border-radius: 999px; background: #26221f; color: #fff; cursor: pointer; }

/* Review composer: restrained app-style panel, with a separately scrolling body. */
.review-composer { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(26,23,20,.40); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.review-composer__dialog { display: flex; flex-direction: column; width: min(620px,100%); max-height: min(88dvh,900px); min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 24px; background: #fff; box-shadow: 0 32px 100px rgba(24,20,17,.24); animation: reviewComposerIn .22s ease both; }
.review-composer__head { position: relative; flex: 0 0 auto; padding: 22px 30px 20px; border-bottom: 1px solid #eee9e3; background: #fff; }
.review-composer__head > div { padding-right: 32px; }
.review-composer__head p { margin: 0 0 8px; color: #a19387; font-family: var(--font-en); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.review-composer__head h3 { margin: 0; color: #292521; font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; }
.review-composer__head span { display: block; max-width: 460px; margin-top: 9px; color: #8a8179; font-size: 12px; line-height: 1.65; }
.review-composer__head > button { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f5f3f0; color: #756b62; font-size: 23px; font-weight: 300; line-height: 1; cursor: pointer; transition: background .16s ease; }
.review-composer__head > button:hover { background: #ece7e0; }
.review-composer .review-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.review-composer__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 30px; scrollbar-width: thin; scrollbar-color: #d6cfc7 transparent; }
.review-composer__product { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.review-composer__product img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; border: 1px solid #eae4dc; object-fit: cover; }
.review-composer__product div { min-width: 0; }
.review-composer__product span { display: block; margin-bottom: 4px; color: #a69a8f; font-size: 10px; }
.review-composer__product strong { display: block; color: #5e554d; font-size: 13px; font-weight: 500; line-height: 1.5; }
.review-form__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.review-rating-field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 14px 18px 16px; border: 0; border-radius: 16px; background: #f8f5f1; text-align: center; }
.review-rating-field legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; color: #70645a; font-size: 12px; font-weight: 500; }
.review-rating-field em, .review-form__field em { margin-left: 4px; color: #ad927d; font-size: 10px; font-style: normal; font-weight: 400; }
.review-rating-input { display: flex; justify-content: center; clear: both; gap: 9px; }
.review-rating-input button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #ddd5cc; font-size: 33px; line-height: 1; cursor: pointer; transition: color .16s ease, transform .16s ease; }
.review-rating-input button.is-selected, .review-rating-input button.is-preview { color: #b08d66; }
.review-rating-input button:hover { color: #b08d66; transform: scale(1.08); }
.review-rating-description { display: block; min-height: 18px; margin-top: 4px; color: #a09488; font-size: 11px; line-height: 18px; }
.review-form__field { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.review-form__field--full { grid-column: 1 / -1; }
.review-form__field > span { display: block; margin-bottom: 9px; color: #5c5148; font-size: 12px; font-weight: 500; }
.review-form__field input, .review-form__field textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #ede8e2; border-radius: 12px; background: #faf8f5; color: #38312b; font: inherit; font-size: 13px; line-height: 1.6; transition: border-color .16s ease, box-shadow .16s ease; }
.review-form__field input { min-height: 48px; }
.review-form__field input::placeholder, .review-form__field textarea::placeholder { color: #b1a69b; opacity: 1; }
.review-form__field input:focus, .review-form__textarea:focus-within { outline: none; border-color: #baa28b; box-shadow: 0 0 0 3px rgba(186,162,139,.10); }
.review-form__textarea { overflow: hidden; border: 1px solid #ede8e2; border-radius: 12px; background: #faf8f5; transition: border-color .16s ease, box-shadow .16s ease; }
.review-form__textarea textarea { min-height: 92px; padding-bottom: 5px; border: 0; border-radius: 0; resize: vertical; background: transparent; }
.review-form__textarea textarea:focus { outline: none; box-shadow: none; }
.review-form__textarea > small { display: block; padding: 0 14px 10px; color: #b1a69b; font-family: var(--font-en); font-size: 10px; text-align: right; }
.review-form__textarea b { color: #8d7c6c; font-weight: 400; }
.review-form__media { min-width: 0; }
.review-form__media-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.review-form__media-heading > span { color: #5c5148; font-size: 12px; font-weight: 500; }
.review-form__media-heading em { margin-left: 4px; color: #ad927d; font-size: 10px; font-style: normal; font-weight: 400; }
.review-form__media-heading > small { color: #aa9e92; font-size: 10px; }
.review-form__media-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.review-upload { min-width: 0; padding: 0; border: 0; background: transparent; }
.review-upload:only-child { grid-column: 1 / -1; }
.review-upload__button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 100px; padding: 10px 8px; border: 1px dashed #dacfc2; border-radius: 14px; background: #fcfaf7; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, opacity .16s ease; }
.review-upload__button:hover { border-color: #b99c80; background: #f7f2eb; }
.review-upload__button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.review-upload__button i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eee6dc; color: #8c735d; font-style: normal; }
.review-upload__button i svg { width: 21px; height: 21px; }
.review-upload__button > span { color: #5d5145; font-size: 12px; font-weight: 500; }
.review-upload__button > small { color: #b2a393; font-size: 10px; line-height: 1.4; }
.review-upload__button[aria-disabled="true"] { opacity: .42; border-style: solid; background: #f6f4f1; cursor: not-allowed; }
.review-upload.is-selected .review-upload__button { border-style: solid; border-color: #ba9c7d; background: #f6efe6; }
.review-form__media-hint { margin: 9px 0 0; color: #a99d91; font-size: 10px; line-height: 1.7; }
.review-upload__preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.review-upload__preview:empty, .review-upload__video-preview:empty { display: none; }
.review-upload__item { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid #e7dfd6; border-radius: 10px; background: #f1ebe4; }
.review-upload__item img { width: 100%; height: 100%; object-fit: cover; }
.review-upload__item button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(49,40,33,.8); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.review-composer__footer { flex: 0 0 auto; padding: 16px 30px 22px; border-top: 1px solid #eee9e3; background: #fff; box-shadow: 0 -4px 20px rgba(42,31,23,.025); }
.review-form__consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 0; border: 0; background: transparent; }
.review-form__consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #8e745c; cursor: pointer; }
.review-form__consent span { color: #80746a; font-size: 11px; line-height: 1.7; }
.review-form__message { margin: 10px 0 0; color: #a06051; font-size: 11px; line-height: 1.6; }
.review-form__message:empty { display: none; }
.review-form__message.is-success { color: #52765e; }
.review-form__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 14px; }
.review-form__actions button { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px 16px; border: 1px solid #e7dfd6; border-radius: 12px; background: #faf8f5; color: #998574; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .16s ease; }
.review-form__actions .review-form__submit { border-color: #302923; background: #302923; color: #fffaf5; }
.review-form__actions .review-form__submit:hover { background: #4c3e32; }
.review-form__actions button[disabled] { opacity: .55; cursor: wait; }
.review-composer button:focus-visible, .review-composer [role="button"]:focus-visible { outline: 2px solid #af8b6c; outline-offset: 3px; }
.review-form__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (min-width: 768px) {
  .review-rating-field { text-align: left; padding: 12px 18px; }
  .review-rating-field legend { width: auto; margin: 13px 0 0; }
  .review-rating-input { clear: none; justify-content: flex-end; }
  .review-rating-description { margin-top: 0; text-align: right; }
}
@keyframes reviewComposerIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.review-image-viewer { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(18,16,14,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.review-image-viewer[hidden] { display: none !important; }
.review-image-viewer img { display: block; max-width: min(1200px,calc(100vw - 120px)); max-height: calc(100vh - 96px); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35); background: #fff; }
.review-image-viewer button { position: absolute; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; }
.review-image-viewer__close { top: 22px; right: 22px; }
.review-image-viewer__prev { left: 22px; }
.review-image-viewer__next { right: 22px; }
.review-image-viewer__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12px; }
.admin-bar .review-composer,
.admin-bar .review-image-viewer { top: var(--miratap-admin-bar-offset, 32px); }

@keyframes reviewCardIn { from { opacity: .15; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) { .product-reviews__list { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 1680px) { .product-reviews__list { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1180px) { .product-reviews__overview { grid-template-columns: 1fr 1fr; } .review-overview-note { grid-column: 1 / -1; } }

@media (max-width: 767px) {
  .product-reviews { padding-bottom: 82px; }
  .product-reviews__head { grid-template-columns: 1fr; align-items: start; }
  .product-reviews__write { width: 100%; }
  .product-reviews__overview,
  .product-reviews__list { grid-template-columns: 1fr; }
  .product-reviews__toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .review-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .review-filter button { flex: 0 0 auto; }
  .review-sort { width: 100%; justify-content: space-between; }
  .review-sort select { flex: 1 1 auto; }
  .review-entry { padding: 16px 14px 14px; border-radius: 18px; }
  .review-entry__topline { gap: 10px; }
  .review-entry__head strong { font-size: 15px; }
  .review-entry h3 { font-size: 17px; }
  .review-entry__footer { align-items: flex-start; flex-direction: column; }
  .product-reviews__load { align-items: stretch; flex-direction: column; }
  .product-reviews__load > div { display: grid; grid-template-columns: 1fr 1fr; }
  .product-reviews__load button { width: 100%; }
  .review-composer { align-items: flex-end; padding: 0; }
  .review-composer__dialog { width: 100%; max-height: calc(100dvh - 24px - var(--miratap-admin-bar-offset,0px)); border-radius: 24px 24px 0 0; border-bottom: 0; }
  .review-composer__head { padding: 24px 22px 18px; }
  .review-composer__head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 32px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #e4dcd3; }
  .review-composer__head p { display: none; }
  .review-composer__head h3 { font-size: 22px; }
  .review-composer__head > button { top: 22px; right: 20px; }
  .review-composer__head span { margin-top: 7px; font-size: 11px; }
  .review-composer__body { padding: 18px 22px 22px; }
  .review-composer__product { padding-bottom: 16px; }
  .review-form__grid { grid-template-columns: 1fr; gap: 18px; }
  .review-form__field input, .review-form__field textarea { font-size: 16px; }
  .review-form__field input { min-height: 48px; padding: 11px 13px; }
  .review-form__field textarea { min-height: 112px; padding: 12px 13px 4px; }
  .review-composer__footer { padding: 14px 22px max(18px,env(safe-area-inset-bottom)); }
  .review-form__consent span { font-size: 11px; }
  .review-form__actions { margin-top: 12px; gap: 10px; }
  .review-upload__preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .review-image-viewer { padding: 16px; }
  .review-image-viewer img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 88px); border-radius: 14px; }
  .review-image-viewer__close { top: 14px; right: 14px; }
  .review-image-viewer__prev { left: 8px; }
  .review-image-viewer__next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .review-breakdown b,
  .review-entry,
  .review-entry__media img,
  .product-reviews__write,
  .review-filter button, .review-composer__dialog, .review-composer button, .review-upload__button { animation: none; transition: none; }
}

/* Video feedback and explicitly labelled local demonstrations. */
.review-entry__demo { padding: 3px 7px; border: 1px solid #d8cbbb; border-radius: 4px; color: #8a7157; font-size: 10px; white-space: nowrap; }
.review-entry__topline { flex-wrap: wrap; }
.review-entry__video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #24211e; object-fit: contain; }
.review-upload__video-preview video { display: block; width: 100%; max-height: 220px; margin-top: 10px; background: #24211e; border-radius: 8px; }
.review-upload__video-preview > button { margin-top: 8px; padding: 6px 12px; border: 1px solid #ddd3ca; border-radius: 4px; background: #fff; color: #71685f; cursor: pointer; }

/* A quiet invitation when no local reviews have been approved yet. */
.product-detail-page .product-reviews--embedded-empty .product-reviews__head {
  position: relative;
  align-items: center;
  gap: 28px;
  padding: 30px 32px 30px 110px;
  border: 1px solid #e8e1d9;
  border-radius: 12px;
  background: #f8f6f3;
}
.product-detail-page .product-reviews--embedded-empty .product-reviews__head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  border: 1px solid #e7ddd1;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%2397836c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21l-3 3V7a3 3 0 013-3h14a3 3 0 013 3v11a3 3 0 01-3 3H7z'/%3E%3Cpath d='M9 10h10M9 15h7'/%3E%3C/svg%3E") center / 27px no-repeat;
}
.product-detail-page .product-reviews--embedded-empty .product-reviews__heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .015em;
}
.product-detail-page .product-reviews--embedded-empty .product-reviews__heading > span {
  max-width: 540px;
  margin-top: 8px;
  color: #82786e;
  font-size: 13px;
  line-height: 1.85;
}
.product-detail-page .product-reviews--embedded-empty .product-reviews__write {
  min-width: 156px;
  min-height: 46px;
  border-radius: 6px;
  background: #302c27;
  box-shadow: none;
}
.product-detail-page .product-reviews--embedded-empty .product-reviews__write:hover {
  background: #494138;
  box-shadow: 0 5px 14px rgba(44, 35, 26, .1);
}
.product-reviews--embedded-empty .product-reviews__list:empty { display: none; }
@media (max-width: 767px) {
  .product-detail-page .product-reviews--embedded-empty .product-reviews__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border-radius: 10px;
  }
  .product-detail-page .product-reviews--embedded-empty .product-reviews__head::before {
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    transform: none;
    background-size: 23px;
  }
  .product-detail-page .product-reviews--embedded-empty .product-reviews__heading h2 {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 60px;
    font-size: 17px;
  }
  .product-detail-page .product-reviews--embedded-empty .product-reviews__heading > span {
    margin-top: 16px;
  }
  .product-detail-page .product-reviews--embedded-empty .product-reviews__write { width: 100%; }
}
