:root
{
    --bottom-margin: 140px;
    --right-margin: 340px;
}
@media screen and (min-height: 800px)
{
    :root
    {
        --bottom-margin: 200px;
        --right-margin: 340px;
    }
}
#content-wrapper
{
    background-color: var(--primary-100);
}
#content-wrapper.cust
{
    --bottom-margin: 200px;
}

.btn-primary
{
    font-weight: bold;
}

#content-wrapper .title
{
    font-size: 18pt;
    font-weight: bold;
}

/********** Color pickers ****************/
#color-picker-wrapper
{
    position: absolute;
    top: 1em;
    left: 1em;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    border: 1px solid var(--gray-200);
    z-index: 1;
}

#color-picker-wrapper .title
{
    cursor: pointer;
}

#color-picker-wrapper TD
{
    padding: 0.25em;
}

.color-swatch
{
    height: 40px;
    width: 40px;
    border-radius: 4px;
    box-shadow: inset 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.color-picker-flyout-wrapper
{
    position: relative;
}

.color-picker-flyout
{
    position: absolute;
    top: 0;
    left: 0;
}

.color-picker-flyout
{
    background-color: var(--gray-100);
    border-radius: 4px;
    padding: 4px;
    border: 2px solid var(--gray-400);
    max-height: 500px;
    overflow: auto;
}

.color-picker-flyout TR:hover TD
{
    background-color: var(--gray-200);
}

.color-picker-flyout TD
{
    cursor: pointer;
}

.color-picker-flyout .color-swatch
{
    display: inline-block;
    margin-right: 7px;
}

.color-picker-flyout .color-name
{
    white-space: nowrap;
}

/********** Random page elements ***********/
#shed-title-wrapper
{
    position: absolute;
    top: 10px;
    width: 100%;
    padding-right: var(--right-margin);
}
#canvas-wrapper
{
    position: absolute;
    left: calc(var(--right-margin) * -0.5);
    top: 0;
    height: 100%;
    padding: 0;
    bottom: 0;
    right: 0;
}
#building-canvas
{
    width: 100%;
    height: 100%;
    padding-right: var(--right-margin);
    padding-left: var(--right-margin);
    padding-bottom: var(--bottom-margin);
}
#no-config-message
{
    width: 100%;
    text-align: center;
    font-size: 20pt;
    margin-top: 50px;
}
#threed-canvas
{
    width: 100%;
    height: 100%;
    display: none;
}
#canvas-wrapper.threed #threed-canvas
{
    display: block;
}
#canvas-wrapper.threed .twod-btn,
#canvas-wrapper.threed #wall-btns-wrapper
{
    display: none;
}
#canvas-wrapper #undo-btns-wrapper
{
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
    color: lightgray;
    font-size: 30px;
    height: 0;
}
#canvas-wrapper #undo-btns-wrapper > *
{
    cursor: pointer;
    display: inline-block;
    rotate: 180deg;
}
#right-btns-wrapper
{
    position: absolute;
    bottom: calc(var(--bottom-margin) + 20px);
    right: calc(var(--right-margin) + 20px);
    width: 250px;
}
#canvas-wrapper.threed #thumbnails-wrapper
{
    display: none;
}
#canvas-wrapper.threed #right-btns-wrapper
{
    bottom: 20px;
    left: calc(var(--right-margin) / 2 + 20px);
}
.icon-download3
{
    font-size: 20pt;
}

#wall-btns-wrapper
{
    position: absolute;
    bottom: calc(var(--bottom-margin) / 2 + 20px);
    left: 20px;
}

#view-selector
{
    text-align: center;
    bottom: 10px;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    width: 350px;
}
#canvas-wrapper:not(.threed) #view-selector
{
    display: none;
}

#view-selector > DIV
{
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px;
}

#view-selector BUTTON
{
    background-color: #586068;
    border-color: #586068;
}

#view-selector BUTTON.selected
{
    background-color: black;
    border-color: black;
}

.thumb-title
{
    display: inline-block;
    background-color: white;
    border-radius: 5px;
    padding: 0.15em 0.5em;
}

#thumbnails-wrapper
{
    position: absolute;
    bottom: 0;
    left: var(--right-margin);
    right: var(--right-margin);
    display: flex;
}

#thumbnails-wrapper table
{
    width: 100%;
}
#thumbnails-wrapper canvas
{
    height: calc(var(--bottom-margin) - 20px);
    width: 200px;
}
#thumbnails-wrapper .spacer
{
    width: 100%;
    height: 100%;
}
#thumbnails-wrapper .spacer
{
    padding: 10px;
}
#thumbnails-wrapper canvas
{
    border: 1px solid #AAA;
    border-radius: 3px;
}

#thumbnails-wrapper canvas.active
{
    border: 1px solid black;
    background-color: #FAFAFA;
}

.buy-btn,
.save-btn
{
    background-color: var(--primary-400);
    color: var(--gray-100);
    height: 40px;
    border-radius: 20px;
    border: 0;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    padding-left: 30px;
    padding-right: 5px;

    text-align: center;
    margin: 3px;
    margin-right: 5px;
    float: right;
}
.buy-btn .arrow,
.save-btn .arrow
{
    font-weight: bold;
    margin-left: 20px;
    background-color: var(--primary-700);
    padding: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
}

.save-btn IMG,
.save-btn.loading .label
{
    display: none;
}

.save-btn.loading IMG
{
    display: inline;
}

.save-btn.website,
.buy-btn.cust
{
    padding-right: 30px;
}

#price-wrapper #total
{
    float: right;
}
#total
{
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18pt;
    cursor: pointer;
}
.amt-col
{
    text-align: right;
}

/* Items section */
#settings-wrapper
{
    background-color: transparent;
    position: absolute;
    top: 0px;
    right: 0;
    width: calc(var(--right-margin) + 30px);
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-height: 100%;
    overflow: auto;
}
#settings-wrapper .section
{
    background: rgba(255, 255, 255, 0.77);
    border-radius: 8px;
    padding: 0.5em;
    margin: 0.5em;
}
#content-wrapper:not(.mobile) #settings-wrapper .section
{
    margin: 0.5em;
}
.item-picker
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.item-picker .item
{
    font-size: 11pt;
}

.item-picker .title,
.item-picker .break
{
    flex-basis: 100%;
}

.item-picker .spacer
{
    flex-grow: 1;
}

#settings-wrapper .advanced-toggle
{
    text-align: center;
}

#settings-wrapper .advanced-toggle button
{
    font-weight: bold;
    font-size: 15pt;
    padding: 0.25em 1.5em;
}

#settings-wrapper .item:not(.checkbox)
{
    display: inline-block;
    cursor: pointer;
    padding: 15px;
    padding-top: 0;
    text-align: center;
    width: 45%;
}

#settings-wrapper .item.checkbox
{
    padding-left: 15px;
}

#settings-wrapper .item-thumbnail
{
    max-height: 70px;
    max-width: 80px;
}

.edit-span
{
    margin-left: 0.25em;
    margin-right: 0.25em;
    cursor: pointer;
    color: darkorange;
}

#settings-wrapper textarea
{
    height: 150px;
    width: 100%;
}

#customer-build-notes
{
    white-space: pre-wrap;
    max-height: 150px;
    overflow: auto;
}

/* Options lightbox */
.lightbox-wrapper,
.lightbox-content-wrapper
{
    z-index: 20;
}
.lightbox-background
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    opacity: 45%;
}
.lightbox-content-wrapper
{
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    background-color: #FFF;
    opacity: 100%;
    bottom: 5%;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    overflow: auto;
}
.mobile .lightbox-content-wrapper,
.mobile .lightbox-title
{
    border-radius: 0;
}
.mobile .lightbox-content-wrapper
{
    top: -45px;
    width: 100%;
}
.lightbox-title
{
    min-height: 40px;
    max-height: 40px;
    background-color: var(--primary-800);
    border-radius: 10px 10px 0 0;
    padding: 7px;
    padding-left: 15px;
    color: white;
    font-weight: bold;
    font-size: 19px;
}
.lightbox-title .lightbox-close
{
    background-color: #ac2f26;
    color: white;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    padding: 0px 10px;
    float: right;
    cursor: pointer;
}

.lightbox-content-wrapper .options-wrapper
{
    padding: 1em;
    position: absolute;
    top: 40px;
    bottom: 20px;
    overflow: auto;
    left: 0;
    right: 0;
}

#price-lightbox-wrapper .lightbox-content-wrapper
{
    width: 700px;
}

.options-group-title
{
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}
.options-wrapper label
{
    cursor: pointer;
}
.options-wrapper td
{
    padding: 0.25em;
}

#settings-wrapper .subtitle
{
    font-weight: bold;
    margin-top: 1em;
}

/* Checkout */
.checkout-wrapper
{
    padding: 1em;
    overflow: auto;
    bottom: 0;
    position: absolute;
    top: 110px;
    width: 100%;
}
#website-checkout-lightbox-wrapper .checkout-wrapper
{
    top: 40px;
}

.checkout-wrapper table td
{
    padding: 0.25em;
}
.checkout-wrapper .full-width
{
    width: 100%;
}

.checkout-wrapper .half-width
{
    width: 49%;
    margin: 0.5%;
}
.required
{
    color: red;
}
.error
{
    font-weight: bold;
    color: red;
}
#card-element
{
    width: 400px;
    border: 1px solid var(--primary-400);
    padding: 1em;
    margin-top: 1em;
    border-radius: 10px;
}
.checkout-wrapper textarea
{
    width: 400px;
}

.info-table TD
{
    white-space: nowrap;
}

.checkout-wrapper .accessory-description-input
{
    width: 20em;
}

.checkout-wrapper .accessory-price-input
{
    width: 8em;
}

/* Checkout progress bar */
#progress-bar-wrapper
{
    margin-right: auto;
    margin-left: auto;
    position: relative;
}
#progress-bar-inner
{
    position: absolute;
    top: 20px;
    height: 10px;
    width: 100%;
    background-color: var(--gray-200);
}
#progress-bar-inner #progress-bar-background
{
    background-color: var(--primary-400);
    height: 10px;
    transition: width 0.4s;
}
#progress-bar-inner .progress-step
{
    position: absolute;
    top: -8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

#progress-bar-inner .progress-step.complete .indicator
{
    background-color: #009900;
    border-color: var(--primary-400);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progress-bar-inner .indicator
{
    width: 25px;
    height: 25px;
    border: 2px solid #808080;
    border-radius: 50%;
    background-color: #FFFFFF;
    margin-bottom: 10px;
}

#progress-bar-inner .label
{
    position: absolute;
    top: 30px;
}

/* Confirm building */
.confirm-wrapper
{
    padding: 1em;
}
.confirm-wrapper TD
{
    padding: 0.25em;
}
.confirm-wrapper .key-cell
{
    font-weight: bold;
}

/* Mobile stuff */
.mobile #threed-toggle,
.mobile #thumbnails-wrapper,
#content-wrapper.cust .hide-cust,
.mobile #builder-diagram
{
    display: none;
}
.mobile #settings-wrapper
{
    width: 100%;
}
.mobile #right-btns-wrapper
{
    display: inline-block;
    width: unset;
    left: unset !important;
    right: 10px;
    bottom: 10px
}
.mobile #canvas-wrapper
{
    padding-right: 0;
    padding-bottom: 0;
    left: 0;
}
.mobile #view-selector
{
    margin-left: 0;
}
.mobile #canvas-wrapper #undo-btns-wrapper
{
    right: 20px;
}
#content-wrapper.cust #canvas-wrapper
{
    padding-bottom: 0;
}
.mobile #color-picker-wrapper
{
    bottom: 10px;
    left: 10px;
    top: unset;
    border-radius: 8px;
}
