body {
    padding: 0;
    margin: 0;
    background-color: #f2f2f2;
}

h1 {
    color: #b2282d;
    font-size: 30px;
    font-weight: bold;
    line-height: 56px;
    margin: 0 0 0 -2em;
    background-color: #fff;
    text-align: center;
}

#cds-search-container {
    margin-left: 2em;
    text-align: center;
}

.cds-browse-images {
    display: inline;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: auto;
    text-align: center;
}

.cds-browse-images ul {
    padding: 0;
}

.cds-browse-images li {
    display: inline-block;
    margin: 4px 8px 4px 8px;
    width: 15%;
    vertical-align: top;
    border: 1px solid transparent;
    background-color: #fff;
}

.cds-browse-images div {
    width: 100%;
}

.cds-browse-images img {
    width: 100%;
}

.cds-browse-images li:hover {
    border: 1px solid #b2282d;
    opacity: 0.8;
    background-color: #b2282d;
    color: #fff;
}

.cds-product-selector {
    display: inline-block;
    padding: 0;
    margin-right: 2em;
    font-size: 20px;
    font-weight: bold;
}

.cds-product-selector select {
    font-size: 20px;
}

.cds-facet-container {
    width: calc(100% - 2em);
    background-color: #f2f2f2;
}

.cds-unit-toggle-container {
    padding: 0;
}

.cds-unit-toggle-container input {
    margin: 0 8px 0 4px;
}

.cds-submit-container {
    margin-left: calc(50% - 1em - 105px)
}

.cds-submit-container button {
    background-color: #b2282d;
    color: #fff;
    width: 210px;
    height: 46px;
    font-size: 22px;
    display: block;
}

.cds-submit-container button:hover {
    background-color: #cb2a30;
}

.clear-both {
    clear: both;
}

li.selected-type {
    border: 1px solid #b2282d;
    background-color: #b2282d;
    color: #fff;
}

/* faceted search overrides */
#cds-top-facet-container {
    padding: 0;
    text-align: center;
}

#cds-top-facet-container ul {
    padding: 0;
    /* adjust width of this element based on browse image width of 5 x 15% */
    width: calc(5 * 17%);
    margin-left: calc((100% - (5 * 17%)) / 2);
}

.cds-tab-details button {
    margin: 0.5em;
}

#cds-top-facet-container .cds-attribute {
    margin: 0.5em;
    text-align: left;
    height: 2em;
    width: 20%;
}

#cds-top-facet-container .cds-attribute-label {
    font-size: 1em;
}

#cds-top-facet-container .cds-attribute-value-list {
    margin: 0 0.5em 0.75em;
    width: 100%;
}

#cds-top-facet-container .cds-attribute-value-list li {
    font-size: 0.9em;
}
