
/* +++ PREVIEW +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#preview {
    display: flex; flex-grow: 1; align-items: center; justify-content: center; overflow-y: hidden;
}
#preview.light {
    background-color: #f9f9f9; 
}
#preview.dark {
    background-color: #bbbbbb;
}
#preview > div.images {
    position: relative; max-width: 100%; max-height: 100%;
}
#preview > div.images > img {
    max-width: 100%; max-height: 100%;
}
#preview > div.images > canvas,
#preview > div.images > img.base,
#preview > div.images > img.highlight,
#preview > div.images > img.component,
#preview > div.images > img.extra-preview,
#preview > div.images > img.canvas {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto;
}
#preview > div.images > canvas,
#preview > div.images > img.highlight,
#preview > div.images > img.component.hidden,
#preview > div.images > img.highlight.hidden {
    display: none;
}
/* fix for boltprotector, powerstrap and powerstrapstitching, so the highlight of other components does not OVERLAP these top components */
#preview > div.images > img.component.boltprotector,
#preview > div.images > img.component.powerstrap,
#preview > div.images > img.component.powerstrapstitching {
    z-index: 99;
}
#preview > div.images > img.canvas {
    z-index: 100;
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* +++ PREVIEW CONTROLS ++++++++++++++++++++++++++++++++++++++++++++++++++ */
div.loader {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 10px; background-image: url("../images/loader.png");
}
div.change-preview {
    z-index: 100; position: absolute; right: 15px; width: 150px; height: 50px; display: flex; align-items: center; transition: opacity 0.5s;
}
div.change-preview:hover {
    opacity: 0.8; cursor: pointer;
}
div.change-preview > i {
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 25px; font-size: 18px; color: #ffffff;
}
div.change-preview > span {
    padding-left: 10px; font-size: 16px; color: #999999;
}
div.change-preview.default {
    top: 15px;
}
div.change-preview.default > i {
    background: #222222;
}
div.change-preview.randomize {
    top: 70px;
}
div.change-preview.randomize > i {
    background: #ff2800;
}
div.change-preview-background {
    z-index: 100; position: absolute; left: 15px; width: 35px; height: 35px; transition: opacity 0.5s;
}
div.change-preview-background:hover {
    opacity: 0.8; cursor: pointer;
}
div.change-preview-background.light {
    top: 15px; background: #ffffff; border: 1px solid #eeeeee;
}
div.change-preview-background.dark {
    top: 60px; background: #999999; border: 1px solid #aaaaaa;
}
#addons {
    z-index: 100; position: absolute; top: 140px; right: 15px;
}
#addons > div {
    margin-bottom: 5px; font-size: 14px; color: #999999; text-align: right;
}
#addons > div.title {
    text-decoration: underline; cursor: default;
}
#addons > div.addon:hover {
    color: #ff2800; cursor: pointer;
}
@media screen and (max-width: 800px) {
    div.change-preview {
        width: 50px;
    }
    div.change-preview.default {
        right: 70px;
    }
    div.change-preview.randomize {
        top: 15px;
    }
    div.change-preview > span {
        display: none;
    }
    div.change-preview-background {
        left: 10px; width: 25px; height: 25px;
    }
    div.change-preview-background.light {
        top: 10px;
    }
    div.change-preview-background.dark {
        top: 40px;
    }
    #addons {
        top: 80px;
    }
    #addons > div {
        font-size: 13px;
    }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* +++ DESKTOP OPTIONS +++++++++++++++++++++++++++++++++++++++++++++++++++ */
#desktop-options {
    display: flex; width: 500px; max-width: 550px;
}
@media screen and (max-width: 800px) {
    #desktop-options {
        display: none !important;
    }
}
/* +++ DESKTOP COMPONENT LIST ++++++++++++++++++++++++++++++++++++++++++++ */
#desktop-component-list {
    flex-grow: 1;
}
#desktop-component-list > div.component {
    width: 100%; display: flex; flex-direction: column; align-items: center; padding: 20px 80px;
}
#desktop-component-list > div.component:hover {
    background: #fcfcfc; cursor: pointer;
}
#desktop-component-list > div.component > div.image {
    opacity: 0.5; transition: opacity 0.5s;
}
#desktop-component-list > div.component:hover > div.image {
    opacity: 1.0;
}
#desktop-component-list > div.component > div.description {
    font-size: 14px; color: #333333;
}
/* +++ DESKTOP MATERIAL PICKER +++++++++++++++++++++++++++++++++++++++++++ */
#desktop-material-picker {
    flex-grow: 1; display: flex; flex-direction: column; max-height: 100%;
}
#desktop-material-picker > div.title {
    flex-grow: 0; padding: 30px; border-bottom: 1px solid #dddddd; text-align: center; font-size: 18px; color: #222222;
}
#desktop-material-picker > div.material-list {
    flex-grow: 1; display: flex; flex-wrap: wrap;
}
#desktop-material-picker > div.material-list > div.material {
    width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
#desktop-material-picker > div.material-list > div.material:hover {
    background-color: #fafafa; cursor: pointer;
}
#desktop-material-picker > div.material-list > div.material > div.preview {
    width: 60px; height: 60px; border-radius: 30px; background-size: cover; background-repeat: no-repeat; background-position: 50% 50%;
}
#desktop-material-picker > div.material-list > div.material > div.title {
    margin-top: 10px; font-size: 15px; color: #222222;
}
#desktop-material-picker > div.material-list > div.material > div.surplus,
#desktop-material-picker > div.material-list > div.material > div.description {
    margin-top: 5px; font-size: 13px; color: #777777; text-align: center;
}
#desktop-material-picker > div.material-list > div.material.selected {
    background-color: #fafafa;
}
#desktop-material-picker > div.material-list > div.material.selected > div.title {
    color: #111111; font-weight: bold;
}
#desktop-material-picker > div.material-list > div.material.white > div.preview {
    box-shadow: 0px 0px 5px 0px #999999;
}
#desktop-material-picker > div.material-list > div.material.plasticwhite > div.preview {
    box-shadow: 0px 0px 5px 0px #999999;
}
#desktop-material-picker > div.buttons {
    flex-grow: 0; display: flex; border-top: 1px solid #dddddd;
}
#desktop-material-picker > div.buttons > div.button {
    flex-grow: 1; padding: 20px; text-align: center; font-size: 16px; color: #222222; transition: background-color 0.5s;
}
#desktop-material-picker > div.buttons > div.button:hover {
    background-color: #fafafa; cursor: pointer;
}
@media screen and (max-width: 1200px) {
    #desktop-material-picker > div.material-list > div.material {
        width: 100%;
    }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* +++ MOBILE OPTIONS ++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#mobile-options {
    display: none; max-height: 230px; min-height: 230px; background: #ffffff; border-top: 1px solid #dddddd;
}
@media screen and (max-width: 800px) {
    #mobile-options {
        display: flex; flex-direction: column;
    }
}
/* +++ MOBILE COMPONENT LIST +++++++++++++++++++++++++++++++++++++++++++++ */
#mobile-component-list {
    display: flex; overflow-x: scroll; max-height: 175px; min-height: 175px;
}
#mobile-component-list > div.component {
    display: flex; flex-direction: column; align-items: center; padding: 15px 30px; cursor: pointer;
}
#mobile-component-list > div.component > div.image {
    opacity: 0.8;
}
#mobile-component-list > div.component > div.description {
    font-size: 14px; color: #333333; text-align: center;
}
/* +++ MOBILE MATERIAL PICKER ++++++++++++++++++++++++++++++++++++++++++++ */
#mobile-material-picker > div.material-list {
    display: flex; overflow-x: scroll; max-height: 180px; min-height: 180px;
}
#mobile-material-picker > div.material-list > div.material {
    display: flex; flex-direction: column; align-items: center; width: 100%; padding: 15px 25px; cursor: pointer;
}
#mobile-material-picker > div.material-list > div.material > div.preview {
    width: 60px; height: 60px; border-radius: 30px; background-size: cover; background-repeat: no-repeat; background-position: 50% 50%;
}
#mobile-material-picker > div.material-list > div.material > div.title {
    margin-top: 10px; font-size: 14px; color: #333333; text-align: center;
}
#mobile-material-picker > div.material-list > div.material > div.surplus,
#mobile-material-picker > div.material-list > div.material > div.description {
    margin-top: 5px; font-size: 13px; color: #777777; text-align: center;
}
#mobile-material-picker > div.material-list > div.material.selected {
    background-color: #eeeeee;
}
#mobile-material-picker > div.material-list > div.material.white > div.preview {
    box-shadow: 0px 0px 5px 0px #999999;
}
#mobile-material-picker > div.material-list > div.material.plasticwhite > div.preview {
    box-shadow: 0px 0px 5px 0px #999999;
}
#mobile-material-picker > div.close-material-picker {
    display: flex; align-items: center; justify-content: center; height: 50px; border-top: 1px solid #dddddd; font-size: 16px; color: #222222; transition: background-color 0.3s;
}
#mobile-material-picker > div.close-material-picker:hover {
    background-color: #f9f9f9; cursor: pointer;
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* +++ FOOTER ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
div.footer {
    display: flex; gap: 15px; padding: 20px; border-top: 1px solid #dddddd;
}
div.footer > div.button {
    padding: 10px 15px; border: 1px solid #dddddd; color: #444444; font-size: 16px; text-align: center; transition: background-color 0.5s;
}
div.footer > div.button:hover {
    background-color: #eeeeee; cursor: pointer;
}
div.footer > div.button > span {
    margin-left: 10px; font-size: 15px;
}
div.footer > div.button.order {
    padding: 10px 25px; background: #333333; border: none; color: #ffffff; 
}
div.footer > div.button.order:hover {
    background-color: #222222;
}
div.footer > div.total-price {
    flex-grow: 1; display: flex; align-items: center; justify-content: flex-end;
}
@media screen and (max-width: 800px) {
    #desktop-footer {
        display: none; 
    }
    div.footer {
        gap: 10px; padding: 5px;
    }
    div.footer > div.button.order {
        padding: 10px 20px;
    }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
