.warranty-lookup-dialog {
  width: min(780px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #e5eaee;
  border-radius: 22px;
  box-sizing: border-box;
  background: #fff;
  color: #293948;
  font-family: var(--font-hn, sans-serif);
  box-shadow: 0 28px 75px rgb(14 33 49 / 22%);
}

.warranty-lookup-dialog::backdrop {
  background: rgb(18 33 46 / 66%);
}

.warranty-lookup-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 24px;
  border-bottom: 1px solid #e8eef2;
  background: linear-gradient(125deg, #f5f9fc, #fff 75%);
}

.warranty-lookup-dialog__eyebrow,
.warranty-lookup-results__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #bd510c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.warranty-lookup-dialog__header h2 {
  margin: 0;
  color: #213447;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.25;
}

.warranty-lookup-dialog__intro {
  margin: 10px 0 0;
  color: #657789;
  font-size: 14px;
  line-height: 1.6;
}

.warranty-lookup-dialog__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dfe6eb;
  border-radius: 50%;
  background: #fff;
  color: #34495a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.warranty-lookup-dialog__close:hover {
  background: #eaf0f4;
}

.warranty-lookup-dialog__body {
  padding: 24px 30px 28px;
}

.warranty-lookup-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.warranty-lookup-form label {
  display: block;
  margin-bottom: 7px;
  color: #293948;
  font-size: 14px;
  font-weight: 600;
}

.warranty-lookup-form label span {
  color: #d85401;
}

.warranty-lookup-dialog .warranty-lookup-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e0e6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: #243748;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}

.warranty-lookup-dialog .warranty-lookup-form input::placeholder {
  color: #9aa8b3;
}

.warranty-lookup-dialog .warranty-lookup-form input:focus,
.warranty-lookup-dialog .warranty-lookup-form input:focus-visible {
  border-color: #d85401;
  background: #fff;
  box-shadow: none !important;
  outline: none !important;
}

.warranty-lookup-form__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.warranty-lookup-form__or {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 3px 5px;
  background: #fff;
  color: #8a99a6;
  font-size: 10px;
  font-weight: 700;
}

.warranty-lookup-form__submit {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  background: #d85401;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.warranty-lookup-form__submit:hover {
  background: #b94300;
  transform: translateY(-1px);
}

.warranty-lookup-form__submit:disabled {
  opacity: .6;
  cursor: wait;
}

.warranty-lookup-dialog__close:focus-visible,
.warranty-lookup-form__submit:focus-visible,
.warranty-lookup-dialog__contact a:focus-visible {
  outline: 2px solid #d85401;
  outline-offset: 3px;
}

.warranty-lookup-dialog__message {
  margin-top: 20px;
  border-radius: 10px;
  padding: 11px 14px;
  background: #f2f6f9;
  color: #42596c;
  font-size: 14px;
  line-height: 1.5;
}

.warranty-lookup-dialog__message[data-state="success"] {
  background: #edf8f2;
  color: #1d6645;
}

.warranty-lookup-dialog__message[data-state="error"] {
  background: #fff3eb;
  color: #9b3a08;
}

.warranty-lookup-dialog__message:empty,
.warranty-lookup-dialog__results[hidden] {
  display: none;
}

.warranty-lookup-dialog__results {
  margin-top: 18px;
}

.warranty-lookup-results__card {
  overflow: hidden;
  border: 1px solid #e2e9ee;
  border-radius: 16px;
  margin-top: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(22 46 65 / 6%);
}

.warranty-lookup-results__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: #f6f9fb;
}

.warranty-lookup-results__top h3 {
  margin: 0;
  color: #213447;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.warranty-lookup-results__product {
  margin: 7px 0 0;
  color: #506478;
  font-size: 14px;
  line-height: 1.5;
}

.warranty-lookup-results__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e7f5ed;
  color: #26734c;
  font-size: 12px;
  font-weight: 700;
}

.warranty-lookup-results__card > .warranty-lookup-results__fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 24px 0;
  border-radius: 12px;
  padding: 15px 18px;
  background: #f6f9fb;
}

.warranty-lookup-results__section {
  margin: 24px 24px 0;
  border-top: 1px solid #e8edf1;
  padding-top: 20px;
}

.warranty-lookup-results__section:last-child {
  margin-bottom: 24px;
}

.warranty-lookup-results__section h4 {
  margin: 0 0 15px;
  color: #253b4d;
  font-size: 16px;
  line-height: 1.4;
}

.warranty-lookup-results__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 22px;
  margin: 0;
}

.warranty-lookup-results__fields > div {
  min-width: 0;
}

.warranty-lookup-results__fields dt {
  margin-bottom: 4px;
  color: #748697;
  font-size: 12px;
  line-height: 1.4;
}

.warranty-lookup-results__fields dd {
  margin: 0;
  color: #293948;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.warranty-lookup-results__field--wide {
  grid-column: 1 / -1;
}

.warranty-lookup-results__history {
  margin-top: 12px;
  border: 1px solid #e7edf1;
  border-left: 3px solid #d85401;
  border-radius: 10px;
  padding: 15px 17px;
  background: #fbfcfd;
}

.warranty-lookup-results__history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #293948;
  font-size: 14px;
}

.warranty-lookup-results__history-top span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf2f6;
  color: #52697c;
  font-size: 12px;
}

.warranty-lookup-results__history-title {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.warranty-lookup-results__history .warranty-lookup-results__fields + .warranty-lookup-results__fields {
  margin-top: 14px;
}

.warranty-lookup-results__empty {
  margin: 0;
  color: #748697;
  font-size: 14px;
}

.warranty-lookup-results__actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e8edf1;
  padding: 16px 24px;
}

.warranty-lookup-results__download {
  border: 1px solid #d85401;
  border-radius: 999px;
  padding: 9px 18px;
  background: #fff;
  color: #bd510c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.warranty-lookup-results__download:hover {
  background: #fff3eb;
}

.warranty-lookup-results__download:disabled {
  opacity: .6;
  cursor: wait;
}

.warranty-lookup-dialog__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  border-top: 1px solid #e8eef2;
  padding: 20px 30px;
  background: #fbfcfd;
  color: #667583;
  font-size: 14px;
  line-height: 1.5;
}

.warranty-lookup-dialog__support strong {
  display: block;
  color: #293948;
  font-size: 15px;
}

.warranty-lookup-dialog__support p {
  margin: 4px 0 0;
}

.warranty-lookup-dialog__support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 10px;
}

.warranty-lookup-dialog__contact a {
  color: #bd510c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.warranty-lookup-dialog__freshness {
  color: #657789;
  font-size: 12px;
}

.warranty-lookup-dialog__freshness--stale {
  color: #a34a12;
}

.warranty-lookup-dialog__qr-link {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  padding: 7px;
  background: #fff;
  font-size: 11px;
  text-align: center;
  text-decoration: none !important;
}

.warranty-lookup-dialog__qr-link canvas {
  display: block;
  width: 104px;
  height: 104px;
}

@media (max-width: 600px) {
  .warranty-lookup-dialog {
    width: calc(100% - 24px);
    max-height: 92vh;
    border-radius: 16px;
  }

  .warranty-lookup-dialog__header,
  .warranty-lookup-dialog__body {
    padding: 20px;
  }

  .warranty-lookup-dialog__contact {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .warranty-lookup-form__row,
  .warranty-lookup-results__fields,
  .warranty-lookup-results__card > .warranty-lookup-results__fields {
    grid-template-columns: 1fr;
  }

  .warranty-lookup-form__or {
    display: none;
  }

  .warranty-lookup-results__top {
    padding: 18px;
  }

  .warranty-lookup-results__top h3 {
    font-size: 19px;
  }

  .warranty-lookup-results__card > .warranty-lookup-results__fields,
  .warranty-lookup-results__section {
    margin-left: 18px;
    margin-right: 18px;
  }
}
