/*
File:  v2_shopcart.css

Last Modified:
    04-14-2025/reb/ PD-8483: remove :read-only pseudo from disabled input element declarations
    09-09-2024/reb/ PD-7708: fix issue where $0 additional charges displayed in Order Summary on mobile view
    ??/??/2020/reb/ ???????: created for V2 shopcart

*/
    div.tempDisable {
        background: transparent;
        width:      100%;
        height:     100%;
        z-index:    50000;
        top:        0;
        left:       0;
        position:   fixed;
    }
    @keyframes spinner {
       to { transform: rotate(360deg); }
    }
    @keyframes fadeIn {
        from { opacity: 0.0; }
        to { opacity: 1.0; }
    }
    div.tempDisable:before {
        content: '';
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100px;
        height: 100px;
        margin-top: -50px;
        margin-left: -50px;
        border-radius: 50%;
        border-top: 6px solid rgba(0,0,0,0.2);
        border-left: 6px solid rgba(0,0,0,0.2);
        border-right: 6px solid transparent;
        animation: spinner 1.25s linear infinite, fadeIn 1.5s ease-in 1;
    }
    div.littleSpinner {
        position: absolute;
        display: inline-block;
        background: transparent;
        width: 1.5em;
        height: 1.5em;
        top: 0.25em;
        left: 50%;
        margin-left: -1.5em;
        z-index: 5000;
    }
    div.littleSpinner:before {
        content: '';
        position: absolute;
        width: 1.25em;
        height: 1.25em;
        border-radius: 50%;
        border-top: 2px solid rgba(0,0,0,0.2);
        border-left: 2px solid rgba(0,0,0,0.2);
        border-right: 2px solid transparent;
        animation: spinner 1.25s linear infinite, fadeIn 0.5s ease-in 1;
    }
    .requiredKey {
        position: absolute;
        right: 0;
        margin-top: -1.75rem;
    }
    .ctr {
        text-align: center;
    }
    .right {
        float: right;
    }
    #shopcartCheckout {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: 1fr minmax(250px, 25%);
    }
    #shopcartCheckout a:focus, 
    #shopcartCheckout button:focus,
    #shopcartCheckout input:focus,
    #shopcartCheckout textarea:focus,
    #shopcartCheckout select:focus {
        outline: none !important;
    }
    #cartcheckoutform {
        position: relative;
        padding-bottom: 1rem;
    }
    #cartcheckoutform .desktoponly {
        display: block;
    }
    #cartcheckoutform .mobileonly, #cartcheckoutform .no-show {
        display: none;
    }
    .shopcart-sidebar {
        border: 1px solid #ddd;
        padding: 5px 10px;
        margin-top: 1.75rem;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    .shopcart-sidebar.ordersummary {
        margin-top: 0;
    }
    .shopcart-sidebar h3 {
        font-size: 18px;
        text-align: center;
        padding: 0 0 9px;
        margin-top: 0;
        border-bottom: 1px solid #ddd;
    }
    .shopcart-sidebar > div {
        margin-top: 0.5rem;
    }
    .shopcart-sidebar > div:last-of-type {
        margin-bottom: 0.5rem;
    }
    .shopcart-sidebar i.fa.fa-cube {
        display: inline-block;
        vertical-align: middle;
        width: 40px;
        height: 40px;
        text-align: left;
        font-size: 40px;
        font-weight: normal;
        color: peru;
    }
    .shopcart-sidebar.no-border {
        border: none;
        padding: 5px 0;
    }
    .placeorder-div {
        margin-top: 1.5rem;
        width: 45%;
    }
    #cartcheckoutform .btn.place-order-btn {
        font-size: 20px;
        width: 100%;
    }
    .shopcart-sidebar tr#totalrow td {
        border-top: 1px solid #ddd;
        font-size: 18px;
        padding-top: 0.5rem;
    }
    .shopcart-sidebar tr:not(#totalrow) td:nth-of-type(2) {
        font-weight: bold;
    }
    .shopcart-sidebar td.order-total {
        color: green;
    }
    .shopcart-sidebar tr.addons-row {
        display: none;
    }
    .jconfirm .jconfirm-box {
        min-width: 250px;
    }
    .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default {
        color: #333 !important;
    }
    #printfriendly-link {
        display: inline-block; 
        margin-bottom: 0.25rem;
    }
    .shopcart-accordion-container th {
        background-color: #eee;
    }
    a.shopcart-accordion-btn.large {
        color: inherit;
        font-size: 18px;
        font-weight: 400;
        text-decoration: none;
        display: block;
        padding: 4px;
        width: 100%;
        border: 1px solid #ddd;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    a.shopcart-accordion-btn.large:before {
        content: "\f055";
        font-family: "FontAwesome";
        display: inline-block;
        height: inherit;
        display: inline-block;
        width: 2em;
        padding-left: 0.5em;
        vertical-align: middle;
    }
    a.shopcart-accordion-btn.large.active:before {
        content: "\f056";
    }
    a.shopcart-accordion-btn.disabled,
    .shopcart-sidebar.disabled *:not(.place-order-btn) {
        color: lightGray !important;
        cursor: default;
    }
    .shopcart-sidebar:not(.no-border).disabled * {
        pointer-events: none;
    }
    a.shopcart-accordion-btn.small,
    .toggleInstLink,
    .toggleInstLink:hover,
    .toggleInstLink:active {
        display: inline-block;
        height: 1.5rem;
        text-decoration: none;
    }
    a.shopcart-accordion-btn.small {
        margin-bottom: 0.25rem;
    }
    a.shopcart-accordion-btn.small:before,
    .toggleInstLink:before {
        content: "\2295\2002 Edit";
        display: inline-block;
        margin-right: 0.25em;
    }
    a.shopcart-accordion-btn.small.active:before,
    .toggleInstLink.active:before {
        content: "\2296\2002 Hide";
    }
    .shopcart-accordion-content {
        display: none;
        padding: 1em;
    }
    #editPayment .shopcart-accordion-content {
        padding-bottom: 0;
    }
    .shopcart-accordion-content.open {
        display: block;
    }
    .shopcart-accordion-content h3 {
        text-align: center;
    }
    #shipmethods_summary span.right {
        text-align: right;
    }
    .cartNamediv div {
        display: inline-block;
        white-space: nowrap;
        margin-right: 1rem;
    }
    #cartcheckoutform .paytype {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 0.5em;
    }
    #cartcheckoutform .paytype.paypal-div {
        display: inline-block;
    }
    #cartcheckoutform .paytype input[type="radio"] {
        display: inline-block;
        margin: 0.15em 0.5em 0 0;
        vertical-align: -0.1em;
    }
    #cartcheckoutform label {
        display: inline-block;
        padding-top: 0.25em;
    }
    label[for="NEWCC"] { 
        margin-left: 4px;
        font-weight: bold;
    }
    label[for="PAYPAL"] img {
        vertical-align: -1.5rem;
    }
    .paypal_blurb {
        display: block; 
        font-size: 12px;
    }
    .PayPal_icons {
        vertical-align: middle;
        max-height: 75px;
        margin-left: 1em;
    }
    .paypalIcon {
        text-align: center;
        display: inline-block;
        vertical-align: middle;
        margin-left: 1em;
        width: 216px;
        height: 75px;
        padding: 30px 4px 4px;
        background: transparent url('https://www.paypalobjects.com/webstatic/mktg/logo/acceptance_mrk_template_spmbpp.jpg') center center no-repeat;
        background-size: contain;
        box-sizing: border-box;
    }
    .paypalIcon img {
        height: auto;
        max-width: 96%;
    }
    .requiredStar {
        color: red;
    }
    .select-wrapper {
        display: inline-block;
        position: relative;
        border: 1px solid #ddd;
        padding: 1px 0;
        margin-top: 1px;
    }
    .shopcart-accordion-content .select-wrapper {
        margin: 2px 0 5px;
    }
    .select-wrapper:after {
        content: "\2195";
        position: absolute;
        right: 3px;
        top: 1px;
        pointer-events: none;
    }
    .select-wrapper select {
        position: relative;
        margin: 0;
        padding: 2px 1.5em 3px 0.5em;
        width: auto;
        font-size: 14px;
        max-width: 100%;
        border: none;
        border-radius: 0;
        background: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    .select-wrapper select option:hover {
        color: #fff;
        background-color: #3683f4;
    }
    #shipmethod_sel {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    #shipmethod_sel div {
        line-height: 1.4;
    }
    #shipmethod_sel .dropbtn,
    #shipmethod_sel a {
        display: flex;
        justify-content: space-between;
    }
    #shipmethod_sel .dropbtn div.opt,
    #shipmethod_sel a div.opt {
        max-width: 75%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #shipmethod_sel .dropbtn div:not(.opt),
    #shipmethod_sel a div:not(.opt) {
        font-weight: bold;
        text-align: right;
    }
    #shipmethod_sel .dropbtn div:not(.opt) i,
    #shipmethod_sel a div:not(.opt) i {
        font-weight: normal;
    }
    #shipmethod_sel div.dropbtn {
        position: relative;
        width: 100%;
        color: #666;
        margin: 2px 0 0 0;
        padding: 3px 18px 3px 6px;
        font-size: 14px;
        border: 1px solid #e7e7e7;
        overflow: hidden;
        width: 100%;
        cursor: pointer;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    #shipmethod_sel div.dropbtn:after {
        content: "\2195";
        display: inline-block;
        position: absolute;
        top: 2px;
        right: 4px;
    }
    #shipmethod_sel .dropdown-content {
        color: #333;
        font-size: 12px;
        display: none;
        position: absolute;
        width: 100%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        overflow: hidden;
        z-index: 1;
    }
    #shipmethod_sel.isPC .dropdown-content {
        top: 100%;
        left: 0;
        background-color: #fff;
        border: 1px solid #3683f4;
    }
    #shipmethod_sel.nonPC .dropdown-content {
        top: 3px;
        left: 0;
        padding: 4px 0;
        background-color: #e9e9e9;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    }
    #shipmethod_sel .dropdown-content a {
        color: #333;
        padding: 4px 8px;
        text-decoration: none;
    }
    #shipmethod_sel.isPC .dropdown-content a.chosen {
        color: #fff;
        background-color: #3683f4;
    }
    #shipmethod_sel.isPC .dropdown-content:hover a.chosen {
        color: #333;
        background-color: #fff;
    }
    #shipmethod_sel.nonPC .dropdown-content a.chosen .opt:before {
        content: " ";
        width: 0.75em;
        height: 0.4em;
        border: solid #333;
        border-width: 2px 2px 0 0;
        display: inline-block;
        vertical-align: 0.15em;
        transform: skew(20deg) rotate(135deg) scaleY(0.75);
        margin-right: 0.5em;
    }
    #shipmethod_sel.nonPC .dropdown-content a.chosen:hover .opt:before {
        border-color: #fff;
    }
     #shipmethod_sel .dropdown-content a:hover,
     #shipmethod_sel .dropdown-content:hover a.chosen:hover {
        color: #fff;
        background-color: #3683f4;
    }
    #shipmethods-inline-content {
        padding: 1em;
    }
    #shipBranch {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #mapSelectBranchBtn {
        margin-top: 0.5em;
    }
    #displayDeliveryBranch {
        font-style: italic;
    }
    #address_summary p, #address_summary span {
        font-size: 12px;
        margin: 0;
        padding: 0;
        word-break: break-word;
    }
    #address_summary p:empty, #address_summary span:empty {
        display: none;
    }
    .couponMsg {
        font-weight: bold;
        font-style: italic;
        color: darkblue;
    }
    .couponMsgErr {
        font-weight: bold;
        font-style: italic;
        color: red;
    }
    .v2-shopcart-div {
        padding: 10px 0;
    }
    .cartinfo label {
        display: inline-block;
        white-space: nowrap;
    }
    .cartinfo .button {
        margin: 1.5rem 0 0.5rem 0;
    }
    .cartinfo .lg-button {
        font-size: 18px;
        position: relative;
        display: block;
        width: auto;
        margin: 10px auto;
        background-color: green;
    }
    .v2-shopcart-div li {
        list-style: none;
    }
    .v2-shopcart-div li.cart-item {
        clear: both;
        display: grid;
        grid-gap: 0 20px;
        grid-template-columns: 3fr 9em 1fr;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        margin-bottom: 5px;
        -webkit-transition: all 0.5s ease-out;
        -moz-transition: all 0.5s ease-out;
        transition: all 0.5s ease-out;
    }
    .v2-shopcart-div.withImages li.cart-item {
        grid-template-columns: 125px 3fr 9em 1fr;
    }
    .v2-shopcart-div li.cart-item.fadeout {
        opacity: 0;
        transform: scale(0.5,0);
    }
    .v2-shopcart-div li.cart-item > div {
        position: relative;
    }
    .v2-shopcart-div > .info-bar {
        border-bottom: 1px solid #ddd;
        margin-bottom: 5px;
    }
    .imgCell {
        width: 100%;
        min-width: 100px;
        max-width: 150px;
        height: 75px;
        text-align: center;
        overflow: hidden;
    }
    .imgCell img {
        max-width: 100% !important;
        max-height: 100% !important;
    }
    .fa_div {
        font-size: 28px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .fa_div .fa {
        display: block;
    }
    .descCell, .qtyCell {
        margin-top: 0.25em;
    }
    .qtyCell {
        margin-left: 0.5em;
        padding-top: 0.25em;
    }
    .qtyCell input {
        margin-bottom: 0.25em;   
    }
    .cartqty {
        text-align: center;
        font-size: 14px; 
        padding: 0.25em; 
        width: 3.5em;
        border: 1px solid #ddd;
    }
    .commentCell, .priceCell, .availCell {
        float: left;
        margin-right: 1.5em;
    }
    .commentCell {
        margin-top: 0.5em;
    }
    .extPriceCell {
        font-size: 18px;
        color: green;
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .removeCell {
        text-align: right;
        margin: 0.25em 0;
    }
    .removeCell a {
        color: #888;
        white-space: nowrap;
    }
    .removeCell .fa-trash-o {
        font-size: 14px;
        vertical-align: top;
        padding-top: 3px;
    }
    div.subtotal {
        float: right;
        font-size: 18px;
        margin-top: 0.25rem;
        padding: 0.25em !important;
    }
    div.subtotal div {
        color: green;
    }
    #cartcheckoutform .btn {
        display: inline-block;
        width: auto;
        padding: 4px 12px;
    }
    #cartcheckoutform .button_sm {
        font-size: 12px;
        padding: 3px 9px;
        height: auto;
        line-height: 1;
        border: none;
    }
    #cartcheckoutform .button_sm.specsheet_btn {
        display: inline-block;
        font-size: 9px;
        margin: 0.25em 0 0 0;
        vertical-align: baseline;
    }
    #cartcheckoutform .info-bar {
        clear: both;
    }
    #cartcheckoutform .info-bar span {
        white-space: nowrap;
    }
    #cartcheckoutform .info-bar .btn {
        margin: 0.25rem 0;
    }
    #cartcheckoutform .btn.right {
        margin: -0.25rem 0 0.25rem 0.5rem;
    }
    .button-bar {
        margin-top: 2em;
        background: transparent;
    }
    .toggleLinkDiv {
        padding-top: 1rem;
    }
    #shipInstDiv textarea {
        width: 99.25%;
        height: 4.5em;
        border: 1px #cccccc solid;
        padding: 2px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    #savecarts, #prodgroups {
        margin: 10px 0;
        padding: 10px;
        border: 1px solid #ddd;
    }
    #prodgroups table tr td {
        text-align: center !important;
        padding: 0.25em 0;
        border-bottom: 1px solid #ddd;
    }
    #prodgroups table tr td:first-child {
        text-align: left !important;
    }
    #prodgroups table tr:last-of-type td {
        border-bottom: none;
    }
    #saveCartDiv {
        display: flex;
        flex-flow: row wrap;
        align-items: baseline;
        justify-content: space-between;
        padding: 1em 0;
    }
    #shipacct_span {
        display: none;
    }
    
    .one-half {
        position: relative;
        float: left;
        width: 48%;
        margin-right: 4%;
    }
    .one-half:nth-of-type(2n) {
        margin-right: 0;
    }
    .one-half:nth-of-type(2n+1) {
        clear: left;
    }
    .close-box {
        display: block;
        text-align: center;
        width: 1.1em;
        height: 1.1em;
        color: #fff;
        font-weight: bold;
        line-height: 1.0;
        text-decoration: none;
        background-color: #e8682a;
        border: 1px solid #e8682a;
    }
    .close-box:hover {
        color: #e8682a;
        background-color: #fff;
        text-decoration: none;
    }
    #paymentMethodDiv #new_cc_form {
        display: flex;
        flex-flow: row wrap;
        align-items: flex-end;
        justify-content: space-between;
        width: 36rem;
        max-width: 100%;
    }
    #cartcheckoutform input[type='checkbox'] {
        display: inline-block;
        margin-right: 0.5rem;
    }
    .addrsame_div {
        padding: 10px 4px;
    }
    .addrsame_div label {
        font-weight: bold;
        font-style: italic;
    }
    #ccChoice {
        padding-bottom: 10px;
    }
    #cvv_inline_content {
        background: #fff;
        max-width: 600px;
        padding: 10px;
    }
    #cvv_inline_content h2 {
        margin-top: 0;
    }
    #cvv_inline_content .cvv_info {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: repeat(3, auto);
    }
    #cvv_inline_content .cvv_info div:first-child,
    #cvv_inline_content .cvv_info div:last-child {
        grid-column: 1 / 4;
    }
    #cvv_inline_content .cvv_info div.caption {
        padding: 0 0 1rem 10px;
    }
    #cvv_inline_content .cvv_info img {
        max-width: 100%;
    }
    #cvv_inline_content p {
        font-size: 12px;
        padding-bottom: 0.5em;
    }
    .cc_img {
        border: 2px solid transparent;
        cursor: pointer;
    }
    .cc_img:hover, .cc_img.active {
        border-color: red;
    }
    .cctable {
        margin-top: 0.5rem;
    }
    .cctable table td {
        border-bottom: 1px solid #ddd;
    }
    label {
        display: inline-block;
        padding-top: 0.25em;
    }
    .error {
        display: block;
        font-weight: bold;
        color: red;
        margin-bottom: 1em;
    }
    .approval-msg {
        display: block;
        margin-bottom: 0.5em;
        font-weight: bold; 
        font-style: italic; 
        color: red;
    }
    .col {
        display: inline-block;
        vertical-align: top;
        width: 40%;
        margin-right: 5%;
    }
    .spacer {
        height: 10px;
    }
    #cartcheckoutform .cartcom.cartField:read-only {
        min-width: 20rem;
    }
    .cartField {
        font-size: 14px;
        margin-bottom: 5px;
        margin-top: 2px;
        border: 1px solid #ddd;
        height: 2em;
        width: auto;
        max-width: 100%;
        padding: 2px 0.5em;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    #achinfo {
        margin-bottom: 25px;
    }
    #achinfo label:not(#achAgreeLabel) {
        width: 16em;
    }
    input:disabled, select:disabled, button:disabled,
    input.disabled, select.disabled, button.disabled,
    .shopcart-sidebar.disabled button {
        background-color: #efefef !important;
    }
    .btn.place-order-btn:disabled {
        background-color: #ddd !important;
    }
    #cboxContent {
        margin-top: 0;
    }

    @keyframes move {
        0% { background-position: 0 0; }
        100% { background-position: 28px 0; }
    }
    .progressbar {
        width: 100%;
        height: 22px;
        border: 1px solid #2980b9;
        border-radius: 3px;
        background-image: repeating-linear-gradient(
            -45deg,
            #2980b9,
            #2980b9 11px,
            #eee 10px,
            #eee 20px /* determines size */
        );
        background-size: 28px 28px;
        animation: move .5s linear infinite;
    }

    /* responsive css */

    @media screen and (max-width: 900px) {
        #shopcartCheckout {
            display: flex;
            flex-wrap: wrap;
        }
        #printfriendly-link {
            display: none !important;
        }
        .main-section, .shopcart-sidebar-container {
            width: 100%;
        }
        .shopcart-accordion-container {
            display: block;
            width: inherit;
        }
        #cartcheckoutform .info-bar .btn {
            margin: 0.5em 0.1em;
        }
        #cartcheckoutform .cartcom.cartField:read-only {
            min-width: auto;
        }
        .one-half {
            width: 100%;
            margin-left: 0;
            margin-right: 0;
            box-sizing: border-box;
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
        }

        /* un-do previous responsive css rules */
        body:not(#quickpad-page):not(#printable-page):not([id^="order"]) #content TABLE,
        #shopcart-page TABLE {
            width: 100% !important;
            display: table !important;
        }
        body:not(#quickpad-page):not(#printable-page):not([id^="order"]) #content TABLE TBODY,
        #shopcart-page TABLE TBODY {
            width: 100% !important;
        }
        body:not(#quickpad-page):not(#printable-page):not([id^="order"]) #content TABLE TR,
        #shopcart-page TABLE TR {
            display: table-row !important;
        }
        body:not(#quickpad-page):not(#printable-page):not([id^="order"]) #content TABLE:not(.ui-datepicker-calendar) TD,
        #shopcart-page TABLE:not(.ui-datepicker-calendar) TD {
            display: table-cell !important;
            padding: 4px;
        }
        #shopcart-page #content TABLE TD A {
            font-size: inherit !important;
        }
        #shopcart-page #cartcheckoutform TABLE TR.addons-row {
            display: none;
        }
        #shopcart-page tr:nth-child(n) td:nth-child(n){
            float: none;
        }

        #g_name {
            width: 65%;
        }
        #cartcheckoutform .mobileonly {
            display: block;
        }
        #cartcheckoutform .desktoponly {
            display: none;
        }
    }

    @media screen and (max-width: 675px) {
        #cartcheckoutform .info-bar span {
            white-space: normal;
        }
        #cartcheckoutform .v2-shopcart-div li.cart-item {
            display: block;
            position: relative;
        }
        #cartcheckoutform .v2-shopcart-div li.cart-item > div {
            display: inline-block;
            vertical-align: top;
        }
        #cartcheckoutform .v2-shopcart-div li.cart-item > div:last-of-type {
            float: right;
        }
        .imgCell {
            float: left;
            max-width: 100px;
        }
        .removeCell, .extPriceCell {
            position: relative;
            display: block;
        }
        .removeCell {
            padding-top: 0.25em;
        }
        .extPriceCell {
            padding-bottom: 0.5em;
        }
        #cvv_inline_content {
            max-width: 90%;
        }
        .placeorder-div {
            width: 100%;
        }
    }
    
    @media screen and (max-width: 410px) {
        #shopcartCheckout {
            margin-top: 2rem;
        }
    }
