/** full page version requires padding **/
.container-fluid > .tires-search-container {
    margin: 110px auto;
    width: 100%;
    max-width: 800px;
}

.tires-search-container {
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

.tires-search-load-overlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000cc;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    animation: fadein 1.5s;
    animation-fill-mode: forwards;
    animation-delay: 0.5s; /* no flickering for fast load times */
}

@keyframes fadein {
    from {
        visibility: visible;
        opacity: 0;
    }
    to {
        visibility: visible;
        opacity: 1;
    }
}

.tires-search-load-overlay img {
    animation: spin 4s linear infinite;
}

/* rotate 360 key for loading animation */
@-moz-keyframes spin {
    100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.tires-search-header {
    display: flex;
}

.tires-search-magnifier {
    color: white;
    width: 100px;
    height: 60px;
    margin-right: 5px;
    flex-shrink: 0;
    background: black url(/skin/slider/magnifier.svg) center center no-repeat;
    background-size: 20px 20px;
}

.tires-search-title {
    color: white;
    background-color: rgba(0, 0, 0, 0.9);
    flex-grow: 1;
    height: 60px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tires-search-content {
    display: flex;
}

/* side tabs */

.tires-search-form-tabs {
    width: 100px;
    flex-shrink: 0;
    margin-right: 5px;
    display: flex;
    flex-direction: column;
}

.tires-search-tab {
    margin-top: 5px;
    opacity: 0.8;
    padding: 15px 5px;
    color: #cdcdcd;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    background: rgba(0, 0, 0, 0.9) no-repeat top right;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 101px;
    cursor: pointer;
}

.tires-search-tab:hover {
    opacity: 0.9;
}

.tires-search-tab.active {
    opacity: 1;
    background-image: url(/skin/slider/checkmark.svg);
    background-size: 15px 15px;
    background-origin: content-box;
}

.tires-search-tab .tires-search-tab-icon {
    display: inline-flex;
    width: 100%;
    height: 45px;
    justify-content: center;
    align-items: center;
}

/* main form container */
.tires-search-forms-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    position: relative;
    min-height: 313px;
}

#tires-search[data-type="kits"] .tires-search-forms-container,
#tires-search[data-type="wheels"] .tires-search-forms-container {
    min-height: 242px;
}

.tires-search-form {
    color: #cdcdcd;
    flex-grow: 1;
}

.tires-search-subheader {
    font-size: 1.1em;
    text-align: center;
    color: white;
}

/* tires form type of search size or vehicle */

.tires-search-type-choice {
    display: flex;
    justify-content: space-evenly;
}

.tires-search-type-choice span {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #cdcdcd;
    margin: 0 2px;
}

.tires-search-type-choice span.active {
    color: #ffffff;
    border-bottom: 2px solid rgba(229, 0, 25);
}

/* Form select boxes */

.tires-search-form-fields .tires-search-form-select {
    margin: 0.5em 0;
    color: #222;
}

.tires-search-form-fields .tires-search-form-select.disabled {
    opacity: 0.75;
}

.tires-search-form-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tires-search-form-fields.size .tires-search-form-select {
    flex-basis: 29%;
}

.tires-search-form-fields.vehicle .tires-search-form-select {
    flex-basis: 47.5%;
}

/** 2nd size button */
.tires-search-second-dimension-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    margin-bottom: 10px;
}

.tires-search-second-dimension-button {
    color: #eeeeee;
    border-radius: 5px;
}

.tires-search-second-dimension-button.active {
    margin-top: 0;
}

.tires-search-second-dimension-button:hover {
    background-color: #ffffff20;
    color: #ffffff;
}

/* second dimension button "plus" icon */
.tires-search-second-dimension-button > span {
    color: white;
    width: 17px;
    height: 17px;
    line-height: 17px;
    display: inline-block;
    background: rgba(229, 0, 25, 0.95);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 5px;
    text-align: center;
}

/* vehicle search wheels/kits sizes form when multiple sizes exist */
.tires-search-form-no-results {
    font-size: 18px;
    text-align: center;
    color: white;
    margin-top: 25px;
}

.tires-search-form-configurations {
    text-align: center;
}

.tires-search-form-configurations-list {
    display: inline-block;
}

.tires-search-form-configurations-row {
    margin-bottom: 1em;
    text-align: left;
}

.tires-search-form-configurations-row > p {
    margin-top: 15px;
    margin-bottom: 1px;
}

.tires-search-form-configurations-item {
    border-radius: 5px;
    background: rgba(229, 0, 25);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tires-search-form-configurations-item p {
    font-size: 1.2em;
    padding: 5px 15px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.tires-search-form-configurations-item .tires-search-form-configurations-item-diameter {
    color: white;
    width: 90px;
}

.tires-search-form-configurations-item .tires-search-form-configurations-item-dimensions {
    color: rgba(229, 0, 25);
    background: white;
    margin: 5px;
    flex-grow: 1;
    border-radius: 5px;
}

.tires-search-form-configurations-item.front-rear .tires-search-form-configurations-item-dimensions {
    font-size: 1em;
}

/* form buttons at bottom submit & season select */
.tires-search-form-buttons {
    display: flex;
}

.tires-search-form-button {
    line-height: 50px;
    height: 50px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-grow: 1;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.tires-search-form-button .tires-search-form-icon {
    /* season icon */
    display: inline-block;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.3) none center center no-repeat;
    background-size: 30px 30px;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.tires-search-form-button .tires-search-form-checkmark {
    /* season checkmark */
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    background: none center center no-repeat;
    background-size: 20px 20px;
}

div.tires-search-form-button.active span.tires-search-form-checkmark {
    background-image: url(/skin/slider/checkmark.svg)
}

div.tires-search-form-button {
    /* only divs change opacity */
    opacity: 0.7;
}

button.tires-search-form-button[disabled] {
    /* when the user hasnt selected all the choices */
    opacity: 0.5;
    cursor: no-drop;
}

div.tires-search-form-button.active {
    /* only divs change opacity */
    opacity: 1.0;
    background: #ffffff10;
}

button.tires-search-form-button.search {
    font-size: 14px;
    padding: 0 22px 0 13px;
    background-origin: content-box;
    border: 0;
    text-align: left;
}

div.tires-search-form-button.summer .tires-search-form-icon {
    background-image: url(/skin/slider/summer.svg);
}

div.tires-search-form-button.winter .tires-search-form-icon {
    background-image: url(/skin/slider/winter.svg);
}

.tires-search-form-customer-notice {
    display: flex;
    margin-top: 1em;
}

.tires-search-form-customer-notice > em {
    color: rgba(229, 0, 25);
    margin-right: 1em;
}

.tires-search-form-customer-notice > p {
    flex-grow: 1;
    text-align: left;
}

@media (max-width: 767px) {

    /* main container */
    .tires-search-container {
        height: auto;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .tires-search-content {
        display: block;
    }

    .tires-search-form-tabs {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .tires-search-tab {
        width: calc(33.333% - 3px);
    }

    .tires-search-forms-container {
        margin-left: 0;
    }

    .tires-search-form {
        padding-bottom: 50px;
    }

    .tires-search-select-row {
        flex-direction: column;

    }

    .tires-search-type-choice span {
        font-size: 12px;
    }

    .tires-search-form-fields {
        flex-direction: column;
    }

    /* buttons */
    .tires-search-form-buttons {
        flex-wrap: wrap;
        position: relative;
    }

    .tires-search-form-button.search {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .tires-search-title {
        font-size: 20px;
    }

    .tires-search-subheader {
        font-size: 13px;
    }

    .tires-search-form-button {
        width: 100%;
    }

    .tires-search-type-choice span {
        padding: 0.25em 0.5em;
        border-bottom: 2px solid #222;
    }

    .tires-search-type-choice span.active {
        background: #ffffff10;
    }

    .tires-search-form-configurations-item {
        flex-direction: column;
        align-items: stretch;
    }

    .tires-search-form-configurations-item p {
        margin: 7px !important;
        width: auto !important;
    }
}

/******************************/
/***** BRANDING PAR SITE ******/
/******************************/

.tires-search-magnifier {
    background-color: rgba(229, 0, 25, 0.9);
}

.tires-search-title {
    /* main title */
    font-family: Teko, sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    /* drop box button */
}

.tires-search-form-button.active .tires-search-form-icon {
    /* active season icon */
    background-color: rgba(229, 0, 25, 0.95);
}

button.tires-search-form-button.search {
    /* search submit button */
    font-family: Teko, sans-serif;
    font-size: 22px;
    font-weight: normal;
    background: rgba(229, 0, 25, 0.95) url(/skin/slider/search_white.svg) right 20px center no-repeat;
    padding-top: 2px;
}