.room_bg_color_bright {
    background-color: rgb(226, 222, 211);
    background: linear-gradient(90deg, rgb(238, 236, 224) 0%, rgb(226, 222, 211) 50%, rgb(187, 180, 164) 100%) !important;
}

.room_bg_color_bright_2 {
    background-color: #d9d9d0;
    background: linear-gradient(90deg, rgb(201, 201, 192) 0%, rgb(227, 226, 219) 100%) !important;
}

.room_bg_color_dark {
    background-color: #181816 !important;
}

.room_bg_color_creme {
    background-color: #cfb594 !important;
}

.room_bg_color_creme_2 {
    background-color: #ab9f8a !important;
}

.room_bg_color_mint {
    background-color: #b5beb3 !important;
    background: linear-gradient(90deg, rgb(220, 227, 218) 0%, rgb(151, 161, 145) 100%) !important;
}

.room_bg_color_mint_2 {
    background-color: #8c9978 !important;
}

.room_bg_color_anthrazit {
    background-color: #34312c !important;
    background: linear-gradient(90deg, rgb(60, 56, 51) 0%, rgb(86, 83, 87) 30%, rgb(14, 14, 10) 100%) !important;
}

.room_bg_color_anthrazit_2 {
    background-color: #37322e !important;
    background: linear-gradient(90deg, rgb(78, 80, 79) 0%, rgb(38, 32, 27) 75%, rgb(40, 31, 22) 100%) !important;
}

.low_resolution_msg {
    border-radius: 20px;
    padding: 15px;
    background-color: rgb(255 0 0 / 50%);
    color: #ffffff;
    font-size: 11pt;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
    display: flex;
}

.low_resolution_msg.open {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.low_resolution_msg.hidden {
    display: none !important;
    opacity: 0;
}

.low_resolution_msg > svg {
    margin-bottom: 10px;
}

/* CROPPER CSS */
.crop_image {
    max-width: 100%; /* This rule is very important, please do not ignore this! */
}

.img-preview {
    float: left;
    overflow: hidden;
}

.img-preview > img {
    max-width: 100%;
}

.preview {
    height: 0px;
    width: 0px;
}

.centered-block {
    /* Keine expliziten Regeln im CSS, aber als Klasse verwendet – könnte für Flex/Zentrierung gedacht sein */
}

.cropper-container {
    height: 100% !important;
}

.cropper_grid_layer {
    max-width: 100%;
    gap: 0 10px; /* 0px vertikal, 10px horizontal zwischen Spalten */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten mit gleicher Breite */
}

/* Basis-Styling für Mobile (eine Spalte, untereinander) */
.crop_grid_layer {
    max-width: 100%;
    max-height: 100vh;
    gap: 0; /* 10px vertikaler Abstand, 0px horizontal */
    display: grid;
    grid-template-columns: 1fr; /* Eine Spalte für Mobile */
}

.crop_live_box_outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    top: 0px;
    left: 0;
    max-height: 100vh;
}

.crop_live_box_hd_icon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 2em;
    max-width: 80px;
    z-index: 2;
}

#crop_live_box {
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    background-image: url('https://www.xxl-art.de/bilder/crop/bg_2.jpg');
    background-repeat: no-repeat;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    max-height: 1000px;
    transition: all 1s ease;
    -ms-transition: 1s ease;
    -webkit-transition: 1s ease;
    -moz-transition: 1s ease;
    -o-transition: 1s ease;
    height: 100%;
    max-height: 100%;
    min-height: 350px;
    position: relative;
}

#crop_live_preview_box {
    margin-bottom: 60%;
}

#crop_live_preview_box > img {
    transition: all 0.5s cubic-bezier(0, 0, 0.22, 1);
    -ms-transition: 0.5s cubic-bezier(0, 0, 0.22, 1);
    -webkit-transition: 0.5s cubic-bezier(0, 0, 0.22, 1);
    -moz-transition: 0.5s cubic-bezier(0, 0, 0.22, 1);
    -o-transition: 0.5s cubic-bezier(0, 0, 0.22, 1);
}

#crop_live_box.noTransition > * {
    transition: all 0s ease !important;
    -ms-transition: 0s ease !important;
    -webkit-transition: 0s ease !important;
    -moz-transition: 0s ease !important;
    -o-transition: 0s ease !important;
}

.noTransition > img {
    transition: all 0s ease !important;
    -ms-transition: 0s ease !important;
    -webkit-transition: 0s ease !important;
    -moz-transition: 0s ease !important;
    -o-transition: 0s ease !important;
}

#crop_live_preview_box.noTransition {
    transition: all 0s ease !important;
    -ms-transition: 0s ease !important;
    -webkit-transition: 0s ease !important;
    -moz-transition: 0s ease !important;
    -o-transition: 0s ease !important;
}

#product_crop_box {
    height: 100vh;
}

#crop_content_button {
    margin: 10px auto;
    padding: 10px;
    border-radius: 80px;
    display: inline-block;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    bottom: 13px;
    position: relative;
    margin-top: 20px;
}

#crop_content_button {
    position: sticky !important;
    margin-top: 20px;
    bottom: 10px;
}

a.crop_order_settings {
    text-align: center;
    margin: 0 auto;
    width: 361px;
    max-width: calc(100vw - 50px);
}

.crop_btn {
    border: 1px solid #d8d8d8;
    background-color: whitesmoke;
}

.crop_btn > span {
    /* padding: 3px; margin: 5px; padding-top: 10px; padding-bottom: 10px; */ /* Auskommentiert, aber potenziell relevant */
}

.crop_btn > img {
    width: 30px;
    padding: 0px;
    position: relative;
}

/* MOBILE PORTRAIT */
@media (orientation: portrait) and (max-width: 1024px) {
    #product_crop_box {
        max-height: calc(65vh - var(--navigation_mobile_height_elapsed) - var(--product_crop_box_size_box)) !important;
    }
    #crop_live_box {
        height: 100vw;
        min-height: 100vw; /* vw korrekt hier. damit es micht zu schmal ist ist. */
        max-height: calc(100vh) !important;
    }
}

@media (orientation: portrait) {
    #product_crop_box {
        max-height: calc(65vh - var(--navigation_mobile_height_elapsed) - var(--product_crop_box_size_box));
    }
}

@media screen and (min-width: 1024px) {
    #product_crop_box {
        max-height: calc(95vh - var(--product_crop_box_size_box)) !important;
    }
    #crop_live_box {
        max-height: calc(100vh);
    }
    .crop_live_box_hd_icon {
        width: 80px;
    }
}

/* Für Tablets und Desktops (zwei Spalten, nebeneinander) – oder Landscape */
@media (orientation: landscape), (min-width: 1024px) {
    .crop_grid_layer {
        grid-template-columns: 1fr 1fr; /* Zwei Spalten */
        gap: 0 10px; /* 0px vertikal, 10px horizontal zwischen Spalten */
    }
    
    #product_crop_box {
        max-height: calc(100vh);
    }
    
    #crop_content_button {
        position: relative;
        margin-top: 20px;
    }
}

@media (min-width: 600px) {
    .room_color_box {
        justify-content: center;
    }
}