/* These styles will be loaded later than almost anything else in WordPress.
The hope is that this will help with selector overrides if they come up. */

html > body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 767px) {
    :root #content a:link,
    :root #content a:visited {
        text-decoration: underline;
    }

    :root #content a:hover {
        text-decoration: none;
    }

    :root #content .panel-text a:link,
    :root #content .panel-text a:visited {
        color: #fff;
        position: relative;
        text-decoration: none;
        padding-bottom: 4px;
    }

    :root:root #content a.blue:link,
    :root:root #content a.blue:visited {
        font-weight: bold;
        font-style: inherit;
        text-decoration: underline;
        color: #3399cc;
        white-space: nowrap;
    }

    :root:root #content a.blue:hover {
        font-weight: bold;
        font-style: inherit;
        text-decoration: none;
        color: #3399cc;
        white-space: nowrap;
    }

    :root #content .back-to-top a {
        text-decoration: none;
    }

    :root #content .back-to-top a:hover {
        text-decoration: underline;
    }
}

:root #content a.blue {
    font-weight: bold;
    font-style: inherit;
    color: #3399cc;
    white-space: nowrap;
}

.sp-header .lego-embed-block .header-top {
    padding-left: 0;
    padding-right: 0;
}

.panel-text.wpb_column.vc_column_container.vc_col-sm-6.vc_col-has-fill {
    position: relative;
}

/* Hiding the related recipe row entirely for now until we find another solution */
.related-recipes-wrapper {
    display: none;
    visibility: visible;
    opacity: 0;
    height: 0;
}

/* Recipe landing "See all" links */
.page-template-template-recipes-landing .cat-link {
    color: #333333;
    text-decoration: none !important;
}

.page-template-template-recipes-landing .cat-link:hover {
    color: #5b5b5b;
    text-decoration: underline !important;
}

/* Recipe ingredients */
:root .single-recipe #content .recipe-ingredient-name a:link,
:root .single-recipe #content .recipe-ingredient-name a:visited {
    text-decoration: none;
}

:root .single-recipe #content .recipe-ingredient-name a:hover {
    text-decoration: underline;
}

:root .single-recipe #content .recipe-ingredient-name a:link.custom-ingredient-link,
:root .single-recipe #content .recipe-ingredient-name a:visited.custom-ingredient-link {
    text-decoration: underline;
}

:root .single-recipe #content .recipe-ingredient-name a:hover.custom-ingredient-link {
    text-decoration: none;
}

/* Recipe landing card hover state + title */
.recipes .wpupg-grid > a,
.recipes .wpupg-grid > a *,
.recipes .wpupg-grid > a:hover *,
.recipes .wpupg-grid * {
    text-decoration: none !important;
}

.recipes .wpupg-grid > a:hover * {
    text-decoration: underline !important;
}

.recipes #inner-content {
    padding: 0 12px;
}

.recipes .wpupg-rows-row > div + .wpupg-rows:hover::before {
    content: 'View Recipe';
    color: #fff;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 240px;
    text-align: center;
    text-rendering: optimizelegibility;
    font-size: 24px;
    font-family: "Museo Slab","Georgia","Cambria","Times New Roman",Times,serif;
    font-weight: 400;
    line-height: 1.3;
}

.page-template-template-recipes-landing .wpupg-post-title {
    display: block;
    position: relative;
    text-align: center;

    /* font-family: "museo_slab700","Georgia",Cambria,Times New Roman,Times,serif; */
    font-family: "Museo Slab","Georgia","Cambria","Times New Roman",Times,serif;
    text-rendering: optimizelegibility;

    /* font-weight: normal; */
    color: #51603e;
    text-decoration: none;
    margin-top: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
}

body .page-banner h1,
body .page-banner p {
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.65);
}

@media (max-width: 767px) {
    body .product-category-panels-row .panel-text {
        min-height: 41.4vw !important;
        max-height: 290px !important;
    }

    body .page-banner p {
        /* font-family: "museo_slab700","Georgia",Cambria,Times New Roman,Times,serif; */
        /* text-shadow: 1px 1px 5px rgba(0,0,0,0.65); */
        font-family: 'Museo Slab', serif;
        font-size: 21px;
        font-weight: 700;
        color: #fff;
        margin: 6px 0 0 0;
        line-height: 1.1;
        letter-spacing: 0;
        text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.65);
    }

    .banner-copy {
        /* top: 65% !important;  */
        top: 50% !important;
    }

    body #content .panel-text:not(.panel-has-content) {
        /* display: none; */
    }

    .recipes .wpupg-grid a {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-preferred-size: auto !important;
        flex-basis: auto !important;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -ms-flex-line-pack: center;
        align-content: center;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        margin-bottom: 30px !important;
    }

    .recipes .wpupg-grid a .wpupg-item {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        -webkit-box-flex: 1 !important;
        -ms-flex: 1 1 22% !important;
        flex: 1 1 22% !important;
        -ms-flex-item-align: auto;
        -ms-grid-row-align: auto;
        align-self: auto;
        margin-bottom: 0 !important;
    }

    .recipes .wpupg-grid a .wpupg-post-title {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        -webkit-box-flex: 3 !important;
        -ms-flex: 3 1 78% !important;
        flex: 3 1 78% !important;
        -ms-flex-item-align: start;
        align-self: flex-start;
        text-align: left;
        padding: 0 20px;
        font-size: 20px;
        margin-top: 0;
    }
}

@media (min-width: 767px) {
    .sp-header .lego-embed-block .header-top .spheader-logo {
        position: relative;
        left: -3px;
    }

    .vc_row + .vc_row,
    .vc_clearfix + .vc_row {
        margin-top: 0;
    }
}

/* Button style overrides */
button,
.button {
    -webkit-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    background-color: #516041;
    border-radius: 5px;
}

button:hover,
.button:hover {
    background-color: #738167;
    border-radius: 5px;
}
