.einvoice-checker {
  box-sizing: border-box;
  width: min(100%, 960px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255, 203, 61, .24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}

.einvoice-checker [data-einvoice-step] { min-width: 0; }

.einvoice-progress {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 203, 61, .35);
  border-radius: 999px;
  color: #ffcb3d;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.einvoice-checker h2 { margin: 0 0 20px; font-size: clamp(1.35rem, 2vw, 1.8rem); }

.einvoice-grid,
.einvoice-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.einvoice-grid label,
.einvoice-field { display: grid; min-width: 0; gap: 8px; }

.einvoice-grid span,
.einvoice-field span,
.einvoice-checker fieldset legend { font-weight: 700; }

.einvoice-checker input:not([type="checkbox"]),
.einvoice-checker select,
.einvoice-checker textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.einvoice-checker fieldset { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.einvoice-checker fieldset legend { margin: 0 0 10px; padding: 0; }

.einvoice-checker fieldset legend { grid-column: 1 / -1; }

.einvoice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.einvoice-check {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: inherit;
  cursor: pointer;
  font-size: clamp(.86rem, 2.8vw, .98rem);
  line-height: 1.2;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.einvoice-check:hover { border-color: rgba(255, 203, 61, .65); background: rgba(255, 203, 61, .08); transform: translateY(-1px); }

.einvoice-check > span {
  min-width: 0;
  overflow: visible;
  text-align: left;
  white-space: nowrap;
}

.einvoice-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  box-sizing: border-box;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px !important;
  margin: 0;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.einvoice-check input[type="checkbox"]::before {
  content: "✓";
  color: #101827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0);
  transition: transform .12s ease;
}

.einvoice-check input[type="checkbox"]:checked { border-color: #ffcb3d; background: #ffcb3d; }
.einvoice-check input[type="checkbox"]:checked::before { transform: scale(1); }
.einvoice-check input[type="checkbox"]:focus-visible { outline: 3px solid rgba(255, 203, 61, .42); outline-offset: 2px; }

.einvoice-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  margin: 2px 0 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
}

.einvoice-consent > span {
  white-space: normal;
}

.einvoice-consent:hover { border-color: transparent; background: transparent; transform: none; }

.einvoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.einvoice-actions .wt-button { min-width: 120px; min-height: 44px; margin-top: 0; }

.einvoice-result {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 22px;
  padding: 18px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: #fff;
  color: #111;
}

.einvoice-offer { color: #ffcb3d; font-size: 1.1rem; font-weight: 800; }
.einvoice-links { columns: 2; padding-left: 20px; }
.einvoice-links li { margin: 8px 0; break-inside: avoid; }

.einvoice-offer-card {
  box-sizing: border-box;
  border: 1px solid rgba(255, 203, 61, .24);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
  background: rgba(255, 203, 61, .07);
}

@media (max-width: 760px) {
  .einvoice-grid,
  .einvoice-content-grid,
  .einvoice-options { grid-template-columns: 1fr; }
  .einvoice-links { columns: 1; }
  .einvoice-actions { display: grid; grid-template-columns: 1fr; }
  .einvoice-actions .wt-button { width: 100%; }
}

@media (max-width: 420px) {
  .einvoice-checker { padding: 16px; border-radius: 14px; }
  .einvoice-check { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .einvoice-check,
  .einvoice-check input[type="checkbox"]::before { transition: none; }
}
