.yx-overlay[hidden], .yx-overlay [hidden] { display: none !important; }
html.yx-lock { overflow: hidden; }
.yx-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, .42);
  color: #151515;
  font-family: inherit;
}
.yx-sheet {
  --sheet-gutter: clamp(12px, 4.2vw, 20px);
  --sheet-price-gold: #8b692d;
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .14);
}
.yx-sheet:focus { outline: 0; }
@media (prefers-reduced-motion: no-preference) {
  .yx-overlay:not([hidden]) .yx-sheet { animation: yx-rise 220ms ease-out; }
}
@keyframes yx-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.yx-sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 6px var(--sheet-gutter);
  border-bottom: 1px solid var(--card-divider);
}
.yx-sheet h2 { margin: 0; color: var(--heading); font-size: var(--text-title); font-weight: 700; line-height: 1.4; }
.yx-sheet-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-end: -7px;
  border-radius: 50%;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}
.yx-sheet-close span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef3f0;
}
.yx-sheet button { cursor: pointer; font-family: inherit; }
.yx-sheet :is(button, input, select, textarea, label) { -webkit-tap-highlight-color: rgba(0, 0, 0, .08); }
.yx-sheet .yx-confirm:disabled { cursor: wait; opacity: .65; }
.yx-sheet button:focus-visible { outline: 2px solid #151515; outline-offset: 2px; }
.yx-sheet .buy-button:focus-visible { outline-color: var(--champagne); outline-offset: -2px; }

.yx-application {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.yx-form-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 12px var(--sheet-gutter) 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.yx-form-scroll > * { flex: none; }
.yx-insured h3 {
  margin: 0 0 7px;
  color: var(--heading);
  font-size: var(--text-caption);
  font-weight: 700;
}
.yx-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.yx-fields > input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  color: #151515;
  background: #f7f9f8;
  border: 1px solid #dce5df;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.yx-fields > input::placeholder { color: #666; font-size: var(--text-body); opacity: 1; }
.yx-fields > input:focus {
  border-color: #7fa79a;
  outline: 2px solid #d6e5df;
}
.yx-fields > [aria-invalid="true"] { border-color: #a67b39; }
.yx-fields > [aria-invalid="true"]:focus { border-color: #a67b39; outline-color: #f0e3c6; }
.yx-validation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  color: #694b19;
  background: #fcf8ee;
  border: 1px solid #eadcb8;
  border-radius: 8px;
  font-size: var(--text-caption);
  line-height: 1.45;
}
.yx-validation-icon {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  height: 16px;
  margin-top: 1px;
  background: #eddfbf;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}
.yx-choices .yx-validation { margin-bottom: 8px; }
.yx-agreements .yx-validation { margin: 0 2px 6px; }
.yx-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.yx-choices legend { margin-bottom: 7px; padding: 0; color: var(--heading); font-size: var(--text-caption); font-weight: 700; }
.yx-options { display: grid; gap: 8px; }
.yx-product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yx-option { position: relative; min-width: 0; cursor: pointer; }
.yx-option > input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.yx-option > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 2px 8px;
  height: 100%;
  min-height: 60px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 10px;
  font-size: var(--text-caption);
  line-height: 1.3;
  white-space: nowrap;
}
.yx-option > span::before {
  content: "";
  grid-row: span 2;
  align-self: center;
  width: 15px;
  height: 15px;
  border: 1px solid #93aaa0;
  border-radius: 50%;
}
.yx-option strong { color: var(--heading); font-weight: 700; white-space: normal; }
.yx-option small { color: #454545; font-size: var(--text-caption); font-variant-numeric: tabular-nums; }
.yx-option input:checked + span {
  background: #fcf8ee;
  border-color: #a67b39;
}
.yx-option input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fcf8ee;
}
.yx-option input:checked + span small { color: var(--sheet-price-gold); font-weight: 600; }
.yx-option input:focus-visible + span { outline: 2px solid #151515; outline-offset: 1px; }
.yx-consent {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-height: 38px;
  padding: 8px 0;
  font-size: clamp(11px, 3.4vw, var(--text-body));
  line-height: 1.5;
  cursor: pointer;
}
.yx-consent input {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.yx-consent input:focus-visible { outline: 2px solid #151515; outline-offset: 2px; }
.yx-consent label { cursor: pointer; }
.yx-consent-tail { display: inline-block; white-space: nowrap; }
.yx-document, .yx-document-back {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
.yx-document {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yx-document-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  font-size: var(--text-caption);
}
.yx-document-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.yx-document-view {
  min-height: 0;
  padding: 16px var(--sheet-gutter) max(24px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: var(--text-body);
  line-height: 1.65;
}
.yx-document-view:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.yx-document-view p + p { margin-top: 10px; }
.yx-agreement-copy > h3 {
  color: var(--heading);
  font-size: var(--text-title);
  line-height: 1.45;
  text-align: center;
}
.yx-agreement-copy > h4 {
  margin: 14px 0 0;
  color: var(--green);
  font-size: var(--text-body);
}
.yx-agreement-copy > p { margin-top: 8px; }
.yx-agreement-date { color: var(--muted); text-align: end; }
.yx-service-manual { display: block; }
.yx-service-manual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-divider);
  border-radius: 8px;
}
.yx-health-actions {
  display: grid;
  flex: none;
  padding: 8px var(--sheet-gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--card-divider);
}
.yx-health-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.yx-health-actions .buy-button:disabled { opacity: .6; cursor: default; }
.yx-payment-notice {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 32px), 288px);
  margin: auto;
  padding: 22px 18px 16px;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
  text-align: center;
}
.yx-payment-notice:not([open]) { display: none; }
.yx-payment-notice::backdrop { background: rgba(0, 0, 0, .3); }
.yx-payment-notice p { margin-bottom: 16px; font-size: var(--text-section); font-weight: 700; }
.yx-submit-bar {
  display: grid;
  flex: none;
  gap: 8px;
  padding: 8px var(--sheet-gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e8e8e8;
}
.yx-submit-bar .yx-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.yx-total {
  font-size: var(--text-section);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.yx-purchase-assurances {
  display: flex;
  justify-content: center;
  gap: 8px clamp(12px, 5vw, 24px);
  margin: 0;
  padding: 0;
  color: var(--green);
  font-size: var(--text-caption);
  line-height: 1.35;
  list-style: none;
}
.yx-purchase-assurances > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.yx-assurance-lock {
  position: relative;
  width: 10px;
  height: 8px;
  margin-top: 3px;
  border: 1px solid;
  border-radius: 2px;
}
.yx-assurance-lock::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 5px;
  top: -5px;
  left: 1px;
  border: 1px solid;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.yx-assurance-check {
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(-45deg);
}

