/*
 * Brochures (SPA Version)
 */

/* catalog grid */
.brochures-item h3 {
    letter-spacing: 1px;
    margin-bottom: 0;
}
.brochures-item p {
    margin: 0;
}
.brochures-item button.btnMail,
.brochures-item .button-checkbox label {
    border: #00539f 1px solid;
    color: #00539f;
    background: #e5f3fd;
    font-family: 'Gotham XNarrow SSm 5r', Arial, Helvetica, sans-serif;
    padding: 5px 15px;
    letter-spacing: 1px;
    display: inline-block;
}
.brochures-item button.btnMail:hover,
.brochures-item button.btnMail:focus,
.brochures-item .button-checkbox label:hover,
.brochures-item .button-checkbox label:focus {
    color: #fff;
    background: #00539f;
}
.selection-text::first-letter {
    text-transform: capitalize;
}
@media (max-width: 39.9375em) {
    .next .font-size-p8,
    .next .web-font .font-size-p8 {
        font-size: 1.230769230769231em;
    }
    .brochures-wrapper > .brochures-item:last-of-type {
        padding-bottom: 0;
    }
}
@media (max-width: 47.9375em) {
    .order-bar-desc {
        text-align: left;
    }
}

/* flex */
.brochures-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.brochures-item {
    display: block;
    flex-direction: column;
}
.brochure-caption {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.brochure-caption-text {
    flex-grow: 1;
}
.brochure-img-container {
    flex-shrink: 0;
}
.checkout-info {
    display: block;
}
.checkout-account,
.checkout-selected {
    display: flex;
}
.checkout-account > div,
.checkout-selected > div {
    flex-grow: 1;
}
@media (min-width: 640px) {
    .brochures-item,
    .checkout-info {
        display: flex;
    }
}

/* grid items */
.brochure-img {
    position: relative;
}
.brochures-item .button-checkbox input:checked + label {
    background: #333;
    border-color: #333;
    color: #fff;
}
.brochures-item .button-checkbox input:disabled + label {
    background-color: transparent;
    border-color: #e6e6e6;
    color: #666;
    cursor: not-allowed;
}
.selection-overlay {
    background: #000;
    opacity: 0.75;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.selection-content {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 90%;
}
.selection-circle {
    font-size: 30px;
    position: relative;
    height: 60px;
    width: 60px;
    margin: 0 auto;
}
.selection-circle:before {
    content: " ";
    display: block;
    border: solid 0.8em #fff;
    border-radius: .8em;
    height: 0;
    width: 0;
    position: absolute;
    left: 0.18em;
    top: 40%;
    margin-top: -0.6em;
}
.selection-circle:after {
     content: " ";
     display: block;
     width: 0.5em;
     height: 0.85em;
     border: solid #000;
     border-width: 0 0.2em 0.2em 0;
     position: absolute;
     left: .75em;
     top: 40%;
     margin-top: -0.30em;
     -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
     -o-transform: rotate(45deg);
     transform: rotate(45deg);
}
.selection-text {
    padding-top: 10px;
}
.selection-text a {
    color: #fff;
}
.brochures-container h2,
.brochures-container h3 {
    text-transform: capitalize;
}
.order-placeholder h2 {
    text-transform: none;
}
@media (max-width: 39.9375em) {
    .brochure-caption-text {
        min-height: auto!important;
    }
}

/* order bar */
.order-cell {
    background: #009dd2;
}
.order-table {
    display: table;
    min-height: 100%;
    margin: 0 auto;
    background: #fff;
    position: relative;
}
.order-row:before {
    background: #009dd2;
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    top: 0;
    left: 50%;
    margin-left: -50%;
    margin-left: calc(-100vw / 2);
    max-width: 1700px;
    width: 100vw;
}
.order-row {
    display: table-row;
}
.order-cell {
    display: table-cell;
    vertical-align: middle;
    padding: 10px;
    position: relative;
}
.order-cell p {
    margin: 0;
}
.order-cell.qty {
    background: #0054a0;
    width: 150px;
    text-align: center;
}
.order-cell.qty > .arrow-down {
    border: solid #fff;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    vertical-align: middle;
    margin-left: 10px;
}
.order-cell.qty > button {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
.order-bar-qty {
    background: #0054a0;
    display: inline-block;
    padding: 10px 20px;
}
.order-cart {
    position: absolute;
    border: 1px solid #efefef;
    width: 350px;
    background: #e1e9f0;
    right: 0;
    z-index: 2;
    -webkit-box-shadow: 0px 2px 7px 0px #404040;
    -moz-box-shadow: 0px 2px 7px 0px #404040;
    box-shadow: 0px 2px 7px 0px #404040;
}
.order-item + .order-item {
    margin-top: 10px;
}
.order-item span {
    display: inline-block;
    vertical-align: middle;
}
.order-item .brochure-name {
    width: 90%;
}
.order-placeholder {
    position: relative;
}
.order-wrapper.fixed {
    position: fixed;
    z-index: 2;
    top: 52px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
}
.order-wrapper.fixed .order-table {
    padding-bottom: 5px;
}
.brochure-close {
    background: transparent;
    border: 0;
}
.brochure-close svg {
    color: #0054a0;
    width: 15px;
    height: 15px;
    display: block;
}
.order-cart-msg {
    display: none;
}
.order-cart-msg.disabled {
    display: block;
}
.order-cart-btn.disabled,
.order-cart-btn.disabled:hover {
    border: 1px solid #ccc;
    background-color: #fff;
    pointer-events: none;
}
.article-container .order-cart-btn.button {
    margin-bottom: 0;
}
.order-cart-content.catalog .order-item {
    background-color: #fff;
}
.order-cart-content.checkout .order-item {
    background-color: #efefef;
}
.order-cart-content.catalog:before {
    content: '';
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e1e9f0;
    display: inline-block;
    height: 0;
    position: absolute;
    width: 0;
    left: 77%;
    margin-top: -8px;
}
@media (max-width: 39.9375em) {
    .order-cell {
        text-align: center;
        display: inline-block;
    }
    .order-cart {
        width: 100%;
    }
    .order-table {
        width: 100%;
        display: block;
    }
    .order-row {
        text-align: center;
        display: block;
    }
    .order-cart-content.catalog:before {
        display: none;
    }
    .order-cell.qty > button {
        height: 27px;
    }
}
@media screen and (min-width: 960px) {
    .order-wrapper.fixed {
        top: 57px;
    }
}
@media screen and (min-width: 106.25em) {
    .order-row:before {
        margin-left: -850px;
    }
}

/* article header */
.article-nav > .header-anchor-wrapper {
    display: inline-block;
    margin-left: 20px;
}
.article-nav > .header-anchor-wrapper:first-of-type {
    margin-left: 10px;
}
.article-nav > .header-anchor-wrapper + .header-anchor-wrapper:before {
    content: '';
    border-left: 1px solid #999;
    height: 0;
    width: 0;
    position: relative;
    right: 10px;
}
.tpl-v4 .article-title h1 {
    font-size: 2.5em;
    letter-spacing: 1px;
}
.next .tpl-v4 .article-title h2,
.next .tpl-v4 .article-title p {
    font-size: 1.142857142857143em;
    margin: .5em 0 0 0;
    line-height: 18px;
}

/* checkout */
.close-btn > svg {
    width: 17px;
    height: 17px;
    display: block;
    pointer-events: none; /* ie bug workaround */
}
.checkout-selected-item > .close-btn,
.order-item > .close-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 0 10px;
    vertical-align: middle;
}
.checkout-form .form-wrapper {
    margin: 0 auto;
    max-width: 400px;
}
.checkout-form .form-wrapper .form-field {
    padding-right: .76922307em;
}
.checkout-form .form-wrapper .form-field.radio {
    padding-top: 1em;
    padding-right: 0;
}
.checkout-form-submit:disabled {
    color: #666;
    cursor: not-allowed;
    border: 1px solid #ccc;
    background-color: #fff;
}
.async-validating {
    background-position: right .5em center;
    background-image: url('/images/global/ajax_loader.gif');
    background-repeat: no-repeat;
    background-size: 1.5em;
}
.checkout-form fieldset > .inline-field.dob-field {
    float: left;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0;
    margin: 0;
}
.checkout-form fieldset > .inline-field.dob-field:first-of-type {
    padding-left: .76922307em;
}
.dob-field + .dob-field:before {
    content: '-';
    height: 0;
    width: 0;
    position: relative;
    right: 5px;
}
.dob-field input {
    width: 3em;
}
.dob-field input#birthYear {
    width: 4em;
}
.already-registered {
    display: block;
    margin: 5px 0;
}
.subtext {
    margin: 0;
}
.brochures-container legend > .form-field-msg {
    display: block;
    margin: 5px 0;
}
.permissions-pcl > fieldset {
    margin: 0 0 15px 0;
}
.checkout-form .form-wrapper .permissions-pcl > fieldset .form-field.radio {
    padding-top: 5px;
}
@media (max-width: 39.9375em) {
    .checkout-account > div {
        height: auto!important;
    }
}

/* bottom bar */
.bottom-order-bar-wrapper {
    background: #fff;
    position: relative;
    padding: 15px 0;
}
.bottom-order-bar {
    background: #e6e6e6;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 1;
}
.bottom-order-bar > *,
.web-font .bottom-order-bar > h2 {
    font-family: 'Gotham XNarrow SSm 5r', Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
}
.web-font .bottom-order-bar > h2 {
    margin: 0 20px;
    display: inline;
    text-transform: none;
}
.bottom-order-bar:before {
    background: #e6e6e6;
    content: "";
    display: block;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}
@media (max-width: 39.9375em) {
    .bottom-order-bar > span {
        display: inline-block;
        margin-bottom: 10px;
    }
    .web-font .bottom-order-bar > h2 {
        display: block;
        margin: 0 0 20px 0;
    }
}
@media screen and (min-width: 61.875em) {
    .bottom-order-bar:before {
        left: 50%;
        margin-left: -50%;
        margin-left: calc(-100vw / 2);
        max-width: 1700px;
        width: 100vw;
    }
}
@media screen and (min-width: 106.25em) {
    .bottom-order-bar:before {
        margin-left: -850px;
    }
}

/* headline overwrite */
.headline-bar:not(.brochures-category):first-of-type {
    padding-top: 0;
}

/* lightbox overwrite */
.brochures-lightbox {
    margin: 0 auto;
    overflow: inherit;
    position: relative;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0px 3px 10px 3px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 3px 10px 3px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 3px 10px 3px rgba(0,0,0,0.4);
}
.brochures-lightbox .button {
    margin: 10px 15px;
}
.next .brochures.mfp-bg {
    background: #fff;
}
.brochures-lightbox.permissions-lightbox {
    border-bottom: 5px solid #bd0000;
}
.brochures-lightbox.permissions-lightbox .button {
    margin: 5px 0 15px 0;
}
.brochures-lightbox .title span {
    margin-right: 5px;
}

/* loading */
.loading {
    display: inline-block;
    font-size: 1.1538em;
    font-weight: 700;
    margin: 10px 0;
}
.loading > img {
    height: 26px;
    width: 26px;
    vertical-align: middle;
    margin-right: 10px;
}

/* polar brochures */
.polar-brochures-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.polar-brochures .disabled input {
    cursor: not-allowed;
}
.polar-brochures .disabled label {
    color: #999;
}
.polar-brochures .subtext,
.polar-brochures .disclaimer {
    padding-left: 10px
}
.polar-brochures fieldset {
    margin-bottom: 0;
}
.polar-brochures fieldset .form-field.radio {
    padding: .7692307em 0 .7692307em 2.4em;
}
.polar-brochures .form-field-msg {
    display: block;
}
.polar-brochures-questions legend {
    padding-bottom: .35em;
}
.brochures-container .polar-brochures legend > .form-field-msg {
    margin-left: 10px;
}
.polar-brochures-loading.container {
    margin: 200px auto;
}
.polar-brochures-confirmation.container {
    margin: 50px auto 200px;
    width: 500px;
}
@media (min-width: 640px) {
    .polar-brochures-email {
        width: 33%;
    }
    .polar-brochures .disclaimer {
        width: 50%;
    }
    .brochures-container .full-width-field select {
        width: 60%;
    }
}
@media (min-width: 768px) {
    .category-divider {
        float: left;
    }
}

/* skeleton loading */
@keyframes placeHolderShimmer{
    0%{
        background-position: -600px 0
    }
    100%{
        background-position: 600px 0
    }
}
.animated-background {
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #dadada 8%, #cccccc 18%, #dadada 33%);
    position: relative;
    background-size: 1200px 104px;
}
.checkbox-loading {
    height: 20px;
    margin: 10px;
    border: 2px solid #dadada;
    border-radius: 2px;
}

/* password fortification */
.password-fortification {
    padding: .76922307em 0 .76922307em .76922307em;
}
.password-fortification li {
    display: flex;
    align-items: baseline;
}
.password-fortification-list {
    margin-bottom: 0;
}
.password-fortification .svg-icon-circle-checkmark {
    color: #638325;
    width: 15px;
    height: 15px;
    margin-right: 5px;
}
.bullet-container {
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}
.bullet {
    height: 7px;
    width: 7px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
}
.password-container > span + span {
    padding-top: 30px;
    min-width: 150px;
}
.special-characters {
    display: block;
}
@media (min-width: 400px) {
    .special-characters {
        display: inline;
    }
    .password-fortification li {
        align-items: center;
    }
}
@media (min-width: 640px) {
    .password-container {
        display: flex;
    }
}
