.beauty-comparison { background: #fcf1f4; color: #421424; font-family: var(--beauty-sans, Arial, sans-serif); padding: 42px 24px; scroll-margin-top: 24px; touch-action: pan-y pinch-zoom; }
.beauty-comparison *, .beauty-comparison *::before, .beauty-comparison *::after { box-sizing: border-box; }
.beauty-comparison__inner { max-width: 900px; margin: 0 auto; }
.beauty-comparison__header { max-width: 650px; margin: 0 auto 28px; text-align: center; }
.beauty-comparison h2 { margin: 0 0 14px; font: 600 clamp(30px, 3.8vw, 48px)/1.1 var(--beauty-sans, Arial, sans-serif); letter-spacing: -.045em; }
.beauty-comparison h2 em { color: #c9517e; font-style: normal; }
.beauty-comparison [hidden] { display: none !important; }
.beauty-comparison__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 22px; }
.beauty-comparison__choices button { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 9px 18px; border: 1px solid #e6bbcc; border-radius: 999px; background: linear-gradient(135deg, #fbeaf1, #edccda); color: #831039; box-shadow: inset 0 1px 0 #ffffff90, 0 2px 5px #8310390d; cursor: pointer; font-family: inherit; transition: box-shadow .25s, border-color .25s, transform .25s; }
.beauty-comparison__choices button::before { content: ""; position: absolute; z-index: 0; inset: -60% 0; width: 45%; background: linear-gradient(100deg, transparent, #ffffff65, transparent); transform: translateX(-160%) skewX(-18deg); pointer-events: none; }
.beauty-comparison__choices span { position: relative; z-index: 1; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.beauty-comparison__choices button[aria-pressed="true"] { border-color: #831039; background: linear-gradient(135deg, #9b3158, #68132f); color: #fff; box-shadow: 0 3px 9px #83103926; }
.beauty-comparison__choices button:focus-visible { outline: 3px solid #421424; outline-offset: 4px; }
.beauty-comparison__choices button:focus-visible::before { animation: comparison-button-shine 1.1s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .beauty-comparison__choices button:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 4px 16px #c9517e55; }
  .beauty-comparison__choices button:hover::before { animation: comparison-button-shine 1.1s ease-out; }
}
@keyframes comparison-button-shine {
  0% { transform: translateX(-160%) skewX(-18deg); }
  25%, 100% { transform: translateX(360%) skewX(-18deg); }
}
@media (hover: none), (pointer: coarse), (max-width: 749px) {
  .beauty-comparison__choices button::before { animation: comparison-button-shine 6s ease-in-out infinite; }
  .beauty-comparison__choices button:nth-child(2)::before { animation-delay: .6s; }
  .beauty-comparison__choices button:nth-child(3)::before { animation-delay: 1.2s; }
  .beauty-comparison__choices button:nth-child(4)::before { animation-delay: 1.8s; }
}
@media (prefers-reduced-motion: reduce) {
  .beauty-comparison__choices button { transition: none; }
  .beauty-comparison__choices button::before { animation: none !important; }
}
.beauty-comparison__slide { display: block; background: transparent; border-radius: 0; margin: 0 0 32px; }
.beauty-comparison.is-comparison-enhanced .beauty-comparison__slide { margin-bottom: 0; }
.beauty-comparison__slides { overflow: clip; }
.beauty-comparison__stage { height: clamp(540px, 72svh, 720px); display: flex; align-items: center; justify-content: center; background: transparent; }
.beauty-comparison__frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: 736 / 864; overflow: hidden; border-radius: 24px; }
.beauty-comparison__frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
.beauty-comparison__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.beauty-comparison__tag { position: absolute; z-index: 2; top: 16px; padding: 7px 10px; border-radius: 999px; background: #fffef4ed; color: #421424; font-size: 12px; font-weight: 650; box-shadow: 0 1px 8px #42142415; }
.beauty-comparison__tag--before { left: 12px; }
.beauty-comparison__tag--after { right: 12px; background: #831039; color: #fff; }
.beauty-comparison__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #ffffffc0; pointer-events: none; }
.beauty-comparison__watermark { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 5px 10px; width: max-content; max-width: 75%; background: #fffd; color: #351622; border-radius: 999px; font-size: 11px; text-align: center; }
.beauty-comparison.is-comparison-enhanced .beauty-comparison__before { clip-path: inset(0 50% 0 0); }
.beauty-comparison__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media screen and (min-width: 990px) {
  .beauty-comparison.is-comparison-enhanced { padding: 36px 40px; }
  .beauty-comparison.is-comparison-enhanced .beauty-comparison__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; gap: 24px 64px; max-width: 1120px; }
  .beauty-comparison.is-comparison-enhanced .beauty-comparison__header { grid-column: 1; grid-row: 1; align-self: end; margin: 0; text-align: left; }
  .beauty-comparison.is-comparison-enhanced h2 { margin: 0; font-size: clamp(36px, 3.2vw, 48px); }
  .beauty-comparison.is-comparison-enhanced .beauty-comparison__choices { grid-column: 1; grid-row: 2; justify-content: flex-start; margin: 0; }
  .beauty-comparison.is-comparison-enhanced .beauty-comparison__slides { grid-column: 2; grid-row: 1 / 4; }
  .beauty-comparison.is-comparison-enhanced .beauty-comparison__stage { height: clamp(360px, 32vw, 440px); }
  .beauty-comparison.is-comparison-enhanced .beauty-inline-cart { grid-column: 1; grid-row: 3; align-self: start; padding: 0; text-align: left; }
}
@media (max-width: 749px) {
  .beauty-comparison { padding: 30px 10px; }
  .beauty-comparison__inner { max-width: 540px; }
  .beauty-comparison__header { margin-bottom: 24px; }
  .beauty-comparison__choices { gap: 6px; margin: 0 auto 20px; }
  .beauty-comparison__choices button { padding: 8px 10px; }
  .beauty-comparison__stage { height: auto; width: 100%; }
  .beauty-comparison__frame { width: 100%; height: auto; max-width: none; }
}
@media print {
  .beauty-comparison [data-comparison-slide][hidden] { display: block !important; }
  .beauty-comparison [data-comparison-controls] { display: none !important; }
}
