﻿/*
    Overrides the old layout to achieve the desired v6.5 look on some pages while others still show the v6.0 look.
*/

#main {
    width: 100%;
    max-width: var(--maxSiteWidth);
}

#content {
    width: 100%;
    max-width: var(--maxSiteWidth);
}

#content .outerContainer {
    background-color: #FFFFFF !important;
    width: revert;
}

/* Add some padding when the viewer is narrower than the max-width of the site */
@media (max-width: 1400px) { /* should equal var(--maxSiteWidth) */
    #productMenu {
        padding-left: 10px;
    }
}

.productFixedHeader .content {
    width: 100%;
    max-width: var(--maxSiteWidth);
}

.secondaryFixedHeader .content {
    width: 100%;
    max-width: var(--maxSiteWidth);
}

/* tabs widget */
.tabsWidget {
    width: revert;
}
.tabsWidget .panelsContainer, .tabsWidget .panelsContainerNoWidth {
    background: revert;
    border-top-left-radius: revert;
    padding: 10px;
}

.tabsWidget .topTabs .tab:not(:first-child) {
    margin-left: 0px;
}
.tabsWidget .topTabs .tab .tabTitle, .tabsWidget .topTabs .tabActive .tabTitle {
    background: revert;
    background-color: var(--lightBackgroundNotSelected);
    border-left: 1px solid var(--standardBorderColor);
    border-top: 1px solid var(--standardBorderColor);
    border-top-right-radius: var(--buttonBorderRadius);
    border-top-left-radius: var(--buttonBorderRadius);
    padding-left: 20px;
    padding-right: 20px;
    color: var(--lightFont);
}
.tabsWidget .topTabs .tab:nth-last-child(4) .tabTitle {
    border-right: 1px solid black;
}
.tabsWidget .topTabs .tabRightMargin, .tabsWidget .topTabs .tabLeftMargin {
    display: none;
}
.tabsWidget .topTabs .tabTitle {
    border-bottom: 1px solid var(--standardBorderColor);
}

.tabsWidget .topTabs .tabActive .tabTitle {
    border-bottom: 1px solid var(--lightBackground);
    color: var(--darkFont);
    background-color: var(--lightBackground);
}

.bgDarkBeige {
    background-color: var(--lightBackground);
}

/* Modal */

#modal #deliveryAddressSelection .tabsWidget #pickupPanel .pickupAddressBlock, #modal #deliveryAddressSelection .tabsWidget #deliveryPanel .deliveryAddressBlock {
    background-color: var(--lightBackground);
}

#modal div.lrg {
    width: 1200px;
    max-width: 95%;
}

#modal .contents #contentsWrapper div.modal.sm, #modal .contents #contentsWrapper div.modal.xs {
    margin-top: calc(35vh - 100px); /* Try to center the div */
}

.storeButton {
    border: 1px solid var(--standardBorderColor);
}

.redBrown {
    color: var(--orangeColor);
}

#modal #splitPaymentScreen, #modal #newPaymentScreen, #modal #newPaymentScreen #newPaymentContent {
    background-color: var(--lightBackground);
}

.spinnerLarge {
    border: 3px solid var(--grayLineColor); /* Light grey */
    border-top: 3px solid #3498db00; /* Blue */
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    animation: spin .75s linear infinite;
    background: revert;
    margin: auto;
}

#splitPaymentSpinnerCover .spinnerLarge {
    margin-top: 5rem;
}

.orangeLinkMed {
    box-sizing: border-box;
    background: var(--blueCTA);
    color: var(--lightFont);
    padding: var(--buttonPadding);
    border: 1px solid var(--grayLineColor);
    border-radius: var(--buttonBorderRadius);
    cursor: pointer;
    min-width: var(--buttonWidth);
    text-align: center;
}

.beigeLinkSm {
    box-sizing: border-box;
    background: var(--lightBackground);
    color: var(--darkFont);
    padding: var(--buttonPadding);
    border: 1px solid var(--grayLineColor);
    border-radius: var(--buttonBorderRadius);
    cursor: pointer;
    width: var(--buttonWidth);
}

.beigeLinkSm:hover{
    background-color: var(--lightBackgroundHover);
    color: var(--darkFont); /* needed to override the base.css color change for <a> tags */
}

.beigeLinkSm.selected {
    background-color: var(--brownSelected);
    color: var(--lightFont);
    border-color: var(--lightLineColor);
}

#divStoredPaymentList ul li.active, .divStoredPaymentList ul li.active {
    background: var(--brownSelected);
}

/* Product Editor */
#productEditor .bgDarkBeige, #productEditor #middleCol, #productEditor #ingredientOptions, #productEditor #ingredients, #productEditor #ingredientsForCatering {
    background: var(--lightBackground);
}

.bottomCorners.bgWoodBlock {
    background: var(--lightBackground);
}