.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.warranty-check-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid color-mix(in oklab, var(--accent) 26%, var(--line));
  border-radius: 10px;
  color: var(--accent-600);
  background: var(--accent-50);
  font: 700 12px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.warranty-check-link > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.warranty-check-link .warranty-check-link-arrow {
  width: 14px;
  height: 14px;
  transition: transform .18s ease;
}

.warranty-check-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 24px -15px rgba(48, 103, 232, .7);
  transform: translateY(-1px);
}

.warranty-check-link:hover .warranty-check-link-arrow { transform: translateX(2px); }

.warranty-check-link:focus-visible,
.warranty-lookup-close:focus-visible,
.warranty-lookup-method:has(input:focus-visible),
.warranty-lookup-submit:focus-visible,
.warranty-lookup-results-head button:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 30%, transparent);
  outline-offset: 2px;
}

body.warranty-lookup-open { overflow: hidden; }

body.warranty-lookup-open .help-bubble {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.warranty-lookup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 15, 31, .68);
  backdrop-filter: blur(10px);
  animation: warrantyLookupFade .2s ease both;
}

.warranty-lookup-overlay[hidden] { display: none; }

.warranty-lookup-dialog {
  position: relative;
  width: min(960px, 100%);
  height: min(820px, calc(100vh - 48px));
  max-height: min(820px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 42px 100px -40px rgba(0, 0, 0, .65);
  animation: warrantyLookupRise .35s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes warrantyLookupFade {
  from { opacity: 0; }
}

@keyframes warrantyLookupRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
}

.warranty-lookup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.warranty-lookup-close:hover { color: var(--ink); background: var(--line-2); transform: rotate(4deg); }
.warranty-lookup-close svg { width: 17px; height: 17px; }

.warranty-lookup-aside {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(181, 204, 28, .28), transparent 38%),
    linear-gradient(155deg, #194BAF 0%, #112F70 62%, #091B42 100%);
}

.warranty-lookup-aside::before,
.warranty-lookup-aside::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.warranty-lookup-aside::before { width: 310px; height: 310px; right: -210px; top: 105px; }
.warranty-lookup-aside::after { width: 170px; height: 170px; right: -65px; bottom: 54px; border-color: rgba(181, 204, 28, .32); }

.warranty-lookup-aside-logo {
  position: relative;
  z-index: 1;
  width: 158px;
  filter: drop-shadow(0 10px 20px rgba(4, 18, 52, .2));
}

.warranty-lookup-aside-logo img { display: block; width: 100%; height: auto; }
.warranty-lookup-aside > div { position: relative; z-index: 1; }

.warranty-lookup-aside-kicker,
.warranty-lookup-kicker {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.warranty-lookup-aside-kicker { margin-bottom: 10px; color: var(--lime); }

.warranty-lookup-aside > div > strong {
  display: block;
  font: 600 30px/1.12 var(--font-display);
  letter-spacing: -.035em;
}

.warranty-lookup-aside > div > p {
  margin-top: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.65;
}

.warranty-lookup-aside-seal {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.warranty-lookup-aside-seal > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #203600;
  background: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.warranty-lookup-aside-seal p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 10px; line-height: 1.5; }
.warranty-lookup-aside-seal b { color: #fff; font-size: 11px; }

.warranty-lookup-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 38px 40px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-100) transparent;
}

.warranty-lookup-main::-webkit-scrollbar { width: 9px; }
.warranty-lookup-main::-webkit-scrollbar-track { background: transparent; }
.warranty-lookup-main::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent-100);
}
.warranty-lookup-main::-webkit-scrollbar-thumb:hover { background: var(--peri); }

.warranty-lookup-header { padding-right: 42px; }

.warranty-lookup-header h2 {
  margin: 5px 0 7px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
}

.warranty-lookup-header p {
  max-width: 570px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.warranty-lookup-form { margin-top: 26px; }

.warranty-lookup-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.warranty-lookup-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.warranty-lookup-method {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.warranty-lookup-method:hover { border-color: color-mix(in oklab, var(--accent) 42%, var(--line)); transform: translateY(-1px); }
.warranty-lookup-method.is-selected { border-color: var(--accent); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent); }
.warranty-lookup-method input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.warranty-lookup-method-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--accent);
  background: var(--line-2);
}

.warranty-lookup-method.is-selected .warranty-lookup-method-icon { color: #fff; background: var(--accent); }
.warranty-lookup-method-icon svg { width: 18px; height: 18px; }
.warranty-lookup-method > span:last-child { min-width: 0; }
.warranty-lookup-method strong, .warranty-lookup-method small { display: block; }
.warranty-lookup-method strong { color: var(--ink); font-size: 11px; }
.warranty-lookup-method small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.warranty-lookup-field { margin-top: 20px; }
.warranty-lookup-field > label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 11px; font-weight: 700; }

.warranty-lookup-input-wrap {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px -20px rgba(11, 31, 58, .45);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.warranty-lookup-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 13%, transparent); }
.warranty-lookup-field.is-invalid .warranty-lookup-input-wrap { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 9%, transparent); }

.warranty-lookup-prefix {
  display: flex;
  align-items: center;
  padding: 0 15px 0 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.warranty-lookup-prefix[hidden] { display: none; }

#warrantyLookupValue {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 500 14px var(--font-body);
}

#warrantyLookupValue::placeholder { color: #9BA5B5; }

.warranty-lookup-submit {
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 4px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font: 700 11px var(--font-body);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.warranty-lookup-submit:hover { background: var(--accent-600); }
.warranty-lookup-submit:disabled { opacity: .62; cursor: wait; }
.warranty-lookup-submit svg { width: 16px; height: 16px; transition: transform .16s ease; }
.warranty-lookup-submit:hover svg { transform: translateX(2px); }
.warranty-lookup-submit.is-loading svg { animation: warrantyLookupSpin .8s linear infinite; }

@keyframes warrantyLookupSpin { to { transform: rotate(360deg); } }

.warranty-lookup-field-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 6px; }
.warranty-lookup-field-meta small { color: var(--muted); font-size: 9px; }
.warranty-lookup-field-meta .warranty-lookup-error { color: var(--danger); font-weight: 600; text-align: right; }
.warranty-lookup-field-meta .warranty-lookup-error:empty { display: none; }

.warranty-lookup-message {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--danger) 24%, var(--line));
  border-radius: 10px;
  color: #8F2E25;
  background: color-mix(in oklab, var(--danger) 6%, white);
  font-size: 11px;
  line-height: 1.5;
}

.warranty-lookup-message.is-info { color: #244C91; border-color: var(--accent-100); background: var(--accent-50); }
.warranty-lookup-message[hidden], .warranty-lookup-results[hidden] { display: none; }

.warranty-lookup-results {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: warrantyLookupRise .28s ease both;
}

.warranty-lookup-results-head {
  position: sticky;
  top: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -10px 0 0;
  padding: 10px 0 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(214, 222, 235, .72);
}

.warranty-lookup-results-head::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 48px;
  background: #fff;
  pointer-events: none;
}

.warranty-lookup-results-head h3 { margin-top: 3px; font-size: 20px; }

.warranty-lookup-results-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
  font: 700 10px var(--font-body);
  cursor: pointer;
}

.warranty-lookup-results-head button:hover { background: var(--accent-50); }
.warranty-lookup-results-head button svg { width: 14px; height: 14px; }
.warranty-lookup-records { display: grid; gap: 13px; margin-top: 15px; }

.warranty-lookup-record {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 32px -28px rgba(11, 31, 58, .48);
}

.warranty-lookup-record.is-expired {
  border-color: #f5c6c2;
  background: #fef5f4;
}

.warranty-lookup-record.is-expired .warranty-lookup-record-head {
  background: linear-gradient(100deg, #fff0ee, #fef5f4 64%);
}

.warranty-lookup-record.is-active {
  border-color: #cde8cdab;
  background: #f4fbf491;
}

.warranty-lookup-record.is-active .warranty-lookup-record-head {
      background: #eaf7ea7d;
}

.warranty-lookup-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(100deg, var(--accent-50), #fff 64%);
}

.warranty-lookup-product { min-width: 0; display: flex; align-items: center; gap: 11px; }
.warranty-lookup-product-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--accent); background: #fff; box-shadow: var(--shadow-sm); }
.warranty-lookup-product-mark svg { width: 20px; height: 20px; }
.warranty-lookup-product strong, .warranty-lookup-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warranty-lookup-product strong { font-size: 12px; }
.warranty-lookup-product small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.warranty-lookup-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #3F6812;
  background: #b5cc1c57;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.warranty-lookup-status.is-pending { color: #916019; background: #FFF7E6; }
.warranty-lookup-status.is-expired, .warranty-lookup-status.is-rejected { color: #9B392E; background: #FFF0EE; }
.warranty-lookup-status.is-neutral { color: var(--muted); background: var(--line-2); }

.warranty-lookup-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px 16px 9px;
}

.warranty-lookup-detail { min-width: 0; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.warranty-lookup-detail:nth-child(odd) { padding-right: 14px; border-right: 1px dashed var(--line-2); }
.warranty-lookup-detail:nth-child(even) { padding-left: 14px; }
.warranty-lookup-detail:nth-last-child(-n + 2) { border-bottom: 0; }
.warranty-lookup-detail span, .warranty-lookup-detail strong { display: block; }
.warranty-lookup-detail span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.warranty-lookup-detail strong { margin-top: 3px; overflow-wrap: anywhere; color: var(--ink-2); font-size: 11px; }
.warranty-lookup-detail strong.is-active { color: var(--success); }
.warranty-lookup-detail strong.is-inactive { color: var(--muted); }

.warranty-lookup-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 9px;
}

.warranty-lookup-privacy svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--success); }
.warranty-lookup-privacy span { min-width: 0; line-height: 1.45; }

@media (max-width: 1100px) {
  .topbar-actions { gap: 12px; }
  .topbar-meta { gap: 14px; }
  .topbar-meta .meta-item:last-child { display: none; }
}

@media (max-width: 760px) {
  .topbar { gap: 14px; }
  .topbar-actions { margin-left: auto; }
  .warranty-check-link { min-height: 40px; padding-inline: 12px; }
  .warranty-check-link .warranty-check-link-arrow { display: none; }
  .warranty-lookup-overlay { align-items: end; padding: 0; }
  .warranty-lookup-dialog {
    width: 100%;
    height: auto;
    max-height: min(92vh, 820px);
    display: block;
    border: 0;
    border-radius: 22px 22px 0 0;
  }
  .warranty-lookup-aside { display: none; }
  .warranty-lookup-main { max-height: min(92vh, 820px); padding: 29px 21px 22px; }
  .warranty-lookup-header { padding-right: 36px; }
  .warranty-lookup-header h2 { font-size: 27px; }
  .warranty-lookup-header p { font-size: 12px; }
  .warranty-lookup-form { margin-top: 21px; }
  .warranty-lookup-method { min-height: 62px; padding: 10px; gap: 9px; }
  .warranty-lookup-method-icon { width: 33px; height: 33px; }
  .warranty-lookup-method small { display: none; }
  .warranty-lookup-field-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 9px;
  }
  .warranty-lookup-field-meta #warrantyLookupHint { order: 2; line-height: 1.45; }
  .warranty-lookup-field-meta .warranty-lookup-error:not(:empty) {
    order: 1;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in oklab, var(--danger) 26%, var(--line));
    border-radius: 8px;
    color: #9E3028;
    background: color-mix(in oklab, var(--danger) 7%, white);
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
  }
  .warranty-lookup-field-meta .warranty-lookup-error:not(:empty)::before {
    content: "!";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: grid;
    place-items: center;
    margin-top: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }
}

@media (max-width: 540px) {
  .brand-name img { width: 126px; }
  .warranty-check-link { gap: 7px; font-size: 10px; }
  .warranty-check-link > svg { width: 16px; height: 16px; }
  .warranty-lookup-methods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .warranty-lookup-method { min-height: 57px; }
  .warranty-lookup-method strong { font-size: 10px; line-height: 1.2; }
  .warranty-lookup-input-wrap { flex-wrap: wrap; padding-top: 1px; }
  .warranty-lookup-prefix { min-height: 48px; }
  #warrantyLookupValue { min-height: 48px; }
  #warrantyLookupValue[type="text"]::placeholder { font-size: 12px; }
  .warranty-lookup-submit { width: calc(100% - 8px); min-height: 43px; }
  .warranty-lookup-details { grid-template-columns: 1fr; }
  .warranty-lookup-detail,
  .warranty-lookup-detail:nth-child(odd),
  .warranty-lookup-detail:nth-child(even) { padding: 10px 0; border-right: 0; border-bottom: 1px dashed var(--line-2); }
  .warranty-lookup-detail:nth-last-child(2) { border-bottom: 1px dashed var(--line-2); }
  .warranty-lookup-detail:last-child { border-bottom: 0; }
}

@media (max-width: 390px) {
  .topbar { padding-inline: 14px; }
  .brand-name img { width: 112px; }
  .warranty-check-link { padding-inline: 9px; }
  .warranty-check-link > span { max-width: 78px; white-space: normal; line-height: 1.12; text-align: left; }
  .warranty-lookup-main { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .warranty-lookup-overlay,
  .warranty-lookup-dialog,
  .warranty-lookup-results,
  .warranty-lookup-submit.is-loading svg { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
