/* * D365 COMMERCE STYLE OVERRIDE FILE
* - - - - - - - - - - - - - - - - - -
* Friedman's Home Improvmement
* Last authored by: Carlos Perez
* Last authored on: 2021-04-13 14:07:26
* 
* CHANGES AND IMPROVEMENTS 2021-04-12:
* Removed white borders delineating header containers
* Dark grey background in nag bar so it stands out better
* Modified logo container to allow me to use a high-def logo (it's sharper)
* Animate main menu items on mouse-over with yellow underline
* Clean up, and stack "mega menu" items so stuff is palatable with a drop shadow
* FIXED-POSITION header so it does not scroll with window and floats over content
* Cleaned up search box and icon
* Added breakpoint advice (below) but noted that we don't control breakpoints here, and have to take was MS gives us so far
* IMPLEMENTED CHANGES FROM EXISTING UAT CSS OVERRIDE BY FILE COMPARE
* - - - - - - - - - - - - - - - - - -
* 
* BREAKPONT ADVICE:
* https://www.freecodecamp.org/news/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862/
* UP TO 599px       phone-only                  --> @media (max-width:599px) { ... }
* 600 - 899px       tablet-portrait-up          --> @media (min-width:600px) { ... }
* 901 - 1199px      tablet-landscape-up         --> @media (min-width:900px) { ... }
* 1200 - 1799px     desktop-up                  --> @media (min-width:1200px) { ... }
* 1800px            big-desktop-up              --> @media (min-width:1800px) { ... }
* */

body {
  background: #fff;
  color: #555;
}
h2 {
  text-transform: uppercase !important;
  color: #0b8744 !important;
  font-weight: 700 !important;
}

/* FIXED HEADER */
body.pc {
  padding-top: 175px;
}
body > #renderPage > header {
  position: fixed;
  margin-top: -175px;
  width: 100%;
  z-index: 10;
}

/* ! CARLOS REMOVED BORDER */
header,
.header-wrap,
.ms-header {
  background-color: #0b8745;
  border: none;
  padding-top: 0;
}
.ms-nav,
.ms-nav > .ms-nav__list,
.ms-nav > .ms-nav__list > .ms-nav__list__item {
  background: transparent;
}
.ms-nav > .ms-nav__list {
  align-items: center;
}

/*************************************************/
/* Drop shadows on the navigation items */
/*.ms-nav__deafult ul.ms-nav__list {             
    background-color: #fff;                    
    -webkit-box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 40%);  
    -moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.4);  
    box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 40%);  
}     */
/*************************************************/

.ms-nav__list__item {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ms-nav__list__item__button,
.ms-nav__list__item__span {
  text-transform: uppercase !important;
  font-size: 1em !important;
}

.ms-header__container {
  padding-bottom: 0;
}

.ms-header .ms-header__wishlist-desktop:before {
  color: #ffffff !important;
}
.ms-header .msc-cart-icon {
  color: #ffffff !important;
}

.ms-header .ms-header__account-info a {
  color: #000;
}

/* ! CARLOS REMOVED THIS BECAUSE IT MADE THE CART ICON LIKE DOOKIE IN TABLET MODE
@media (max-width: 991px) {
  .ms-header .msc-cart-icon {
    position: absolute;
    top: 0;
    height: 35px !important;
  }
}
*/

/* ! CARLOS CHANGED BG COLOR AND REMOVED BORDER */
.ms-promo-banner {
  display: flex;
  flex-wrap: wrap;
  background: #333;
  border: none;
  padding-bottom: 5px;
  padding-top: 5px;
  line-height: 20px;
  width: 100%;
}

@media (max-width: 991px) {
  /* TODO: Fix this breakpoint! */
  .ms-promo-banner__content {
    padding: 0 10px;
    line-height: 1.2em !important;
  }
  .ms-promo-banner__content span {
    font-size: 12px !important;
  }
}

/*************************************************/
/* Hiding certain fields */
.msc-cart-line__bopis-btn,
.msc-add-to-cart,
.msc-cart__btn-guestcheckout,
.ms-buybox__inventory-info,
.msc-cart-line-item-product-discount,
.ms-wishlist-items__product-add-button,
.ms-checkout-payment-instrument__card-type-id {
  display: none;
}
/*************************************************/

.ms-search__autoSuggest__keyword a,
.ms-search__autoSuggest__product a,
.ms-search__autoSuggest__category a {
  color: #555 !important;
}
.ms-search picture {
  overflow: hidden;
}

.IDNMAIje_vy8hlva .ms-search,
.IDNMAIje_vy8hlva .ms-header__account-info,
.IDNMAIje_vy8hlva .msc-wishlist-icon,
.IDNMAIje_vy8hlva .ms-header__divider,
.IDNMAIje_vy8hlva .msc-cart-icon {
  display: none !important;
}

/*************************************************/
/*  This the sticky header section, which provides a class name to the header fragment in Site Builder, if you leave this here you have to take the selectioni of this off the HeaderContainer fragment  */
.header-wrap {
  position: fixed;
  width: 100%;
  z-index: 999;
}
/*************************************************/

@media (min-width: 992px) {
  /* TODO: Fix this breakpoint! */
  .ms-nav > .ms-nav__list {
    width: 100% !important;
  }
}

@media (min-width: 768px) {
  /* TODO: Fix this breakpoint! */
  .ms-nav,
  .ms-header .ms-header__account-info .ms-header__signin-button,
  .ms-header a,
  .ms-header .ms-search__icon,
  .ms-header .ms-header__preferred-store-text,
  .ms-header .ms-header__preferred-store-btn,
  .ms-header .ms-header__profile-button,
  .ms-header .ms-site-picker__button,
  .ms-header .ms-site-picker__span,
  .ms-nav > .ms-nav__list,
  .ms-nav > .ms-nav__list > .ms-nav__list__item,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__link,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button:after {
    background-color: transparent;
    color: #fff;
    font-size: 14px !important; /*! Marked Important by Carlos*/
  }
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button:hover:before,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button:focus:before,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__link:hover:before,
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__link:focus:before {
    background-color: transparent;
  }
  li.ms-nav__list__item {
    color: #333;
    padding: 0 1em;
  }
  .ms-nav > .ms-nav__list > .ms-nav__list__item .ms-nav__list__item__link {
    color: #fff;
    padding-left: 0;
    padding-right: 0;
    text-transform: uppercase;
    font-size: 14px;
  }
  ul li ul li a.ms-nav__list__item__link {
    color: #333 !important;
  }
  .ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list {
    background: #fff;
    margin-top: 4px;
    min-width: 250px;
  }
}

@media (max-width: 991px) {
  /* TODO: Fix this breakpoint! */
  .ms-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  .ms-header .ms-header__topbar {
    height: auto !important;
  }
  .ms-header__container .ms-header__topbar .ms-header__logo {
    margin: 0 30px; /* ! CARLOS CHANGED FROM AUTO */
    flex-grow: 1; /* ! CARLOS CHANGED */
  }
  .ms-header .ms-header__collapsible-hamburger {
    height: auto !important;
    overflow: scroll;
    max-height: 75vh;
  }
  .ms-header .ms-header__nav-icon {
    margin-top: 37px;
    margin-bottom: 10px;
  }
  .ms-header__container .ms-header__logo a picture {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .ms-header__logo img {
    max-width: 85%;
    height: auto;
    -ms-flex-item-align: end;
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  /* TODO: Fix this breakpoint! */
  .ms-promo-banner .ms-promo-banner__carousel {
    width: 100%;
  }
}

/* ! CARLOS REMOVED THIS
main#main {
  padding-top: 175px;
}
*/

/* Footer */
footer {
  background-color: #a1a1a1;
  padding: 2em 0;
}
footer a {
  color: #fff !important;
  text-transform: uppercase;
  text-decoration: none !important;
}
footer .row .col-12 {
  flex: 1;
}
footer .row {
  display: flex;
}
footer .row .col-12:last-child {
  flex: 1 100%;
  text-align: center;
}
.footer-left,
.footer-right,
.footer-bottom,
.footer-copyright {
  color: #fff;
}
.footer-right {
  float: right;
}

/* Products */
.ms-buybox__product-title {
  font-size: 38px;
  line-height: 46px;
}
.ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button:focus,
.ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__link:focus {
  border: none;
  outline: none;
}
.msc-add-to-cart {
  background-color: #0b8745;
  border: 1px solid #0b8745;
  color: var(--msv-font-secondary-color);
  padding: 12px 20px;
  min-width: 160px;
}
.ms-buybox__find-in-store-button {
  border: 1px solid #0b8745;
}
.ms-buybox .quantity .quantity-input {
  border: 1px solid #0b8745 !important;
}
/***************************************************************************/
/* This is the "Save and Continue" button on Checkout page */
/* Comment this out for now, it is needed if you want to pay with only a gift card */
/*.ms-checkout__guided-card-btn-save {  */
/*	display: none;  */
/*}  */
/***************************************************************************/

.ms-checkout__guided-card-btn-save,
ms-checkout__guided-card-btn-edit {
  display: none;
}

#tokenform label {
  font-family: "Open Sans";
}
input#btnSubmit {
  border-radius: 0;
  border: none;
  color: #fff;
  background-color: #0b8744;
  padding: 7px 15px;
  text-transform: uppercase;
  font-size: 16px;
}

/* Categories */
/* .ms-refine-submenu.list-group.Category {
    display: none !important;
} */

.generator-search ul.Category li:nth-child(even) {
  display: none;
}

.prepared-links p {
  flex-wrap: wrap;
  -ms-flex-wrap: wrap;
}
@media (min-width: 768px) {
  /* TODO: Fix this breakpoint! */
  .prepared-links p {
    margin-top: 2em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    margin-bottom: 2em;
  }
  .prepared-links p a {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-align: center;
    background-color: #0a8745;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    padding: 20px 15px;
  }
  .prepared-links p a:not(:first-child) {
    margin-left: 32px;
  }
}
@media (max-width: 767px) {
  /* TODO: Fix this breakpoint! */
  .prepared-links p a {
    flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    margin-bottom: 0.5em;
  }
  .prepared-links p a:not(:first-child) {
    margin-left: 0;
  }
}
.ms-sign-in__social-accounts {
  display: none;
}
.msc-cart__btn-backtoshopping,
.ms-checkout__btn-keep-shopping,
.ms-order-history__btn-keep-shopping,
.ms-buybox__dialog__image,
.ms-order-confirmation__btn-keep-shopping,
.ms-wishlist-items__avail {
  display: none !important;
}
h2.ms-sign-in__sign-up-heading {
  font-weight: bold;
  font-size: 1.5em;
}
.ms-password-reset-verification__account-item-input {
  border: 1px solid #4c833a;
}
.ms-account-profile__preference-personalization {
  display: none !important;
}

/* ? * * * * * * * * * * * * * * * * * * * *
   ? SEARCH RESULTS CONTAINER CUSTOMIZATION
   ? This customization affects stuff within .fhi_search_results_container
   ? and is made to improve the look of product images when viewed in a grid.
   ? D365 Module Name: search-result-container
   ? Documentation: https://docs.microsoft.com/en-us/dynamics365/commerce/search-result-module
   ? */
.fhi_search_results_container {
}
/* ? Select the grid displaying results and adjust the gap to shrink the images */
.fhi_search_results_container .ms-search-result-container__Products .list-unstyled {
}

@media (min-width: 768px) {
  /* TODO: Fix this breakpoint! */
  .fhi_search_results_container .ms-search-result-container__Products .list-unstyled {
  }
}
@media (min-width: 991px) {
  /* TODO: Fix this breakpoint! */
  .fhi_search_results_container .ms-search-result-container__Products .list-unstyled {
    grid-column-gap: 50px;
    grid-row-gap: 50px;
  }
}

/* ? * * * * * * * * * * * * * * * * * * * *
   ? SITE NAVIGATION (.ms-header.logo) <-- .logo is FHI custom class name attached to header container
   ? */

.collapse.show .ms-nav__list__item__link {
  color: black; /*Force black text in mobile expanding menu items*/
}
.ms-header__container .ms-header__topbar {
  justify-content: space-between;
  padding: 10px 20px 15px 20px; /* Padding for header while small screen */
}
@media (min-width: 993px) {
  .ms-header__container .ms-header__topbar {
    justify-content: space-between;
    padding: 40px 20px 15px 20px; /* Padding for header while small screen */
  }
  .ms-header__logo {
    margin-top: 35px;
  }
}
.ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__deafult > .ms-nav__list.level-2 {
  background: #efefef;
  border-bottom: 3px solid #f2d80c;
  padding-bottom: 17px;
  width: 50%;
  box-shadow: rgb(0 0 0 / 50%) 4px 3px 9px;
  max-height: calc(100vh - 225px); /* Force scrolling if menu is large */
  overflow: scroll;
}
.ms-nav__list__item__button,
.ms-nav__list__item__link {
  height: 28px;
  line-height: 40px;
}
.ms-nav__list__item .havesubmenu {
  width: 100%;
  margin-top: 25px;
}
.ms-nav__list.level-2 .ms-nav__list__item a:hover {
  background: #ddd;
}

/* HIDE CARET POINTER AND RENDER ANIMATED HOVER */
.ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button {
  color: #fff;
}
.ms-nav > .ms-nav__list > .ms-nav__list__item > .ms-nav__list__item__button::after {
  background: none repeat scroll 0 0 transparent;
  bottom: 8px;
  content: "";
  display: block;
  height: 3px;
  left: 50%;
  position: absolute;
  background: #f2d80c;
  transition: width 0.5s ease 0s, left 0.5s ease 0s;
  width: 0;
  margin-left: 0;
}
.ms-nav > .ms-nav__list > .ms-nav__list__item:hover > .ms-nav__list__item__button::after {
  width: 100%; /* How wide to make it on transition */
  left: 0; /* How much to the left to move on transition */
}
.ms-nav > .ms-nav__list > .ms-nav__list__item:hover > .ms-nav__list__item__button[aria-expanded="true"]::after {
  width: 100%;
  left: 0;
}
/* ADJUST SPACE BETWEEN LOGO AND TOP LEVEL MENU ITEMS */
.ms-header__desktop-view {
  margin-top: 65px;
}
.ms-header__desktop-view .ms-nav > .ms-nav__list > .ms-nav__list__item {
  margin-top: 0;
}
.ms-header__container .ms-header__logo a {
  display: inline-block;
}
.ms-header__container .ms-header__logo a picture img {
  width: 250px;
  height: auto;
}
/* Make search look better */
.ms-search__form-control {
  margin-right: 10px;
}
.ms-search__form-submitSearch.msc-btn {
  background-color: rgba(255, 255, 255, 0.5);
}

/***** BOPIS Updates *****/
.landing-page p {
  font-size: 16px;
  line-height: 1.428571429;
}

/* CUSTOM BIG BLOCKS -- PAM? */
.ms-content-block.bathroom {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCXRG?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.lighting {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCVgH?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.flooring {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCVgK?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.organization {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCSG2?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.preparedness {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCSG5?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.tools {
  background-image: url(https://images-us-prod.cms.commerce.dynamics.com/cms/api/rvtjpflffc/imageFileData/MCXRJ?pubver=1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2em;
  padding-right: 0;
  grid-template-columns: 1fr 1fr !important;
  margin-bottom: 2em;
}
.ms-content-block.bathroom .ms-content-block__details,
.ms-content-block.lighting .ms-content-block__details,
.ms-content-block.flooring .ms-content-block__details,
.ms-content-block.organization .ms-content-block__details,
.ms-content-block.preparedness .ms-content-block__details,
.ms-content-block.tools .ms-content-block__details {
  background-color: rgb(11 135 68 / 80%);
  padding: 2em 4em 2em 3em;
  margin-right: 0 !important;
}
.ms-content-block.bathroom .ms-content-block__details h2,
.ms-content-block.lighting .ms-content-block__details h2,
.ms-content-block.flooring .ms-content-block__details h2,
.ms-content-block.organization .ms-content-block__details h2,
.ms-content-block.preparedness .ms-content-block__details h2,
.ms-content-block.tools .ms-content-block__details h2 {
  color: #fff !important;
  font-size: 30px;
  line-height: 1.1;
}
.ms-content-block.bathroom .ms-content-block__details p,
.ms-content-block.lighting .ms-content-block__details p,
.ms-content-block.flooring .ms-content-block__details p,
.ms-content-block.organization .ms-content-block__details p,
.ms-content-block.preparedness .ms-content-block__details p,
.ms-content-block.tools .ms-content-block__details p {
  color: #fff;
  margin-bottom: 1.5em;
  font-size: 1.25em;
  line-height: 1.4;
}
a.white-btn {
  text-transform: uppercase;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 15px;
}
