body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #faf9f7;
  color: #222;
}

.tailoring {
    max-width: 1660px;
    margin: 100px auto;
    padding: 0 24px;
}

.tailoring-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}



/* =====================
   SVG
===================== */
.svg-wrap {
  max-width: 420px;
  margin: auto;
}

.svg-wrap svg {
  width: 100%;
  height: auto;
}

.svg-measure {
  transition: opacity .3s ease;
  cursor: pointer;
}

.svg-measure.active {
  opacity: 1 !important;
}
.svg-front,
.svg-back {
  transition: opacity .3s ease;
}

.svg-back {
  opacity: 0;
  pointer-events: none;
}

.show-back .svg-front {
  opacity: 0;
  pointer-events: none;
}

.show-back .svg-back {
  opacity: 1;
  pointer-events: auto;
}


/* =====================
   FORM
===================== */
.measurements h2 {
  font-weight: 400;
  margin-bottom: 25px;
}

.field {
  margin-bottom: 16px;
}
.field:hover {
    box-shadow: 0px 0px 30px -10px #000;
}

.field label {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd;
  background: #fff;
}

.field.active input {
  border-color: #a05ecc;
  box-shadow: 0 0 0 1px rgba(160,94,204,.35);
}

.tip {
  font-size: 12px;
  color: #777;
  display: none;
}

.field.active .tip {
  display: block;
}
/* =====================
   DESIGN TOKENS
===================== */
:root {
  --bg-main: #f7f7f6;
  --panel-bg: #ffffff;
  --border-soft: rgba(0,0,0,0.08);
  --text-primary: #111;
  --text-muted: #6f6f6f;
  --accent: #000; /* luxury neutral */
  --accent-soft: rgba(0,0,0,0.08);
}

/* =====================
   BASE
===================== */
body {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.tailoring {
  max-width: 1280px;
  margin: 100px auto;
  padding: 0 24px;
}

/* =====================
   LAYOUT
===================== */


/* =====================
   SVG PANEL
===================== */
.svg-wrap {
  background: var(--panel-bg);
  border-radius: 14px;
  padding: 36px 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

.svg-wrap svg {
  width: 100%;
  height: auto;
}

/* measurement lines */
.svg-measure {
  opacity: 0;
  transition: opacity .25s ease;
}

.svg-measure.active {
  opacity: 1;
}

/* =====================
   FORM PANEL
===================== */
.measurements {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 48px 48px 56px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

.measurements h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* =====================
   FIELD SYSTEM
===================== */
.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 15px;
  background: #fff;
  transition: all .2s ease;
}

/* hover / focus */
.field input:hover {
  border-color: rgba(0,0,0,0.15);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* active via SVG hover */
.field.active input {
  border-color: var(--accent);
}

/* =====================
   TOOLTIP
===================== */
.tip {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  display: none;
  line-height: 1.5;
}

.field.active .tip {
  display: block;
}

/* =====================
   FRONT / BACK MODEL
===================== */
#BackGirl_svg__d_long_with_sleeves_front,
#BackGirl_svg__d_long_with_sleeves_back {
  transition: opacity .25s ease;
}


.tailoring-grid > div {height: -webkit-fill-available;width: 33%;}

.tailoring-grid > div.svg-wrap {
    width: 20%;
}
  /* =====================
   LABEL UI
===================== */
.field {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all .25s ease;
}

.field:hover {
  border-color: rgba(0,0,0,.18);
}

.field-label {
  font-size: 14px;
  font-weight: 500;
}

/* tooltip */
.tooltip {
  position: absolute;
  bottom: 110%;
  left: 0;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateY(4px);
}

.field:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   MODAL
===================== */
.measurement-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 60%;
    height: auto ! IMPORTANT;
    margin: auto ! IMPORTANT;
    border-radius: 18px;
    padding: 50px;
    top: 25%;
    min-height: 300px;
}

.modal-media video,
.modal-media img {
  width: 100%;
  border-radius: 12px;
}

.modal-form h3 {
  margin-bottom: 12px;
}

.modal-input {
  width: 97%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}
.unit-toggle {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 20px;
    padding-top: 20px;
}
.unit-toggle button:hover {
    box-shadow: 0px 1px 10px 0px #814a4a;
}
.unit-toggle button {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    text-decoration: underline;
    letter-spacing: .08em;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: #fff;
    cursor: pointer;
    transition: all 0.4s ease;
}

.unit-toggle button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.field.error {
  outline: 2px solid #c0392b;
  border-radius: 6px;
}
.modal-save {
  margin-top: 16px;
  padding: 12px 18px;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.modal-save:hover {
  opacity: 0.85;
}

.field-label .value {
  font-weight: 500;
  margin-left: 6px;
}
ul.wc-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
}

ul.wc-item-meta li {
    display: flex;
    border: 1px solid;
    margin: 2px;
    padding: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    align-items: center;
}