/* Add custom CSS styles below */ 
:root {
  --fhsc-black: #0b0b0b;
  --fhsc-white: #ffffff;
  --fhsc-paper: #f4f3ef;
  --fhsc-line: #deddd7;
  --fhsc-muted: #6c6b66;
  --fhsc-success: #176b47;
  --fhsc-warning: #875d12;
}

body.fhsc-lock {
  overflow: hidden;
}

.fhsc-size-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.fhsc-size-head .s-product-options-option-label {
  margin: 0 !important;
}

.fhsc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--fhsc-black);
  border-radius: 10px;
  background: var(--fhsc-black);
  color: var(--fhsc-white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
  transition: 160ms ease;
}

.fhsc-trigger svg {
  width: 18px;
  height: 18px;
}

.fhsc-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.fhsc-overlay[hidden],
.fhsc-result[hidden] {
  display: none !important;
}

.fhsc-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 7, 7, 0.64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.fhsc-overlay.is-open {
  opacity: 1;
}

.fhsc-modal {
  width: min(100%, 560px);
  max-height: min(90vh, 820px);
  overflow: auto;
  direction: rtl;
  border-radius: 22px;
  background: var(--fhsc-white);
  color: var(--fhsc-black);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0px.34);
  font-family: inherit;
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.fhsc-overlay.is-open .fhsc-modal {
  transform: translateY(0) scale(1);
}

.fhsc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--fhsc-line);
  background: var(--fhsc-black);
  color: var(--fhsc-white);
}

.fhsc-eyebrow {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  direction: ltr;
  text-align: right;
}

.fhsc-header h2 {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 800;
}

.fhsc-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.fhsc-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fhsc-white);
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}

.fhsc-body {
  padding: 22px 24px 26px;
}

.fhsc-field,
.fhsc-fieldset {
  margin: 0 0 19px;
}

.fhsc-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fhsc-field label,
.fhsc-fieldset legend {
  color: var(--fhsc-black);
  font-size: 13px;
  font-weight: 800;
}

.fhsc-field-head output {
  min-width: 72px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--fhsc-paper);
  color: var(--fhsc-black);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.fhsc-field input[type="range"] {
  width: 100%;
  accent-color: var(--fhsc-black);
  cursor: pointer;
}

.fhsc-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.fhsc-fieldset legend {
  margin-bottom: 10px;
}

.fhsc-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fhsc-segments--two {
  grid-template-columns: repeat(2, 1fr);
}

.fhsc-segments button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--fhsc-line);
  border-radius: 11px;
  background: var(--fhsc-white);
  color: var(--fhsc-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.fhsc-segments button.is-active {
  border-color: var(--fhsc-black);
  background: var(--fhsc-black);
  color: var(--fhsc-white);
}

.fhsc-field--number > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.fhsc-field--number > label span {
  color: var(--fhsc-muted);
  font-size: 10px;
  font-weight: 500;
}

.fhsc-number-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--fhsc-line);
  border-radius: 11px;
  background: var(--fhsc-white);
}

.fhsc-number-wrap:focus-within {
  border-color: var(--fhsc-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.fhsc-number-wrap input {
  min-width: 0;
  flex: 1;
  padding: 12px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fhsc-black);
  font: inherit;
  font-size: 14px;
}

.fhsc-number-wrap > span {
  padding: 0 13px;
  color: var(--fhsc-muted);
  font-size: 12px;
}

.fhsc-field--number small {
  display: block;
  margin-top: 7px;
  color: var(--fhsc-muted);
  font-size: 10px;
  line-height: 1.6;
}

.fhsc-calculate,
.fhsc-select-size {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--fhsc-black);
  border-radius: 12px;
  background: var(--fhsc-black);
  color: var(--fhsc-white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.fhsc-select-size:disabled {
  cursor: default;
  opacity: 0.68;
}

.fhsc-privacy {
  margin: 9px 0 0;
  color: var(--fhsc-muted);
  font-size: 9px;
  text-align: center;
}

.fhsc-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--fhsc-line);
  border-radius: 16px;
  background: var(--fhsc-paper);
}

.fhsc-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.fhsc-result-badge {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fhsc-white);
  color: var(--fhsc-success);
  font-size: 9px;
  font-weight: 800;
}

.fhsc-result-label {
  color: var(--fhsc-muted);
  font-size: 12px;
  font-weight: 700;
}

.fhsc-result-size {
  color: var(--fhsc-black);
  font-size: clamp(42px, 12vw, 60px);
  font-weight: 900;
  line-height: 0.9;
  direction: ltr;
}

.fhsc-result-message,
.fhsc-result-measurements,
.fhsc-result-alternative,
.fhsc-result-note {
  margin: 0 0 8px;
  color: var(--fhsc-black);
  font-size: 12px;
  line-height: 1.75;
}

.fhsc-result-measurements {
  font-weight: 800;
}

.fhsc-result-alternative {
  color: var(--fhsc-success);
  font-weight: 700;
}

.fhsc-result-note {
  margin-bottom: 13px;
  color: var(--fhsc-muted);
  font-size: 10px;
}

.fhsc-status {
  min-height: 16px;
  margin-top: 8px;
  color: var(--fhsc-warning);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 640px) {
  .fhsc-trigger {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .fhsc-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .fhsc-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
  }

  .fhsc-header {
    padding: 20px 18px 17px;
  }

  .fhsc-body {
    padding: 19px 18px calc(22px + env(safe-area-inset-bottom));
  }

 -body {
    padding .fhsc-field--number > label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}