/* Use the same typography tokens and square control artwork as checkout. */
.jung-product-options,
.jung-options-dialog {
  color: #000;
  font-family: var(--font-body, 'HelveticaNeue', Helvetica, Arial, sans-serif);
  font-size: var(--fs-body, 12px);
  line-height: var(--lh-body, 1.45);
  text-align: left;
}

.jung-product-options { width: 100%; margin: var(--space-text, 22px) 0; }
.jung-product-options fieldset { min-width: 0; border: 1px solid #000; padding: 16px; margin: 0 0 12px; }
.jung-product-options legend,
.jung-product-options label,
.jung-product-options p,
.jung-product-options .amount,
.jung-product-options .amount * {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}
.jung-product-options legend { width: auto; padding: 0 6px; font-weight: 700; }
.jung-product-options p { margin: 0 0 12px; font-weight: 400; }
.jung-product-options label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; margin: 0; font-weight: 400; cursor: pointer; }
.jung-product-options label > span { flex: 1; min-width: 0; }
.jung-product-options input[type='checkbox'],
.jung-product-options input[type='radio'] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  margin: 2px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='0.5' y='0.5' width='13' height='13' fill='%23fff' stroke='%23000'/%3E%3C/svg%3E");
  cursor: pointer;
}
.jung-product-options input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect width='14' height='14' fill='%23000'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' d='M3 7l2.5 2.5 5-5'/%3E%3C/svg%3E");
}
.jung-product-options input:focus-visible { outline: 1px solid #000; outline-offset: 2px; }
.jung-product-options .jung-options-total { font-weight: 700; margin-top: 12px; }

.jung-options-dialog { border: 0; padding: 28px; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; background: #fff; }
.jung-options-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.jung-options-dialog h2 { margin: 0; padding-right: 32px; font-family: inherit; font-size: var(--fs-menu-d, 21px); line-height: var(--lh-menu-d, 25px); font-weight: 700; letter-spacing: normal; }
.jung-options-dialog .jung-options-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #000; font-family: inherit; font-size: var(--fs-menu-d, 21px); line-height: 1; }
.jung-options-dialog [type=submit],
#cform:has(.jung-product-options) .cform-btn {
  width: 100%;
  padding: 9px 26px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body, 'HelveticaNeue', Helvetica, Arial, sans-serif);
  font-size: var(--fs-body, 12px);
  font-weight: 700;
  line-height: var(--lh-body, 1.45);
  letter-spacing: normal;
  cursor: pointer;
}
.jung-options-dialog [type=submit]:disabled { opacity: .6; cursor: wait; }
.jung-options-error { color: #a11919; font-size: inherit; }
.jung-options-error:empty { display: none; }
