/**
 *
 * CSS verrides for ecommerce specific pages (aim to keep these to a minimum)
 *
 */

/* Helpers */

.link-underline {
    text-decoration: underline;
}

.link-white,
.link-white:hover {
    color: #fff;
}

.pad-b-0 {
    padding-bottom: 0 !important;
}

.unbold {
    font-weight: normal !important;
}

.margin-sm {
    margin: 0.5em 0;
}

/* Form styling */

.form-group {
    margin-bottom: 20px;
}

.form-errors li {
    padding-top: 4px;
    color: #cc0000;
}

.ms-select-driven-picklist .custom-select {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/* Shopping Cart Header dropdown. */
.nav-login-toggle > span {
    background-image: url("etc/designs/msi/assets/images/sprites/icon_spritesheet.png");
    background-position: -100px center;
}
.nav-login-toggle:hover > span,
.ms-nav-login-active .nav-login-toggle > span {
    background-position: -540px center;
}

.nav-login-g {
    width: 280px;
}

.nav-login-name {
    max-width: none;
    margin-right: 12px;
}

.nav-cart-item {
    line-height: 1.25;
    padding-bottom: 10px;
    margin-right: 12px;
    margin-bottom: 10px;
    border-bottom: solid 1px #eee;
}
.nav-cart-item__code {
    font-weight:bold;
}
.nav-cart-item__name {
    font-size: smaller;
}
.nav-cart-item__qty {
    float: right;
}
@media only screen and (max-width: 984px) {
    .nav-cart-item {
        display: none;
    }
}


/* Checkout Field Inputs. */

.checkout-form label,
.form label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    line-height: 1.5;
    font-size: small;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow:hidden;
}
.checkout-form input,
.ms-select-driven-picklist {
    max-width: 100%;
}
.ms-select-driven-picklist select {
    max-width: 100%;
}
.checkout-form input[type=checkbox] + label {
    margin-top: 20px;
    margin-bottom: 15px;
    text-transform: none;
}

.checkout-form .description {
    font-size: 12px;
    padding: 0px;
}

.ms-cart_cost {
    font-weight: bold;
    text-align: right;
    font-size: 20px;
}
.checkout-form .ms-btn.btn-secondary {
    padding: 15px 10px 12px;
}


/* Checkout form layout. */

.checkout-form__product {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.checkout-form__product-thumb {
    margin: 0;
    padding-bottom: 20px;
}

.checkout-form__bottom {
    padding-top: 50px;
}

.checkout-form__total-row {
    padding: 20px 0 0;
    border-top: 1px solid #eee;
}

.checkout-form__total-row:last-child {
    border-bottom: 1px solid #eee;
}


/* Messages. */

.message {
    position: relative;
    padding: 25px 25px 20px;
    margin-bottom: 1em;
    color: #fff;
    background-color: #0063be;
}

.message-info {
    position: relative;
    padding: 15px 25px;
    margin-bottom: 1em;
    color: #444;
    background-color: #eee;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.message-success {
    position: relative;
    padding: 25px 25px 20px;
    margin-bottom: 1em;
    color: #fff;
    background-color: #2b8838;
    margin-top: 20px;
}

.message:after {
    position: absolute;
    top: -25px;
    display: block;
    width: 40px;
    height: 40px;
    content: '!';
    color: #0063be;
    font-size: 35px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    background: #fff;
    border: 5px solid #0063be;
    border-radius: 50%;
    box-shadow: 0 0 0px 5px #fff;
}

.message-alert {
    position: relative;
    padding: 35px 25px 20px;
    margin-bottom: 1em;
    color: #a94442;
    background-color: #f2dede;
    margin-top: 40px;
}

.message-alert:after {
    position: absolute;
    top: -25px;
    display: block;
    width: 40px;
    height: 40px;
    content: '!';
    color: #a94442;
    font-size: 35px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    background: #fff;
    border: 5px solid #a94442;
    border-radius: 50%;
    box-shadow: 0 0 0px 5px #fff;
}

/* In Page Seearch box */

.ms-page-searchbox form {
    position: relative;
    margin-bottom: 6px;
}
.ms-page-searchbox input[type="text"].nav-search-input {
    max-width: 100%;
}
.ms-page-searchbox label {
    font-size: 16px;
    padding: 6px 0 10px 0;
    display: block;
    font-family: "Univers-b", Arial, san-serif;
    text-transform: uppercase;
    font-weight: normal;
}
.ms-page-searchbox label span {
    color: #0063be
}
.ms-page-searchbox .nav-search-submit {
    top: inherit;
    bottom: -2px;
    right: 0;
}
.ms-page-searchbox a {
    font-family: "Univers-b", Arial, san-serif;
    text-decoration: underline;
    font-size: 14px;
    margin-left: 10px;
    font-weight: normal;
}

/* Homepage */
.hp-panel {
    width: 100%;
    height: 198px;
    display: block;
    position: relative;
}
.hp-panel .title-wrap {
    width: 100%;
    position: absolute;
    bottom: 0px;
    background-color: rgba(255, 255, 255, 0.6);
    display: block;
}
.hp-panel .title-wrap h3 {
    font-family: "Univers-b", Arial, san-serif;
    font-weight: bold;
    font-size: 19px;
    text-transform: uppercase;
    padding: 8px 8px;
    margin: 0px;

}
.hp-panel:hover .title-wrap h3 {
    color: #0063be;
}
#hp-panel-batteries {
    background-image: url("/uploads/banners/batteries-and-chargers.jpg");
}
#hp-panel-find {
    background-image: url("/uploads/banners/find-what-you-need.jpg");
}
#hp-panel-shipping {
    background-image: url("/uploads/banners/free-shipping.jpg");
}

.quick-links h3 {
    font-family: "Univers-b", Arial, san-serif;
    font-weight: normal;
    font-size: 16px;
    margin-top: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.quick-links ul {
    float: left;
    margin: 2px 10px 2px 20px;
}

.quick-links li:before {
    content: " ";
    float: left;
    width: 7px;
    height: 11px;
    margin-top: 6px;
    margin-right: 4px;
    background: transparent url("etc/designs/msi/assets/images/sprites/sprite_main.png") -48px -78px no-repeat;
}

.quick-links li a {
    color: #000;
    font-size: 14px;
}

.ms-btn.ms-btn-sml {
    padding: 2px 9px;
    width: auto;
}

/* Product details */

.ms-product-item .text-cont .product-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-desc {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 0;
}
.product-price {
margin: 0;
    font-size: 16px;
    font-weight: bold;
}
.product-price .gst {
    font-size: 9px;
    font-weight: normal;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

/* alerts */
.alert {
    line-height: normal;
    font-size: 14px;
    margin-top: 60px;
    margin-bottom: -60px;
    color: #fff;
}

.error {
    background: #C71C1C;
}

.success {
    background: #489C4D;
}

#card-element {
    padding: 12px 10px; border: 1px solid rgb(187, 187, 187);
}
#card-errors {
    margin: 12px 0 -12px 0;
    color: #600;
}