.CartFlex {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.PanelCSS {
    display: flex;
    flex-direction: column;
    width: 82%;
    margin-bottom: 25px;
    /* padding: 10px; */
    border: 3px solid #CCCCCC;
}

.SCARTWarnPanel {
    display: flex;
    flex-direction: column;
    width: 82%;
    margin-bottom: 15px;
}

.SCARTWarnPanel>div {
    margin: 10px 0;
}

.PriceTotalFlex {
    display: flex;
    flex-direction: row;
    /* justify-content: flex-end; */
    /* align-content: flex-end; */
    /* width: auto; */
}

.ftotalrow {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 2px 0;
}

.ftotal {
    flex-basis: 15%;
    text-align: right;
}

.ftotaldesc {
    flex-grow: 1;
    text-align: left;
}

.SubTotals {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* flex-grow: 1; */
    justify-content: flex-end;
    justify-items: flex-end;
    justify-self: flex-end;
    align-content: flex-end;
    align-items: flex-end;
    align-self: flex-end;
}

.SubTotals>.PriceTotalFlex {
    flex-shrink: 1;
    margin: 0 7px;
}

.PriceTotalItems {
    flex-basis: auto;
    justify-content: center;
    vertical-align: middle;
    align-content: center;
    align-items: center;
    align-self: center;
    padding: 0px 3px;
}

.ShoppingContainer {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    /* border: 1px solid blue; */
    /* -webkit-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12); */
    margin: 0 10px;
    padding: 10px 0;
}

.rep_Header {
    background-color: #CCCCCC;
    /* padding: 6px 0; */
}

.rep_header_item2 {
    background-color: rgb(243, 243, 245);
    padding: 6px 0;
}

.rep_header_item {
    background-color: #CCCCCC;
    margin: 10px 0;
}

#CartMenuDiv {
    width: 82%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.CartMenuItem {
    border: 1px solid #f3f3f5;
}

.CartMenuItem,
.CartMenuItem>a {
    flex: 1 auto;
    text-align: center;
    color: #860909;
    /* background-color: #F4F4F4; */
    background: #f4f4f4;
    /* Old browsers */
    background: -moz-linear-gradient(top, #f4f4f4 0%, #cecece 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #f4f4f4 0%, #cecece 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #f4f4f4 0%, #cecece 100%);
    padding: 2px 0;
    /* font-weight: 500; */
}

.CartMenuItem>a {
    background-color: transparent;
    width: 100%;
    display: block;
}


/* 
.CartMenuItem:hover {

    background: #cecece;
    background: -moz-linear-gradient(top, #cecece 0%, #f4f4f4 100%);

    background: -webkit-linear-gradient(top, #cecece 0%, #f4f4f4 100%);

    background: linear-gradient(to bottom, #cecece 0%, #f4f4f4 100%);
} 
*/


/* 
.CartMenuItem:hover>a {
     color: white; 
} */

.CMI_Selected,
.CMI_Selected>a {
    flex: 1 auto;
    text-align: center;
    color: white;
    /* background-color: #860909; */
    background: #860909;
    /* Old browsers */
    background: -moz-linear-gradient(top, #860909 0%, #4f0505 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #860909 0%, #4f0505 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #860909 0%, #4f0505 100%);
    padding: 2px 0;
}


/* PRICE MATCH STUFF */

.PriceMatchFlex {
    display: flex;
    flex-direction: column;
    align-content: space-around;
    justify-content: space-around;
    background-color: #FFFFCC;
    margin: 0 5px;
    border: dashed 2px #860909;
    padding: 0 5px;
}

.PriceMatchFlex>div {
    padding: 3px 0;
}

.PriceMatchPanel {
    display: flex;
    flex-direction: row;
    align-content: space-around;
    justify-content: space-around;
    /* border: 1px solid maroon; */
    flex-wrap: nowrap;
}

.PriceMatchFlex_Disabled {
    display: none;
}

.PriceMatch {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* flex-basis: 25%; */
    /* border: 1px solid royalblue; */
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.PriceMatchURL {
    flex-grow: 1;
    flex-basis: 35%;
}

.Price_TB {
    width: 75%;
}


/* PM END */

#CartHeader {
    width: 82%;
    background-color: rgb(243, 243, 245);
    margin-bottom: 30px;
}

#Cartheader>div {
    padding: 5px 0;
}

#CH_ITEM3 {
    background-color: #860909;
    color: white;
}

.CartHeaderFlex {
    display: flex;
    flex-direction: column;
    align-content: space-around;
    justify-content: space-around;
}

.CartHeaderBox {
    display: flex;
    flex-direction: row;
    align-content: space-around;
    justify-content: space-around;
}

.ShoppingItemFlex {
    display: flex;
    flex-direction: row;
    align-content: space-around;
    /* align-items: center; */
    /* align-self: center; */
    justify-content: space-around;
    /* border: 1px solid purple; */
}

.ShoppingItem {
    display: flex;
    flex-direction: column;
    /* border: 1px solid pink; */
    align-content: center;
    justify-content: center;
    margin: 0 5px;
}

.ShoppingItemPic {
    flex-basis: 5%;
    margin-left: 10px;
}

.SICheckBox {
    width: 8px;
}

.SICheckBox>input[type="checkbox"] {
    /* Double-sized Checkboxes */
    -ms-transform: scale(1.25);
    /* IE */
    -moz-transform: scale(1.25);
    /* FF */
    -webkit-transform: scale(1.25);
    /* Safari and Chrome */
    -o-transform: scale(1.25);
    /* Opera */
    transform: scale(1.25);
    padding: 10px;
}

.ShoppingItemDesc {
    flex-grow: 1;
    flex-basis: 35%;
}

a[href].ShoppingItemDesc {
    color: #056e97 !important;
}

a:not([href]).ShoppingItemDesc {
    color: black !important;
}

.ShoppingScaleIcon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 15px;
}

.SCartSIcon {
    height: 50px;
    width: 50px;
}

.ShoppingItemQTY {
    display: flex;
    flex-direction: column;
    flex-basis: 11%;
    align-items: center;
    min-width: 50px;
    text-overflow: clip;
    margin: 0 5px;
    justify-content: center;
    align-content: center;
    text-align: center;
}

.ShoppingItemCheck {
    align-items: center;
}

.ShoppingItemCheck span {
    max-height: 50%;
}

.QTYTB {
    width: 100%;
    text-align: center;
    position: relative;
    /* height: 30px; */
}

.AvailLB {
    position: absolute;
    display: block;
    bottom: 100%;
    width: 100%;
    text-align: center;
}


/****************** PRICES *************** */

.ShoppingItemPrices {
    flex-basis: 19%;
    align-items: center;
}

.PriceFlexCont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    align-self: center;
}

.PriceFlexCont>div,
.PriceFlexCont>span {
    flex-grow: 1;
}


/********************************* NON STOCK CSS RULES ************************/

#PriceTBCont {
    max-width: 150px;
}

#ExtInfoCont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    border: 2px solid #083064;
    padding: 15px 5px 10px 5px;
    margin: 15px 5px 5px 5px;
}

.NonAddBut {
    width: 200px;
    height: 100%;
    background-color: #c86738;
    color: white;
    border: 2px solid #d7d7d7;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.NonAddBut:hover,
.NonAddBut:focus {
    /* color: white; */
    /* background-color: #860909; */
    border-color: black;
    border-width: 3px;
    border-radius: 0;
    /* font-weight: bold; */
    transition: all 0.3s ease;
}

#AddNonStockFlex {
    position: relative;
    display: flex;
    flex-direction: row;
    /* border: 1px green solid; */
    justify-content: space-between;
    /* padding: 5px 0 5px 0; */
}

.QtyCont {
    max-width: 150px;
}

.LongBox {
    flex-grow: 1;
    /* flex-basis: 87%; */
    /* max-width: 450px; */
}

.NonTB {
    width: 100%;
}

#NonTBPRICE {
    flex-grow: 1;
    /* border: 1px cyan solid; */
}

.AddNonStockItem {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0 5px 0 5px;
    border: 3px rgb(243, 243, 245) solid;
    justify-content: center;
    align-content: center;
}

#NonBut {
    flex-basis: 8%;
}

.AddNonStockItem>div {
    margin: 4px;
}

#NonPrice {
    flex-basis: 12%;
}

#NonURL {
    flex-grow: 1;
}

#NonQTY {
    flex-basis: 9%;
}

.NONflexHor {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.NONflexCol {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: space-around;
    padding: 5px;
    flex-grow: 1;
}

.NONflexCol>div {
    margin: 5px 0;
}


/* Shopping Item (Item added to Cart) */

#Section3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

#Section2 {
    width: 100%;
    max-width: 800px;
    align-items: center;
}

.ItemMessageBox {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.20);
    /* border: 1px solid green; */
}

#ItemInfoBox {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
    /* flex-basis: 39%; */
}

#ItemIconPic {
    max-height: 50px;
}

#InfoRight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#InfoRight a {
    appearance: none;
    color: white;
    box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.12);
}

#ItemMessage {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.CusInfoTB {
    margin: 5px 0;
    padding: 4px;
}

.CusInfoDDL {
    border: 2px solid red;
}

.TBREQUIRED:placeholder-shown {
    border: 2px solid red;
}

.CusInfoPanel {
    padding: 10px;
    justify-content: space-around;
    align-content: space-around;
}

.CusInfoPanel>div {
    /* width: 100%; */
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}


/* Pay Tabs Start */

.paytabs {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.paytabs button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.paytabs button:hover {
    background-color: #ddd;
}

.paytabs button.active {
    background-color: #ccc;
}


/* Pay Tabs End */

.mainnavbuttons {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    /* flex: 1 auto; */
    width: 82%;
    padding: 0 10px;
    margin-bottom: 25px;
}

.backnavbutton {
    justify-self: flex-start;
    padding: 12px 20px;
    /* margin-left: 0 auto; */
}

.forwardnavbutton {
    justify-self: flex-end;
    margin-left: auto;
    padding: 12px 20px;
    /* margin-right: 0 auto !important; */
}

.qtybuttons {
    display: flex;
    flex-direction: row;
    flex-grow: 2;
    justify-content: space-around;
}

.baroption1 {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.shopfinbuts {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: space-around;
    justify-content: space-around;
    width: 100%;
}

.RMSelectBoxCSS {
    margin: 5px !important;
    padding: 5px;
    border: 2px solid black;
}

.RMSelectBoxCSS_NeedInput {
    border: 2px solid red !important;
}

.RMSelectBoxCSS>div {
    margin: 5px 0;
}

#LoadingDockInstrBox>ul,
#LoadingDockInstrBox>ul>li {
    margin: 5px 0;
}

#CVNUM_TB:placeholder-shown {
    border: 2px solid red;
}

#ExtraSignupOptionsBox {
    padding-left: 20px;
}

#ExtraSignupOptionsBox * {
    margin: 8px 3px;
}

#NO_RM_TEXT_CONT_PANEL {
    padding-left: 20px;
    margin: 8px 3px;
}

#ConfirmInfoCont {
    justify-content: space-evenly;
    padding: 4px;
}

#ConfirmInfoCont>div {
    /* flex-basis: 32%; */
    flex-grow: 1;
}

.ConfirmBox {
    display: flex;
    flex-direction: column;
    /* border: 2px solid pink; */
}

.ConfirmBox * {
    padding: 2px;
    /* margin-left: 2px; */
}

@media (max-width: 600px) {
    .PanelCSS {
        width: 100%;
    }
    #AddNonStockFlex {
        /* flex-wrap: wrap; */
        flex-direction: column;
    }
    #AddNonStockFlex>div {
        margin: 5px 0;
    }
    .NonAddBut {
        width: unset;
        height: 35px;
    }
    .QtyCont {
        max-width: unset;
    }
    .PriceMatchPanel {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .ShoppingItemFlex {
        flex-direction: column;
        text-align: center;
    }
    .ShoppingItem {
        padding: 2px;
        align-items: center;
    }
    .qtybuttons {
        flex-direction: column;
    }
    .ShoppingItemFlex {
        border: 2px solid #f1f1f1;
    }
    .shopfinbuts {
        flex-direction: column;
    }
    #ExtInfoCont {
        flex-direction: column;
    }
    .NONflexHor {
        flex-direction: column;
        align-items: unset;
    }
    #PriceTBCont {
        max-width: unset;
    }
}





/* Disable (client) pm link to open PM panel for advanced reservation models */

div[id*='aspMainContent_AdvReservationRepeater_PMLINKPANEL'] {
    display: none !important;
    visibility: hidden !important;
}