/*
 * Desktop-only layout for the warranty history page.
 * Mobile rules remain isolated in warranty-history-mobile.css.
 */
@media (min-width: 901px) {
  body.hp-page--warranty-history {
    min-width: 960px;
    min-height: 100vh;
    padding: 0 0 56px;
    background:
      radial-gradient(circle at 8% 8%, rgba(33, 174, 255, .12), transparent 28%),
      radial-gradient(circle at 94% 32%, rgba(74, 92, 255, .09), transparent 25%),
      #f3f7fc;
  }

  body.hp-page--warranty-history #main-content {
    min-height: auto;
  }

  .whh-page {
    width: min(1440px, calc(100% - 36px));
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    border-radius: 30px;
    background: transparent;
    box-shadow: none;
  }

  .whh-hero {
    height: 310px;
    padding: 58px 72px;
    overflow: hidden;
    border-radius: 30px;
    background:
      radial-gradient(circle at 78% 42%, rgba(80, 221, 255, .38), transparent 23%),
      linear-gradient(118deg, #078efa 0%, #076be8 48%, #073fc3 100%);
    box-shadow: 0 24px 60px rgba(6, 83, 190, .2);
  }

  .whh-hero::before {
    height: 100%;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 65%, transparent);
  }

  .whh-hero::after {
    right: 70px;
    top: -145px;
    width: 590px;
    height: 390px;
    border-color: rgba(255, 255, 255, .18);
    transform: rotate(-13deg);
  }

  .whh-brand > img {
    max-width: 180px;
    height: 52px;
  }

  .whh-brand > span {
    width: 44px;
    height: 48px;
  }

  .whh-brand > span svg {
    width: 42px;
    height: 46px;
  }

  .whh-brand b {
    font-size: 18px;
  }

  .whh-brand small {
    font-size: 11px;
  }

  .whh-hero-copy {
    margin-top: 34px;
  }

  .whh-hero-copy p {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .whh-hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 3vw, 46px);
    letter-spacing: -1.5px;
  }

  .whh-hero-copy span {
    font-size: 14px;
  }

  .whh-hero-art {
    right: 90px;
    bottom: -42px;
    width: 390px;
    height: 390px;
  }

  .whh-card {
    width: calc(100% - 96px);
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    grid-template-rows: auto auto auto minmax(160px, auto) auto;
    column-gap: 34px;
    align-items: start;
    margin: -54px auto 0;
    padding: 34px 38px 38px;
    border: 1px solid rgba(224, 233, 243, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 25px 60px rgba(22, 69, 117, .14);
    backdrop-filter: blur(16px);
  }

  .whh-card > h2,
  .whh-search-row,
  .whh-filters,
  .whh-history,
  .whh-empty,
  .whh-actions {
    grid-column: 1;
  }

  .whh-card > h2 {
    grid-row: 1;
    margin: 0 0 18px;
    font-size: 21px;
  }

  .whh-search-row {
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
  }

  .whh-search-row label {
    height: 52px;
    padding: 0 16px;
    border-color: #dce6f1;
    border-radius: 13px;
    transition: border-color .2s, box-shadow .2s;
  }

  .whh-search-row label:focus-within {
    border-color: #2189f5;
    box-shadow: 0 0 0 4px rgba(8, 120, 245, .1);
  }

  .whh-search-row label svg {
    flex-basis: 21px;
  }

  .whh-search-row input {
    font-size: 13px;
  }

  .whh-search-row button {
    gap: 8px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .2s;
  }

  .whh-search-row button:hover {
    border-color: #9bc9f8;
    background: #f2f8ff;
    transform: translateY(-1px);
  }

  .whh-filters {
    grid-row: 3;
    display: flex;
    gap: 9px;
    margin: 14px 0 0;
  }

  .whh-filters button {
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 11px;
    transition: .2s ease;
  }

  .whh-filters button:not(.is-active):hover {
    color: #0874eb;
    border-color: #acd2f8;
    background: #f3f8ff;
  }

  .whh-history,
  .whh-empty {
    grid-row: 4;
  }

  .whh-group {
    margin-top: 21px;
  }

  .whh-group h3 {
    margin-bottom: 10px;
    color: #59677a;
    font-size: 12px;
    font-weight: 600;
  }

  .whh-list {
    gap: 10px;
  }

  .whh-item {
    min-height: 96px;
    grid-template-columns: 68px minmax(0, 1fr) 148px;
    gap: 16px;
    padding: 12px 34px 12px 12px;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(27, 78, 125, .06);
    transition: border-color .2s, box-shadow .2s, transform .2s;
  }

  .whh-item:first-child {
    border-color: #d6e4f4;
  }

  .whh-item:hover {
    border-color: #8abdf3;
    box-shadow: 0 12px 26px rgba(20, 89, 154, .11);
    transform: translateY(-2px);
  }

  .whh-item__image {
    width: 68px;
    height: 70px;
    border-radius: 11px;
  }

  .whh-item__image img {
    width: 72px;
    height: 72px;
  }

  .whh-item__body b {
    margin-bottom: 9px;
    font-size: 13px;
  }

  .whh-item__body small {
    margin-top: 5px;
    font-size: 10px;
  }

  .whh-item aside span {
    padding: 7px 11px;
    border-radius: 14px;
    font-size: 9px;
    font-weight: 600;
  }

  .whh-item aside small {
    font-size: 9px;
  }

  .whh-item > i {
    right: 13px;
    font-size: 24px;
    transition: transform .2s;
  }

  .whh-item:hover > i {
    transform: translateX(3px);
  }

  .whh-empty {
    margin: 22px 0 0;
    padding: 42px 20px;
    border-radius: 16px;
  }

  .whh-empty > span {
    width: 52px;
    height: 52px;
  }

  .whh-empty h3 {
    margin-top: 14px;
    font-size: 14px;
  }

  .whh-empty p {
    max-width: 430px;
    font-size: 11px;
  }

  .whh-actions {
    grid-row: 5;
    min-height: 54px;
    padding: 13px 6px 0;
  }

  .whh-actions button,
  .whh-actions span {
    font-size: 10px;
  }

  .whh-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
  }

  .whh-utils {
    grid-column: 2;
    grid-row: 1 / 5;
    margin: 0;
    padding: 23px;
    border: 1px solid #dfebf7;
    border-radius: 18px;
    background:
      radial-gradient(circle at 100% 0, rgba(61, 168, 255, .12), transparent 36%),
      linear-gradient(145deg, #f6fbff, #fff);
  }

  .whh-utils > h2 {
    margin: 0 0 17px;
    font-size: 16px;
  }

  .whh-utils > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .whh-utils article {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 75px;
    padding: 13px;
    border: 1px solid #e8eef5;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(28, 79, 125, .06);
    transition: transform .2s, box-shadow .2s;
  }

  .whh-utils article:hover {
    box-shadow: 0 10px 22px rgba(28, 79, 125, .1);
    transform: translateY(-2px);
  }

  .whh-utils article > span {
    width: 38px;
    height: 38px;
  }

  .whh-utils article b {
    align-self: end;
    font-size: 11px;
  }

  .whh-utils article small {
    align-self: start;
    font-size: 8px;
  }

  .whh-search-again {
    grid-column: 2;
    grid-row: 5;
    height: 52px;
    margin: 16px 0 0;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 600;
    transition: box-shadow .2s, transform .2s;
  }

  .whh-search-again:hover {
    box-shadow: 0 12px 24px rgba(8, 116, 233, .28);
    transform: translateY(-2px);
  }

  .whh-toast {
    bottom: 28px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .whh-hero {
    padding-right: 48px;
    padding-left: 48px;
  }

  .whh-hero-art {
    right: 30px;
    width: 340px;
    height: 340px;
  }

  .whh-card {
    width: calc(100% - 56px);
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 24px;
    padding: 28px;
  }
}

/* Match the full-width visual system used by the dealer-network page. */
@media (min-width: 901px) {
  body.hp-page--warranty-history {
    padding-bottom: 0;
    background: #0645cb;
  }

  body.hp-page--warranty-history #main-content {
    background: #f7faff;
  }

  .whh-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .whh-hero {
    height: 310px;
    padding-top: 55px;
    padding-right: max(40px, calc((100% - 1120px) / 2));
    padding-bottom: 54px;
    padding-left: max(40px, calc((100% - 1120px) / 2));
    border-radius: 0;
    background:
      linear-gradient(180deg, #0645cb 0, rgba(6, 69, 203, .96) 10px, rgba(6, 69, 203, 0) 58px),
      radial-gradient(circle at 75% 40%, rgba(29, 190, 255, .58), transparent 23%),
      radial-gradient(circle at 96% 4%, rgba(26, 151, 255, .75), transparent 28%),
      linear-gradient(118deg, #0645cb 0%, #0068eb 55%, #008cf7 100%);
    box-shadow: none;
  }

  .whh-hero::before {
    opacity: .24;
    background-image:
      radial-gradient(circle, rgba(255, 255, 255, .8) 1px, transparent 1.5px),
      linear-gradient(130deg, transparent 45%, rgba(255, 255, 255, .08) 46%, transparent 47%);
    background-size: 15px 15px, 160px 160px;
    mask-image: linear-gradient(90deg, transparent 6%, #000 60%, #000);
  }

  .whh-hero::after {
    display: none;
  }

  .whh-brand {
    display: none;
  }

  .whh-hero-copy {
    width: 48%;
    margin-top: 0;
    padding-top: 22px;
  }

  .whh-hero-copy p {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.08;
  }

  .whh-hero-copy h1 {
    margin: 4px 0 0;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
  }

  .whh-hero-copy span {
    max-width: 430px;
    display: block;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
    opacity: .92;
  }

  .whh-hero-art {
    right: max(48px, calc((100% - 1120px) / 2));
    bottom: -25px;
    width: 390px;
    height: 390px;
  }

  .whh-card {
    width: min(1120px, calc(100% - 40px));
    min-height: 430px;
    column-gap: 24px;
    margin: -33px auto 0;
    padding: 0 0 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .whh-card > h2 {
    min-height: 66px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #e2eaf4;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 87, 157, .12);
  }

  .whh-search-row {
    gap: 12px;
    padding: 0 14px 14px;
    border-right: 1px solid #e2eaf4;
    border-left: 1px solid #e2eaf4;
    background: #fff;
  }

  .whh-search-row label,
  .whh-search-row button {
    height: 52px;
    box-shadow: none;
  }

  .whh-filters {
    margin: 0;
    padding: 0 14px 16px;
    border-right: 1px solid #e2eaf4;
    border-bottom: 1px solid #e2eaf4;
    border-left: 1px solid #e2eaf4;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 87, 157, .12);
  }

  .whh-history,
  .whh-empty {
    margin-top: 26px;
  }

  .whh-actions {
    margin-top: 4px;
  }

  .whh-utils {
    margin-top: 0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(29, 70, 111, .07);
  }

  .whh-search-again {
    margin-top: 14px;
  }
}
