@layer dmLiveDesign {
  .dm-live-shell .dm-search-disclosure:has(.dm-header-search) {
    background: #f3f6f8 !important;
    box-shadow: inset 0 -1px #d9e0e5;
  }

  .dm-live-shell .dm-search-disclosure > #site-search:has(.dm-header-search) {
    padding-block: 0 !important;
    background: transparent !important;
  }

  .dm-live-shell #site-search #title-search .dm-header-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 48px !important;
    grid-template-areas:
      "label label label"
      "query submit close"
      "fitment fitment fitment";
    gap: 8px 12px !important;
    padding-block: 16px !important;
  }

  .dm-live-shell #site-search .dm-header-search > label {
    grid-area: label;
    margin: 0 !important;
    color: #142d43 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .dm-live-shell #site-search #title-search .dm-header-search > .search-input {
    grid-area: query;
    height: 48px !important;
    margin: 0 !important;
    padding-inline: 12px !important;
    font-size: 16px !important;
  }

  .dm-header-search > button {
    display: grid !important;
    place-items: center;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    font: inherit;
    cursor: pointer;
  }

  .dm-header-search > .dm-header-search-submit {
    grid-area: submit;
    padding: 0 22px !important;
    background: #c92e28 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600;
    text-transform: none !important;
  }

  .dm-header-search > .dm-header-search-submit:hover {
    background: #ac2722 !important;
  }

  .dm-header-search > .dm-search-close {
    grid-area: close;
    width: 48px !important;
    padding: 0 !important;
    border-color: #c5d1da !important;
    background: transparent !important;
    color: #142d43 !important;
  }

  .dm-header-search > .dm-search-close:hover {
    background: #e8eef2 !important;
  }

  .dm-header-search > .dm-search-close .ui-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .dm-live-shell #site-search .dm-header-search > .dm-header-search-fitment {
    grid-area: fitment;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #a52e27 !important;
    font-size: 14px;
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }

  body.dm-live-redesign:has(.dm-header-search) > .title-search-result {
    margin: 0 !important;
  }

  body.dm-live-redesign:has(.dm-header-search) > .title-search-result :is(.maxwidth-theme, .col-md-12) {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  @media (max-width: 680px) {
    .dm-live-shell #site-search #title-search .dm-header-search {
      grid-template-columns: minmax(0, 1fr) auto !important;
      grid-template-areas: "label close" "query submit" "fitment fitment";
      gap: 4px 8px !important;
      padding-block: 8px 12px !important;
    }

    .dm-header-search > .dm-search-close {
      justify-self: end;
      width: 44px !important;
      height: 44px !important;
      border-color: transparent !important;
    }

    .dm-header-search > .dm-header-search-submit {
      padding-inline: 16px !important;
    }

    .dm-live-shell #site-search .dm-header-search > .dm-header-search-fitment {
      min-height: 44px;
    }
  }
}
