body.vlr-rsg-open {
  overflow: hidden;
}

.vlr-rsg {
  --vlr-rsg-ink: #3a2a1f;
  --vlr-rsg-text: #3a2a1f;
  --vlr-rsg-muted: #75675c;
  --vlr-rsg-white: #fff;
  --vlr-rsg-mist: #f9f8f4;
  --vlr-rsg-line: #e6dfd5;
  width: min(680px, calc(100% - 40px));
  max-width: 680px;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--vlr-rsg-line);
  border-radius: 0;
  background: var(--vlr-rsg-white);
  color: var(--vlr-rsg-text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.45;
}

.vlr-rsg::backdrop {
  background: rgba(20, 14, 9, .58);
}

.vlr-rsg,
.vlr-rsg *,
.vlr-rsg *::before,
.vlr-rsg *::after {
  box-sizing: border-box;
}

.vlr-rsg button,
.vlr-rsg input {
  font: inherit;
}

.vlr-rsg__head {
  position: relative;
  display: flex;
  min-height: 124px;
  padding: 26px 68px 20px 28px;
  align-items: flex-start;
  border-bottom: 1px solid var(--vlr-rsg-line);
}

.vlr-rsg__eyebrow {
  margin: 0 0 5px;
  color: var(--vlr-rsg-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vlr-rsg__head h2 {
  margin: 0;
  color: var(--vlr-rsg-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.06;
}

.vlr-rsg__subtitle {
  margin: 6px 0 0;
  color: var(--vlr-rsg-muted);
  font-size: 14px;
}

.vlr-rsg__close {
  position: absolute;
  top: 14px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: var(--vlr-radius-control, 12px);
  background: transparent;
  color: var(--vlr-rsg-ink);
  cursor: pointer;
}

.vlr-rsg__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.vlr-rsg__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--vlr-rsg-line);
}

.vlr-rsg__tabs button {
  position: relative;
  min-height: 52px;
  padding: 0 8px;
  border: 0;
  background: var(--vlr-rsg-white);
  color: var(--vlr-rsg-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}

.vlr-rsg__tabs button::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--vlr-rsg-ink);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity 140ms ease-out, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.vlr-rsg__tabs button[aria-selected='true'] {
  color: var(--vlr-rsg-ink);
}

.vlr-rsg__tabs button[aria-selected='true']::after {
  opacity: 1;
  transform: scaleX(1);
}

.vlr-rsg__body {
  padding: 22px 28px 24px;
}

.vlr-rsg__panel.is-active {
  animation: vlr-rsg-panel-in 180ms cubic-bezier(.22, 1, .36, 1);
}

.vlr-rsg__panel[hidden] {
  display: none;
}

.vlr-rsg__instruction {
  display: grid;
  grid-template-columns: 28px 1fr 112px;
  gap: 12px;
  min-height: 74px;
  align-items: center;
}

.vlr-rsg__step {
  align-self: start;
  padding-top: 3px;
  color: #8a6a3f;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}

.vlr-rsg__instruction h3 {
  margin: 0;
  color: var(--vlr-rsg-ink);
  font-size: 14px;
  font-weight: 500;
}

.vlr-rsg__instruction p {
  margin: 5px 0 0;
  color: var(--vlr-rsg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vlr-rsg__measure {
  width: 112px;
  height: 72px;
  fill: none;
  stroke: var(--vlr-rsg-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.vlr-rsg__field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.vlr-rsg__field label {
  color: var(--vlr-rsg-ink);
  font-size: 12px;
  font-weight: 500;
}

.vlr-rsg__input-wrap {
  position: relative;
  display: block;
}

.vlr-rsg__input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 50px 0 13px;
  border: 1px solid var(--vlr-faint, #8f8378);
  border-radius: var(--vlr-radius-control, 12px);
  background: var(--vlr-rsg-white);
  color: var(--vlr-rsg-ink);
  font-size: 16px;
}

.vlr-rsg__input-wrap > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--vlr-rsg-muted);
  font-size: 12px;
  transform: translateY(-50%);
}

.vlr-rsg input:focus-visible,
.vlr-rsg button:focus-visible {
  outline: 2px solid var(--vlr-rsg-ink);
  outline-offset: 2px;
}

.vlr-rsg__error {
  min-height: 18px;
  margin: 7px 0 0;
  color: #9f2f2f;
  font-size: 12px;
}

.vlr-rsg__result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-top: 4px;
  padding: 16px 18px;
  align-items: center;
  background: var(--vlr-rsg-mist);
}

.vlr-rsg__result[hidden] {
  display: none;
}

.vlr-rsg__result-label {
  margin: 0 0 1px;
  color: var(--vlr-rsg-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vlr-rsg__result-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.vlr-rsg__result-size {
  color: var(--vlr-rsg-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.vlr-rsg__result-unit {
  color: var(--vlr-rsg-muted);
  font-size: 12px;
}

.vlr-rsg__result-meta {
  margin: 4px 0 0;
  color: var(--vlr-rsg-muted);
  font-size: 11px;
}

.vlr-rsg .vlr-rsg__select {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--vlr-rsg-ink);
  border-radius: var(--vlr-radius-control, 12px);
  background: var(--vlr-rsg-ink);
  color: var(--vlr-rsg-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.vlr-rsg .vlr-rsg__select:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.vlr-rsg__sizer-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 16px 0 0;
}

.vlr-rsg__sizer-link button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--vlr-rsg-ink);
  border-radius: var(--vlr-radius-control, 12px);
  background: var(--vlr-rsg-white);
  color: var(--vlr-rsg-ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.vlr-rsg__sizer-link button:hover {
  background: var(--vlr-rsg-ink);
  color: var(--vlr-rsg-white);
}

.vlr-rsg__sizer-link button:active {
  transform: translateY(1px);
}

.vlr-rsg__sizer-link small {
  flex-basis: 100%;
  margin-top: 6px;
  color: var(--vlr-rsg-muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.vlr-rsg__body[data-vlr-active-method='known'] > .vlr-rsg__error,
.vlr-rsg__body[data-vlr-active-method='known'] > .vlr-rsg__result,
.vlr-rsg__body[data-vlr-active-method='known'] > .vlr-rsg__sizer-link {
  display: none;
}

.vlr-rsg__table-scroll {
  max-height: 416px;
  overflow: auto;
  border-top: 1px solid var(--vlr-rsg-line);
  border-bottom: 1px solid var(--vlr-rsg-line);
}

.vlr-rsg table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.vlr-rsg th,
.vlr-rsg td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--vlr-rsg-line);
  white-space: nowrap;
}

.vlr-rsg th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--vlr-rsg-white);
  color: var(--vlr-rsg-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vlr-rsg th:first-child,
.vlr-rsg td:first-child {
  padding-left: 12px;
}

.vlr-rsg tr.is-current td {
  background: var(--vlr-rsg-mist);
  font-weight: 500;
}

.vlr-rsg__table-note {
  margin: 10px 0 0;
  color: var(--vlr-rsg-muted);
  font-size: 10px;
}

@keyframes vlr-rsg-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Closing (VEL-20261103-PLP-FEINSCHLIFF, Apple-Review M4): one step shorter than an
   entrance, the sheet fades and sinks by the overlay shift, the veil fades with it.
   pdp-ring-size-guide.js closes the dialog when the animation ends. */
.vlr-rsg.is-closing {
  animation: vlr-rsg-out var(--vlr-motion-fast) var(--vlr-ease) both;
  pointer-events: none;
}

.vlr-rsg.is-closing::backdrop {
  animation: vlr-rsg-backdrop-out var(--vlr-motion-fast) var(--vlr-ease) both;
}

@keyframes vlr-rsg-out {
  to { opacity: 0; transform: translateY(var(--vlr-overlay-shift)); }
}

@keyframes vlr-rsg-backdrop-out {
  to { opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .vlr-rsg .vlr-rsg__select:hover {
    background: var(--vlr-rsg-white);
    color: var(--vlr-rsg-ink);
  }
}

@media (max-width: 600px) {
  .vlr-rsg {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 18px);
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .vlr-rsg__head {
    min-height: 116px;
    padding: 22px 58px 17px 20px;
  }

  .vlr-rsg__head h2 {
    font-size: 32px;
  }

  .vlr-rsg__close {
    top: 8px;
    right: 4px;
  }

  .vlr-rsg__tabs button {
    min-height: 50px;
    padding: 0 5px;
    font-size: 11px;
  }

  .vlr-rsg__body {
    padding: 18px 20px 20px;
  }

  .vlr-rsg__instruction {
    grid-template-columns: 24px 1fr 72px;
    gap: 8px;
  }

  .vlr-rsg__measure {
    width: 72px;
    height: 54px;
  }

  .vlr-rsg__result {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vlr-rsg__select {
    width: 100%;
    white-space: normal;
  }

  .vlr-rsg__sizer-link {
    justify-content: flex-start;
  }

  .vlr-rsg__sizer-link button {
    width: 100%;
    justify-content: center;
  }

  .vlr-rsg__sizer-link small {
    text-align: left;
  }

  .vlr-rsg__table-scroll {
    max-height: 500px;
  }

  .vlr-rsg th,
  .vlr-rsg td {
    padding: 9px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vlr-rsg__tabs button::after {
    transition-duration: 1ms;
  }

  .vlr-rsg__panel.is-active,
  .vlr-rsg.is-closing,
  .vlr-rsg.is-closing::backdrop {
    animation: none;
  }

  .vlr-rsg__sizer-link button {
    transition-duration: 1ms;
  }

  .vlr-rsg,
  .vlr-rsg * {
    scroll-behavior: auto !important;
  }
}

/* Size-help additions (VEL-20260930-SIZE-HELP) */
.vlr-rsg .vlr-rsg__hint {
  margin: 0 0 14px;
  color: var(--vlr-rsg-text);
  font-size: 13px;
  line-height: 1.5;
}

.vlr-rsg .vlr-rsg__resize-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--vlr-rsg-line);
  color: var(--vlr-rsg-text);
  font-size: 13px;
  line-height: 1.5;
}

.vlr-rsg__body[data-vlr-active-method='known'] > .vlr-rsg__resize-note {
  display: none;
}
