/* responsive styles that either extend or are beyond the ones in grid.css */
/* modification - aadel - 12/19/2016 - not sure why this was set to 568, but making it 768 like bootstrap */
/* modification - kkd - 12/23/2016 - changing it back to 568 for now */
@media screen and ( max-width: 736px ){
  #phlLogo{ width: 100%; }
  #mainPanel{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 0 5px;
  }
  #contentBody{padding-left:5px; padding-right: 5px;}
  #finalLinks{ width: 100%; padding: 10px 0 0 0; }
  #finalLinksBottom{ height: 43px; width: 100%; }

  .searchText{
    width:100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
   }

  .searchSelect{
    width:100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
   }

  #mobileMenu{
    cursor: pointer;
    float: left;
    width: 34px;
    height: 26px;
    padding: 14px 0 0 10px;
  }

  #topBar #cartStatus{
    float: right;
    width: auto                                   !important;
    margin: 9px 10px 0 0;
  }

  ul.menu3Bar{
    list-style-type: none;
    padding: 0;
    margin: 0 0 0 3px;
  }

  .menu3Bar li{
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    margin: 0 0 4px 0;
    padding: 0;
  }

  #menuBar{
    position: static;
    width: 0                                      !important;
    padding: 0                                    !important;
    margin-top: 0px;
    visibility: hidden;
  }

  #mainMenu{
    list-style-type: none;
    padding: var(--sp-2);
    margin: 0;
    position: absolute;
    left: 4%;
    width: 92%;
    z-index: 900;
    background-color: var(--phl-surface);
    border: 1px solid var(--phl-line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
  }

  #mainMenu .menu{
    display:block;
    margin:0;
    padding: 0;
    float:none                                    !important;
    cursor:pointer;
    background-color: transparent;
    border-bottom: 1px solid var(--phl-line);
  }

  #mainMenu .menu:last-child{
    border-bottom: none;
  }

  #mainMenu .menu a{
    display: block;
    color: var(--phl-ink)                         !important;
    font-weight: 600;
    height: auto;
    padding: 12px 10px;
    background-color: transparent                 !important;
  }

  #mainMenu .activeMenu{
    background-color: transparent                 !important;
  }

  #mainMenu a.activeMenu{
    color: var(--phl-blue)                        !important;
    box-shadow: none;
  }

  #mainMenu .menu .menuDropDown{
    display: block;
    padding: 0;
    margin: 0 0 0 14px                            !important;
    border: none !important;
    background-color: transparent;
    box-shadow: none;
    visibility: inherit                           !important;
  }

  #mainMenu .menu .menuDropDown ul{list-style-type: none; padding:0; margin:0;}
  #mainMenu .menu .menuColumnOne{
    margin:0                                      !important;
    float:none                                    !important;
  }
  #mainMenu .menu .menuColumnTwo{
    float:none                                    !important;
  }

  #mainMenu .menu .menuItem{margin-bottom: 0px    !important;}

  #mainMenu .menu .menuItem a{color: var(--phl-ink-soft) !important; font-weight: 400; padding: 8px 10px;}
  #mainMenu .menu .menuItem a:hover{color: var(--phl-blue) !important; }
  #mainMenu .menu .menuItem a.activeLink{color: var(--phl-blue) !important; font-weight: 600;}

  .positionAbsolute{position: static              !important;}
  .left{float:none                                !important;}
  .right{float:none                               !important;}
  .top-spacing-10{margin-top:10px;}
  .bottom-spacing-10{margin-bottom:10px;}

  #resultHeaderPanel{width:100%;}

  #searchHeader, #searchHeaderParts {width: 100%; padding: 0; margin: 0;}
  #resultHeaderPanel .gutter40,
  #resultHeaderPanel .gutter40-0  {padding: 0;}
  #paginationPanel {padding: 0; margin: 20px 0 0 0;display:table;}

  #resultHeader {padding: 10px 5px;}

  #resultsContentPanel {margin: 0;}
  #resultHeaderPanel {position: relative; top: auto;}
  #closestYardsPanel {width: auto;}
  #closestYardsPanel h3{padding-top:0px !important;}
  #resultBody {width: auto; margin: 0 !important;}
  #resultBodyParts{ margin: 0; width: auto; text-align: center; }

  #shareSearchPanel, #filterPanel {background: none; background-color: #fff; border: 1px solid #000; right: 0; left: auto; width: 50%; height: auto; }
  #shareSearchPanelContent, #filterPanelContent {margin: 5% 10%; width: 80%;}
  #shareLink {width: 90%; margin: 0 auto;}
  .recyclerDetail {
    margin: 0 auto 10px auto;
    padding: 1% 2%;
    width: 80%;
    float: none !important;
  }

  #warrLink{visibility:hidden;}
  #bottomWarrLink{
    margin: 20px auto;
    text-align:center;
    visibility:visible;
  }

  #warrLink{visibility:hidden;}
  #bottomWarrLink{
    margin: 20px auto;
    text-align:center;
    visibility:visible;
  }

  #newSearch{
    margin: 20px 0;
  }

  #resultPanel .topBar{width:100%;}

  #cartStatus{
  }

  #cartStatus.oem{
    width:100%;
  }

  /* change pagination display */
  ul#paginationControl
  {

  }

  ul#paginationControl li a
  {
    display: block;
    border: 1px solid #adadad;
    padding: 8px;
    margin-right: 5px;
  }

  ul#paginationControl li a.currentPage
  {
    display: block;
  }

  /* parts page blurb */
  table.content
  {
    display:none;
    visibility: hidden;
  }

  /* reformat resizable Tables */

  table.resizableTable{
    width: 100%;
  }
  /* Force table to not be like tables anymore */
    table.resizableTable, table.resizableTable thead,
    table.resizableTable tbody, table.resizableTable th,
    table.resizableTable td, table.resizableTable tr {
      display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.resizableTable thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    table.resizableTable tr { border: 1px solid #ccc; }

    table.resizableTable td {
      /* Behave  like a "row" */
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      width: 50%;
      height: auto;
    }

    table.resizableTable td:first-child{
      background-color: var(--phl-blue-dark);
      color: #dedede;
    }

    table.resizableTable td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 6px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }

    /*
    Label the data
    */
    table.resizableTable td:nth-of-type(2):before { content: "Year, Model, Part"; }
    table.resizableTable td:nth-of-type(3):before { content: "Description"; }
    table.resizableTable td:nth-of-type(4):before { content: "OEM#"; }
    table.resizableTable td:nth-of-type(5):before { content: "Miles"; }
    table.resizableTable td:nth-of-type(6):before { content: "Grade"; }
    table.resizableTable td:nth-of-type(7):before { content: "Stock#"; }
    table.resizableTable td:nth-of-type(8):before { content: "Price"; }
    table.resizableTable td:nth-of-type(9):before { content: "Recycler"; }
    table.resizableTable td:nth-of-type(10):before { content: "Location"; }
    table.resizableTable td:nth-of-type(11):before { content: "Shipping or Pickup Info."; }
    table.resizableTable td:nth-of-type(12):before { content: "Buy Parts Now"; }

  /* Resizeable OEM Table */
    table.resizableOEMTable{
      width: 100%;
    }
  /* Force table to not be like tables anymore */
    table.resizableOEMTable, table.resizableOEMTable thead,
    table.resizableOEMTable tbody, table.resizableOEMTable th,
    table.resizableOEMTable td, table.resizableOEMTable tr {
      display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.resizableOEMTable thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    table.resizableOEMTable tr { border: 1px solid #ccc; }

    table.resizableOEMTable td {
      /* Behave  like a "row" */
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      width: 50%;
      height: 20px;
    }

    table.resizableOEMTable td:first-child{
      background-color: var(--phl-blue-dark);
      color: #dedede;
    }

    table.resizableOEMTable td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 6px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }

    /*
    Label the data
    */
    table.resizableOEMTable td:nth-of-type(1):before { content: "Year, Model, Part"; }
    table.resizableOEMTable td:nth-of-type(2):before { content: "Description"; }
    table.resizableOEMTable td:nth-of-type(3):before { content: "Miles"; }
    table.resizableOEMTable td:nth-of-type(4):before { content: "Grade"; }
    table.resizableOEMTable td:nth-of-type(5):before { content: "Stock#"; }
    table.resizableOEMTable td:nth-of-type(6):before { content: "Price"; }
    table.resizableOEMTable td:nth-of-type(8):before { content: "Product Location"; }


  /* Resizable Parts Table */

    table.resizeablePartsTable{
      width: 100%;
    }

  /* Force table to not be like tables anymore */
    table.resizeablePartsTable, table.resizeablePartsTable thead,
    table.resizeablePartsTable tbody, table.resizeablePartsTable th,
    table.resizeablePartsTable td, table.resizeablePartsTable tr {
      display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.resizeablePartsTable thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    table.resizeablePartsTable tr { border: 1px solid #ccc; }

    table.resizeablePartsTable td {
      /* Behave  like a "row" */
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      width: 50%;
      min-height: 20px;
    }

    table.resizeablePartsTable td:first-child{
      background-color: var(--phl-blue-dark);
      color: #dedede;
    }

    table.resizeablePartsTable td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 6px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }

    /*
    Label the data
    */
    table.resizeablePartsTable td:nth-of-type(1):before { content: "Year, Model, Part"; }
    table.resizeablePartsTable td:nth-of-type(2):before { content: "Description"; }
    table.resizeablePartsTable td:nth-of-type(3):before { content: "Miles"; }
    table.resizeablePartsTable td:nth-of-type(4):before { content: "Grade"; }
    table.resizeablePartsTable td:nth-of-type(5):before { content: "Stock#"; }
    table.resizeablePartsTable td:nth-of-type(6):before { content: "Price"; }
    table.resizeablePartsTable td:nth-of-type(7):before { content: "Recycler"; }
    table.resizeablePartsTable td:nth-of-type(8):before { content: "Product Location"; }

  /* listingtable (old parts page format) Parts Table */

    table.listingtable{
      width: 100%;
    }

  /* Force table to not be like tables anymore */
    table.listingtable, table.listingtable thead,
    table.listingtable tbody, table.listingtable th,
    table.listingtable td, table.listingtable tr {
      display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.listingtable th {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    table.listingtable tr { border: 1px solid #ccc; }

    table.listingtable td {
      /* Behave  like a "row" */
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      width: 50%;
      min-height: 20px;
    }

    table.listingtable td:first-child{
      background-color: var(--phl-blue-dark) !important;
      color: #dedede;
    }

    table.listingtable td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 6px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }

    #resultBodyTable td {
        text-align: left;
        font-size: 0.95rem;
        word-wrap: break-word;
    }

    /*
    Label the data
    */
    table.listingtable td:nth-of-type(1):before { content: "Year, Model"; margin-top: -6px;}
    table.listingtable td:nth-of-type(2):before { content: "Description";margin-top: -6px; }
    table.listingtable td:nth-of-type(3):before { content: "Miles"; margin-top: -6px;}
    table.listingtable td:nth-of-type(4):before { content: "Grade"; margin-top: -6px;}
    table.listingtable td:nth-of-type(5):before { content: "Stock#";margin-top: -6px; }
    table.listingtable td:nth-of-type(6):before { content: "Price"; margin-top: -6px;}
    table.listingtable td:nth-of-type(7):before { content: "Recycler"; margin-top: -6px;}
    table.listingtable td:nth-of-type(8):before { content: "Product Location"; margin-top: -6px;}

  .selPartEntry{ width:100% !important; }
  #selectedPartsList{ width: 100% !important; }

  #statusPanel{ width: 100%; }
  #statusPanelControl{ width: 100%; }

}
