/* Color Palette */
@font-face {
    font-family: 'Nimbus Sans';
    src: url('https://savcdn1.blob.core.windows.net/static/fonts/NimbusSanL-Reg-webfont.woff') format('woff');
}
@font-face {
    font-family: 'Alata';
    src: url('https://savcdn1.blob.core.windows.net/static/fonts/alata-regular.woff2') format('woff2');
}

:root {
    --savillexblue0: #BDDBFF;
    --savillexblue05: #AAD1FF;
    --savillexblue1: #97C6FF;
    --savillexblue15: #84BCFF;
    --savillexblue2: #71B2FF;
    --savillexblue3: #4C9DFF;
    --savillexblue4: #2689FF;
    --savillexblue: #0074FF;
    --savillexblue6: #0063D9;
    --savillexblue7: #0052B3;
    --savillexblue8: #00408E;
    --savillexblue85: #00387B;
    --savillexblue9: #002F68;
    --savillexblue95: #002755;
    --savillexblue10: #001E42;

    --savillexgrey0: #FFFFFF;
    --savillexgrey05: #FAFAF9;
    --savillexgrey1: #F4F4F4;
    --savillexgrey15: #E9E9E9;
    --savillexgrey2: #E9E9E9;
    --savillexgrey3: #DFDFDE;
    --savillexgrey4: #D4D4D3;
    --savillexgrey: #c9c9c8;
    --savillexgrey6: #B7B7B6;
    --savillexgrey7: #A5A5A3;
    --savillexgrey8: #929291;
    --savillexgrey85: #898988;
    --savillexgrey9: #80807E;
    --savillexgrey95: #777775;
    --savillexgrey10: #6E6E6C;
}

/* ------------------------------------- */
/* General Page Formatting               */
/* ------------------------------------- */

@media (min-width: 768px) {
    .container {
        width:750px
    }
}

@media (min-width: 992px) {
    .container {
        width:970px
    }
}

@media (min-width: 1200px) {
    .container {
        width: 75vw;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .page {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
        justify-content: space-around;
    }

    .content {
        flex: 1;
    }
}

.cd-content-main .row {
    padding-top: 1vh;
}

.cd-main-content {
    min-height: unset;
}

/* ----------------------------------------------------- */
/* Header - Top Bar and Navigation Formatting            */
/* ----------------------------------------------------- */
/* Header Background Change */
.top-bar, .header {
    background: none;
    background-color: var(--savillexgrey0);
    border: none;
}
/* Header Input Margin removal */
.header-input {
    margin:auto;
}
.top-bar-search {
    width: 100%;
}
.top-bar-main {
    margin-top: 2vh;
    margin-bottom: 1vh;
}

/* Align the Nav Bars */
.top-bar-main>.container, .nav-main>.container {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    flex-basis: content;
    &>div {
        display: flex;
        align-content: center;
        flex-wrap: wrap;
        &:last-child {
            justify-content: flex-end;
        }
    }
}

/* Responsive Logo Sizing */
.top-bar-logo {
    max-width: min(300px,80%);
}



/* ----------------------------------------------------- */
/* Header - Header Search                                */
/* ----------------------------------------------------- */
#searchboxform input::placeholder {
        color: var(--savillexblue);
        font-weight: bold;
}
.catalogsearchbox {
    border: 1px solid var(--savillexblue);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(153,153,153,0.6);
    &:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(153,153,153,0.6);
    }
}
.ui-autocomplete, .ui-widget {
    font-family: inherit;
    line-height: normal;
    font-size: .9em;
}
.ui-widget-content {
    background: none;
    background-color: var(--savillexgrey1);
}
.ui-widget-content .ui-state-active, .ui-state-active {
    background: none;
    background-color: var(--savillexblue05);
}
.autocomplete-image {
    padding: 0;
    margin: 4px;
    width: 30px;
    height: 30px;
}
.ui-menu .ui-menu-item a {
    line-height: normal;
}
.ui-menu-item-wrapper span {
    font-size: .75em;
    float: right;
}

/* ----------------------------------------------------- */
/* Header - Mini-Cart                                    */
/* ----------------------------------------------------- */
.header {
    & .cart.header-input, .minibasket {
        float: right;
    }
    & .cart-field-label {
        padding-right: 10px;
    }
}

.cart-content {
    position: absolute;
    z-index: 9999;
    width: 100%;
    -webkit-box-shadow: 0px 19px 8px 2px rgba(50,50,50,0.63);
    -moz-box-shadow: 0px 19px 8px 2px rgba(50,50,50,0.63);
    box-shadow: 0px 19px 8px 2px rgba(50, 50, 50, 0.63);
    
}

/* ----------------------------------------------------- */
/* Fonts and Headings                                    */
/* ----------------------------------------------------- */
html, body {
    font-family: "Nimbus Sans","Helvetica","Arial",sans-serif;
}
html {
    font-size: 16px;
}
body {
    font-size: clamp(.6rem, 0.68572rem + .5714vw, 1.05rem);
    line-height: normal;
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.page-header {
  font-family: "Alata","Helvetica","Arial",sans-serif;  
  font-weight: bold;
  color: var(--savillexblue);
}


h1,.h1,.page-header {
    font-size: 2em;
}

h2,.h2 {
    font-size: 1.5em;
}

.product-netprice {
        color: #000000;
}

h3,.h3 {
    font-size: 1.17em;
    &.hover-product-title {
        text-transform: none;
    }
}

h4,.h4 {
    font-size: 1em;
}

h5,.h5 {
    font-size: .83em;
}

h6,.h6 {
    font-size: .67em;
}

/* ----------------------------------------------------- */
/* Top Nav Bar Links and Drop-downs                      */
/* ----------------------------------------------------- */
/* Default State */
.top-bar .top-bar-link, .top-bar .nav a, .nav li a, .nav>.open>a, .dropdown>a, .top-login a {
    background-color: white;
    font-size: clamp(.6em, 0.6em + .3vw, 1em);
    color: black;
    text-decoration: underline 1px rgb(from var(--savillexblue) r g b / 0%);
    text-underline-offset: 0px;
    transition: text-decoration-color 300ms, text-underline-offset 300ms;
    padding: 5px 10px;
    
    /* Animate Hover/Active/Focus/Selected */
    &:hover,&:active,&:focus,&.active>a,.nav>.open>a,FilterDrop .filterWrapper,.activeFilterDrop .filterWrapper .control-label, .top-login a {
        background-color: var(--savillexblue);
        color: white !important;
        /* text-shadow: 2px 2px 10px var(--savillexblue05); */
        text-decoration: underline 1px rgb(from white r g b / 100%);
        text-underline-offset: 2px;
    }
}

/* Fix spacing of the Login links */
.top-login p {
    margin: 0;
}
.navbar-nav > li:first-of-type > a {
    padding: 5px 0px;
}
.content section {
    padding-bottom: 0;
    padding-top: 0;
}
/* .dropdown-menu.dropdown-menu {
    width: 200px;
}*/



/* Remove legacy backgrounds */
.navbar-nav li.active, .navbar-nav li.active .menulabel {
    background-color: var(--savillexgrey0);
    color: var(--savillexblue) !important;
}
/* Signed-in User Options Button */
.nav .top-bar-link {
    /* Replace email address with "My Account" */
    &>a {
        padding: 0 5px 0 5px;
        border-radius: 0;
        border: none;
    }
     &.user-profile-page-link>a:after {
        content: "My Account";
    }
    /* Hide Profile Page Options  */
    & span {
        display:none;
    } 
    
}

/* ----------------------------------------------------- */
/* Buttons                                               */
/* ----------------------------------------------------- */

button, .btn {
    background-color: var(--savillexblue);
    color: white;
    border: solid 1px var(--savillexblue);
    box-shadow: 2px 2px 3px black;
    border-radius: 8px;
    /* padding: 8px 15px 6px 15px; */
    &:hover {
        background-color: white;
        color: var(--savillexblue);
    }
}
.btn-cta {
    background-color: var(--savillexblue);
    color: var(--savillexgrey);
}

.home-sidebar-group .btn {
    background-color: white;
    color: var(--savillexblue);
    &:hover {
        box-shadow: 2px 2px 3px white;
    }
}

/* Hamburger Icon for Mobile Menus */
button.navbar-toggle >.icon-bar {
    background-color: black;
}

/* Spacing for consecutive Divs */
div.container:has(+ div.container) {
    padding-bottom: 15px;
}

/* Subsequent Sections After a Section */
.section + .section {
    padding: 0;
    padding-top: 10px;
}

/* Use flex alignment for index buttons */
.index-btn {
    & p {
        display:flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        align-content: space-between;
        gap: 5px;
    }
    & .btn {
    flex: 1 0 40%;
    }
}


/* HERO */
/*
<div class="hero-container" style="background-image: url('{{Image}}');">{{#if InternalLink}}
<p><a class="" href="{{InternalLink}}">&nbsp; </a></p>
{{/if}} {{#if ExternalLink}}
<p><a class="" href="{{ExternalLink}}">&nbsp; </a></p>
{{/if}} {{#if LinkDocument}}
<p><a class="" href="{{LinkDocument}}">&nbsp; </a></p>
{{/if}} {{#if Heading}}
<div class="hero-text">{{#if Heading}}
<h1>{{Heading}}</h1>
{{/if}} {{#if Text}}
<p>{{Text}}</p>
{{/if}}</div>
{{/if}}</div>
*/
.hero-row {
    width: 100%;
    min-height: 25vh;
}
.hero-container {
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 25vh;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 25%;
  left: 25%;
  transform: translate(-25%, -50%);
  color: white;
  & h1 {
    font-size: calc(1.5em + 1vw);
    text-shadow: 2px 2px 4px var(--savillexgrey0);
  }
}

/* Video Hero */
.video-bg {
  position: relative;
  width: auto;
  min-width: 100%;
  height: auto;
  background: transparent;
  background-size: cover;
}
video {
  display: block;
}
/* disable video (e.g. in a media query) by setting .video-container to display: none; as appropriate */
.video-container {
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
      /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 25vh;
}

/* Place text in the middle of the image */
.vid-hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  & h1 {
    font-size: calc(2.5em + 1vw);
    /*text-shadow: 5px 5px 10px var(--savillexgrey0);*/
    color: var(--savillexblue);
  text-shadow: 0px 0px 2px var(--savillexgrey), 0 2px 4px var(--savillexgrey1);
  }
}


/* ----------------------------------------------------- */
/* Responsive Design                                     */
/*  slope = (maxFontSize - minFontSize) / (maxWidth - minWidth)
    yAxisIntersection = -minWidth * slope + minFontSize
    preferredValue = yAxisIntersection[rem] + (slope * 100)[vw] */
/* ----------------------------------------------------- */

/* Mobile */
@media screen and (max-width:767px){
    .top-bar {
        & a, .input-group, .navbar-toggle, .header-input {
            margin-top: 15px;
        }
    }
}

div.blockquote {
    padding: 0 1em;
    margin: 0 0 20px 0;
    font-size: 17.5px;
    border-left: 4px solid var(--savillexgrey);
}

.content {
    padding-bottom: 20px;
    padding-top: 0px;
}
.content > .section:not(:last-child) {
        padding-bottom: 400px;
}

.border-bg {
  border-width:1px;  
  border-color:var(--savillexgrey);
  border-style:solid;
  border-radius: 15px;
  background:white;
  & + .border-bg {
      margin-top: 20px;
  }
        box-shadow: 2px 2px 3px var(--savillexgrey);
}

.center {
    text-align: center;
}

/* CSS to hide part of a text block if there is a <P class=.read-more> in it */
/*
div.readmorecontent {
  max-height: 25vh;
  position: relative;
  overflow: hidden;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.content p.read-more { 
  position: absolute; 
  bottom: 0; 
  left: 0;
  width: 100%; 
  text-align: center; 
  margin-bottom: 0px;
  padding-bottom: 10px;
  background-image: linear-gradient(to bottom, transparent 25%, var(--savillexgrey) 110%);
}
*/

/* Control max height of banner on landing page */
.landing-banner {
    text-align: center;
    & img {
        margin: auto;
        max-height: 25vh;
    }
    margin-bottom: 20px;
        margin-top: 20px;
}

/* Auto shrink text size to scale with width of vw */
.auto-shrink-width {
    & h2 {
        font-size: clamp(1em, 1.5em, 1.5em);
    }
}

.landing-content {
    & .landing-content-headline {
        margin: 0;
        padding-bottom: 5px;
    }
    & .landing-content-content {
        padding-top: 0;
    }
}
.landing-highlight {
    border: solid 1px var(--savillexblue);
    border-radius: 15px;
    background-color: white;
    & .landing-highlight-headline {
        padding: 0;
        & p {
            margin-bottom: 5px;
        }
    }
    & .landing-highlight-content {
        padding: 0;
        font-size: clamp(.6em, .8em, .8em);
    }
}

.home-sidebar-group {
    border: 1px solid var(--savillexgrey);
    background-color: var(--savillexblue);
    border-radius: 15px;
    color: white;
    margin-left: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: .8rem;
    box-shadow: 3px 3px 5px black;
}
.home-sidebar-heading {
    font-size: 1.25em;
    font-weight: bold;
    color: white;
    
}
.home-sidebar-content {
    & p {
        text-align: center;
    }
}

.savillex-hero {
    background-color: var(--savillexgrey1);
    text-align: center;
    padding: 6vh;
    position: relative;

}
.savillex-swoosh {
    width: 15vw;
    height: 15vw;
    background-image: url('https://savcdn1.blob.core.windows.net/static/logos/SVG/SavillexSwoosh.svg');
    background-size: contain; /* Adjust as needed */
    background-repeat: no-repeat; /* Adjust as needed */
    background-position: center right; /* Adjust as needed */
    position: absolute;
    left: 10vw;
    bottom: -2.5vw;
    overflow: hidden;
    opacity: 15%;
   /* animation: zoomin 2s ease-in 1s;
    animation-fill-mode: forwards; */
    z-index: 0;
    scale: 1 1;
}

@keyframes zoomin {
  to {
    right: 0;
          bottom: 0;
scale: 1 1;
  }
}

.hero-row {
    & .main-statement {
        font-size: 2.2em;
        font-weight: bold;
        color: var(--savillexblue);
        position: relative;
        z-index: 100;
        display: inline-block;
    }
    & .main-statement-sub {
        font-size: 1.4em;
        color: black;
        z-index: 100;
        position: relative;
        display: block;
    }
    padding: 1vh 0 0 0;
}

.pad-bot-10 h1 {
    padding-bottom: 10px;
}

.landing-product-list {
    margin-top: 20px;
    font-size: .8rem;
    & .product-header, .field-stockcode, .product-netprice {
        margin-bottom: 2px;
        text-transform: none;
    }
    & .product {
        padding-bottom: 10px;
        &:nth-child(odd) {
            background-color: var(--savillexgrey2);
        }
    }
}

.footer {
    background: var(--savillexgrey);
    color: black;
    padding: 0px 0 0px;
    font-size: 1em;
    text-transform: uppercase;
    & .container .row {
        padding-top: 10px;
        display: flex;
        align-content: center;
        flex-direction: row;
        justify-content: space-between;
        & .footer-left, .footer-mid, .footer-right {
            display: flex;
        }
        & .footer-left {
            align-content: center;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: flex-start;
        }
        & .footer-right {
            align-content: center;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: flex-end;
            & .section {
                height: unset;
            }
        }
    }
}


.row .custSubNodeArea {
    padding-top: 0;
}


/* Industry hover images */
.industry-text {
    display: none;
    background: rgb(85,85,85);
    padding: 30px;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
  	width: 100%;
    height: 100%;
}
.industry-hover-container {
    position: relative;
}
.industry-image img {
    display: none;
}
.industry-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.featured-industries > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.featured-industries > div > .section {
    width: 25%;
}
.featured-industries .section {
    padding: 15px;
}
@media screen and (max-width: 1199px){
    .featured-industries > div > .section {
        width: 33.3333%;
    }
}
@media screen and (max-width: 991px){
    .featured-industries > div > .section {
        width: 50%;
    }
    .gutter-padding {
        padding: 0;
    }
    .max-width .row {
        margin-left: 0;
        margin-right: 0;
    }
}
@media screen and (max-width: 767px){
    .featured-industries > div > .section {
        width: 100%;
    }
}
.pt-page-index .industry-header {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 1.25vw;
    color: var(--savillexgrey);
    text-shadow: 2px 2px 4px black;
}
@media screen and (max-width: 991px){
    .pt-page-index .industry-header {
        font-size: 1.5em;
    }
}


/* Extremely Complicated Filter Layout Hacks */
#productfilter > .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    &> div {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        align-content: flex-start;
        &> div {
            min-width: 33%;
            width: 50%;
            &.filter-box {
                width: 15%;
                min-width: 15%;
            }
        }
        
    }
    & div.SingleSlider {
        display: unset;
    }
    & div.MultiSelectValues {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: flex-start;
        align-items: flex-start;
        justify-content: flex-start;
        & div.filtervalues {
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: flex-start;
            align-content: flex-start;
            & > div {
                width: 20%;
            }
        }
    }
    &> div.CheckBox > div {
        width: 100%;
    }
    & fieldset {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        align-content: flex-start;
        width: 100%;
        &> legend {width: 100%;}
        &> .row {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: center;
                align-items: center;
                min-width: 25%;
        }
    }
}

#productfilter {
    font-size: .75em;
    & .control-label {
        font-weight: bold;
        padding-right: 5px;
    }
    & label {
        font-weight: normal;
    }
    & .btn {
        background-color: white;
        color: black;
        border: solid 1px var(--savillexblue);
        box-shadow: 1px 1px 2px var(--savillexgrey);
        border-radius: 3px;
        padding: 1px 5px 1px 5px;
        width: 100%;
        &:hover {
            /* background-color: var(--savillexblue); */
            /* color: white; */
        }
    }
}

.FilterMultiSelect .btn-group .multiselect-container {
    width: auto;
}

#productfilter {
    & div.filter-box {
        width: 10%;
        & > span {
            display: none;
        }
    }
    & > div.activeFilters {
            min-height: 15px;
            min-width: 20px;
            padding: 2px;
    }
    & label.clearAllFilter, label.clearFilter {
        background-color: var(--savillexblue);
        padding: 3px;
        font-size: 1em;
        font-weight: bold;
    }
 }