.warranty-page .page-hero h1 + p {
  white-space: normal;
}

.warranty-page .footer-top .footer-grid {
  display: grid;
  align-items: start;
}

.warranty-search-card {
  max-width: 720px;
  margin-inline: auto;
}

.warranty-query-form label {
  font-size: 14px;
  color: var(--muted);
}

.warranty-query-form input {
  font-size: 16px;
}

.warranty-query-form .warranty-form-tip {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.warranty-query-form .form-feedback:empty {
  display: none;
}

.warranty-record-page {
  min-height: 70vh;
  padding: 32px 20px 60px;
  background: #f4f7f9;
  color: #202a32;
}

[data-warranty-search][hidden],
.warranty-record-page[hidden],
.warranty-photo-dialog [hidden] {
  display: none;
}

.warranty-record-container {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}

.warranty-record-title {
  margin: 0 0 20px;
  color: #202a32;
  font-size: 24px;
  font-weight: 600;
}

.warranty-record-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(25, 41, 55, .08);
}

.warranty-record-banner {
  padding: 12px 24px;
  background: #19a9c9;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.warranty-record-content {
  padding: 5px 24px 12px;
}

.warranty-record-content dl {
  margin: 0;
}

.warranty-customer-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #edf0f2;
}

.warranty-customer-fields {
  position: relative;
  z-index: 2;
}

.warranty-field-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f2;
  font-size: 15px;
  line-height: 1.55;
}

.warranty-field-row:last-child {
  border-bottom: 0;
}

.warranty-customer-fields .warranty-field-row {
  min-height: 68px;
  align-items: center;
}

.warranty-field-label {
  flex: 0 0 110px;
  color: #66727b;
}

.warranty-field-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #1e282f;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.warranty-seal {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  width: 122px;
  height: 122px;
  border: 4px solid #d92530;
  border-radius: 50%;
  color: #d92530;
  opacity: .6;
  line-height: 1.2;
  transform: translateY(-50%);
  pointer-events: none;
}

.warranty-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  margin: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-17deg);
}

.warranty-seal-head { font-size: 11px; }
.warranty-seal-title {
  margin: 7px 0 4px;
  padding: 3px 0;
  border-block: 2px solid currentColor;
  font-size: 19px;
  font-weight: 800;
}
.warranty-seal-stars { font-size: 13px; letter-spacing: 2px; }

.warranty-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}

.warranty-image-button {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #e8edf0;
  color: #66727b;
  font: inherit;
  cursor: zoom-in;
}

.warranty-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.warranty-image-unavailable {
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 12px;
}

.warranty-back-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 24px;
  border: 1px solid #19a9c9;
  border-radius: 24px;
  background: #fff;
  color: #0b91b1;
  font: inherit;
  cursor: pointer;
}

.warranty-back-button:hover { background: #eaf8fc; }
.warranty-back-button:focus-visible,
.warranty-image-button:focus-visible,
.warranty-photo-dialog button:focus-visible {
  outline: 3px solid #19a9c9;
  outline-offset: 3px;
}

.warranty-photo-open { overflow: hidden; }
.warranty-photo-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 16px;
  border: 1px solid #3d4853;
  border-radius: 12px;
  background: #12161b;
  color: #fff;
}
.warranty-photo-dialog::backdrop { background: rgba(0, 0, 0, .86); }
.warranty-photo-toolbar,
.warranty-photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.warranty-photo-dialog button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #56626f;
  border-radius: 8px;
  background: #222a33;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.warranty-photo-dialog button:disabled { opacity: .4; cursor: default; }
.warranty-photo-stage {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin: 16px 0;
}
.warranty-photo-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  margin: auto;
  object-fit: contain;
}
.warranty-photo-error { color: #c1c8d0; text-align: center; }

@media (max-width: 820px) {
  .warranty-page .header-main .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .warranty-page .brand { min-width: 0; gap: 8px; }
  .warranty-page .brand-logo { width: 112px; height: 44px; }
  .warranty-page .brand-text span { font-size: 11px; }
  .warranty-page .menu-toggle { flex-shrink: 0; }
}

@media (max-width: 600px) {
  .warranty-record-page { padding: 20px 12px 40px; }
  .warranty-record-title { font-size: 20px; margin-bottom: 16px; }
  .warranty-record-banner { padding: 12px 15px; font-size: 17px; }
  .warranty-record-content { padding: 5px 15px 11px; }
  .warranty-field-row { padding: 12px 0; font-size: 14px; }
  .warranty-field-label { flex-basis: 85px; }
  .warranty-customer-fields .warranty-field-row { min-height: 61px; }
  .warranty-seal { width: 110px; height: 110px; border-width: 3.5px; }
  .warranty-seal-head { font-size: 9.5px; }
  .warranty-seal-title { font-size: 17px; }
  .warranty-seal-stars { font-size: 12px; }
  .warranty-image-button { width: 80px; height: 80px; }
}
