/* @font-face {
    font-family: "gothic_";
    src: url(fonts/centurygothic.ttf);
}

@font-face {
    font-family: "gothic_bold";
    src: url(fonts/centurygothic_bold.ttf);
} */

* {
    margin: 0;
    padding: 0;
}
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
* {
    -webkit-tap-highlight-color: transparent;
}
html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    touch-action: none;
}
body {
    background: repeating-linear-gradient(
        45deg,
        #686868,
        #ececec 5px,
        #e2e2e3 5px,
        #e2e2e3 10px
    );
    font-family: "gothic_bold", Helvetica, sans-serif;
    /* height: 77vh; */
}
b {
    color: #e7962d;
}
.master-wrapper {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* border: 2px solid purple; */
}

.wrapper3d {
    flex: 1;
    /* min-width: 0; */
    width: 100%;
    /* height: 100%; */
    box-sizing: border-box;

    /* transition: width 0.3s ease; */
    background-color: #f7f5f6;
    position: relative;

    /* border: 2px solid green;
    border-radius: 20px; */
    overflow: hidden;
}

#canvas3d {
    display: block;
    box-sizing: border-box;
    background-color: #f7f5f6;

    /* border: 1px solid red; */
}

.site-loading-screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 99.99%;
    background-color: #fbf9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    color: #4041a2;
    z-index: 777;
}

.config-editor-panel {
    /* flex: 0 0 auto; */

    width: 100%;
    height: auto;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 30px;

    left: 0;
    box-sizing: border-box;

    /* border: 3px solid red;
    border-radius: 20px; */
}

.editor-inner-wrapper {
    /* background-color: #fafefe; */
    background-color: transparent;
    width: 50%;
    max-width: 400px;
    min-width: 250px;
    /* height: 60%; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    /* padding: 20px 0; */

    box-sizing: border-box;
    gap: 10px;
    position: relative;
    /* border: 1px solid purple; */
}

.editor-canvas-cont {
    /* border: 1px solid green; */
    box-sizing: border-box;
    width: 100%;
    /* height: 40vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateX(-1px);

    /* display: none; */
}

.product-btn-cont {
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    /* border: 1px solid red; */
    width: auto;
    border-radius: 6px;
    /* box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.078); */
    border: 1px solid rgba(0, 0, 0, 0.137);
}
.product-btn {
    height: 50px;
    aspect-ratio: 1;
    padding: 4px;
    /* border: 1px solid #4041a2; */
    cursor: pointer;

    border-radius: 6px;
}

.product-btn:hover {
    background-color: #00000009;
}

.product-btn-selected {
    border: 2px solid #7879d7 !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    background-color: #ffffff !important;
}
.product-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.function-btn-cont {
    display: flex;
    justify-content: center;
    gap: 0px;
    width: 100%;
    /* border: 1px solid red; */
    box-sizing: border-box;
    color: #7879d7;
}
.row-btn-cont {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 0px;
    width: 100%;
    height: 70px;
    overflow: hidden;
    /* border: 1px solid red; */
    border: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 3px 3px 11px 1px rgba(0, 0, 0, 0.292);
    transition: all 0.4s;
    opacity: 1;
}
.row-btn-cont-hidden {
    position: absolute;
    transform: translateY(100px);
    opacity: 0;
}
.row-btn {
    flex: 1;
    border: none;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    gap: 4px;
    cursor: pointer;
    color: #2e2e2e;
    user-select: none;
    padding-top: 6px;
}

.row-btn:active {
    background-color: #f0f0f0;
}
.row-btn i {
    font-size: 1.3em;
}
.row-btn p {
    font-size: 0.8em;
}

.function-btn-cont button,
.function-btn-cont label {
    padding: 10px 15px;
    border: none;

    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    text-wrap: nowrap;
}

.replace-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #e7962d;
    color: white;
}
/* .replace-btn:hover {
    background-color: #6868680f;
} */
#add-to-cart-btn {
    background-color: #4041a2;
    color: white;
}

.editor-canvas {
    border: 2px dashed #787ad7;
    border-radius: 4px;

    background-color: transparent;
    pointer-events: all;
}

.text-switch-cont,
.text-color-cont {
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: right;
    flex-direction: row;
}

.text-switch-cont span,
.text-color-cont span {
    color: #7879d7;
    font-size: medium;
    text-wrap: nowrap;
}

#replace-input {
    display: none;
}

.upload-aera {
    user-select: none;
    width: 90%;
    /* position: absolute; */
    height: 68%;
    min-height: 170px;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    border: 2px dashed #7879d7;
    border-radius: 16px;
    color: #7879d7;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.upload-aera i {
    font-size: 3em;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.outside-size-label-cont {
    position: absolute;
    left: 0;
    top: 10%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    /* position: absolute;
    left: 0;
    top: 0; */
    height: 20px;
    box-sizing: border-box;
    /* border: 1px solid green; */
}
.outside-size-label {
    border: none;
    background-color: white;
    border-radius: 20px;
    padding: 4px 8px;
}
.price-tag-cont {
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
}

.triangle-left {
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 12px solid #e7962d;
}

#price-value {
    background-color: #e7962d;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 8px;
    padding-left: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/*..................*/

.zoom-input-cont {
    width: 100%;
    /* border: 1px solid red; */

    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 40px;

    position: relative;
}

.zoom-input-cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* border: 1px solid red; */
    width: fit-content;
    width: 91%;
}

/* + / - buttons */
.zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #4041a2;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* RANGE RESET */
.zoom-input {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 6px;
    background: transparent;
    cursor: pointer;
}

/* TRACK */
.zoom-input::-webkit-slider-runnable-track {
    height: 6px;
    background: #4041a2;
    border-radius: 999px;
}

.zoom-input::-moz-range-track {
    height: 6px;
    background: #cfd2ff;
    border-radius: 999px;
}

/* THUMB */
.zoom-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    /* border: 1px solid rgb(114, 114, 114); */
    margin-top: -9px; /* centers thumb */
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.42);
}

.zoom-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid #3f3df4;
}

.promotional-cont {
    color: white;
    /* border: 1px solid red; */
    width: 100%;
    height: 25%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: end;
    font-weight: bold;
}

.promotional-cont p {
    background-color: #4041a2;
    padding: 10px;
    border-radius: 8px;
    max-width: 180px;
    text-align: center;
}

.intro-text-cont {
    /* border: 1px solid red; */
    width: 100%;
    height: 18%;
    position: absolute;
    left: 0;
    bottom: 0;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: start;
    text-align: center;
    font-size: 18px;
}

@keyframes fadeInOut3 {
    0% {
        opacity: 0.3;
    }
    16.666% {
        opacity: 1;
    }
    33.333% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
    66.666% {
        opacity: 0.3;
    }

    83.333% {
        opacity: 1;
    }
}

.hint-cont {
    width: 100%;
    height: 22%;
    position: absolute;
    left: 0;
    bottom: 0;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: start;
    z-index: 0;
    opacity: 1;
    animation: fadeInOut3 4s ease-in-out forwards;
}

.add-to-cart-progress-cont {
    /* border: 1px solid red; */
    width: 100%;
    height: 10%;

    position: absolute;
    z-index: 1000;
    left: 0;
    bottom: 10%;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4041a2;
    text-align: center;
}
.add-to-cart-progress-cont .inner {
    /* border: 1px solid red; */
    width: 90%;
    max-width: 400px;
    height: 100%;

    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
}
.prgs-wrpr {
    width: 90%;
    position: relative;
}
.add-to-cart-progress-bar {
    position: absolute;
    height: 8px;
    width: 0%;
    z-index: 2;
    background-color: #4041a2;
    border-radius: 99px;
    transition: width 1.4s ease;
}

.progress-bar-shadow {
    position: absolute;
    height: 8px;
    width: 100%;
    background-color: #a8a9e9;
    border-radius: 99px;
}

.hint-swipe {
    opacity: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.hint-swipe img {
    width: 50px;
    aspect-ratio: 1;
    object-fit: contain;
}

.center-cont {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid green; */
}
.center-cont-for-initial {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.initial-upload-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 120px;
    font-size: 38px;

    /* border-radius: 199px; */
    background-color: transparent;
    cursor: pointer;
    user-select: none;
    pointer-events: all !important;
}
.initial-upload-btn-visual {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: #c58e46;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    pointer-events: all;
}
.initial-upload-btn-visual:active {
    background: #4041a2;
    color: white;
}

.center-cont-for-frame-popup {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 99999;
}

.frame-popup-wrapper {
    /* border: 1px solid red; */
    width: 100%;
    height: 100%;
    background-color: #f7f5f6;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box;
    pointer-events: all;
}
.frame-popup-wrapper iframe {
    width: 100%;
    height: 92%;
    /* border: 1px solid red; */
    box-sizing: border-box;
    box-sizing: border-box;
}
.skip-cont {
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 10%;
    color: #00000087;
    cursor: pointer;
}
.promo-message-cont {
    position: absolute;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 12%;
    top: 2px;
}

#skip-frame-btn {
    font-size: 1.3rem;
    text-decoration: underline;
    color: rgb(18, 18, 230);
    user-select: none;
}

.canvases-cont-wrapper {
    width: 40%;
    height: 70%;
    top: 0;
    left: 0;
    border: none;
    z-index: 9999;
    background-color: #f7f5f6;
    border-radius: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 4%;
    box-shadow: 3px 3px 31px 1px rgba(0, 0, 0, 0.203);
    box-sizing: border-box;
    padding: 20px;
    padding-bottom: 0;
    font-weight: bold;

    overflow: hidden;

    pointer-events: all !important;
    position: relative;
    /* border: 1px solid blue; */
}

.canvases-cont-wrapper .row-btn-cont {
    /* position: absolute; */
    /* bottom: 0; */
    border-radius: 0;
    width: 120%;
    height: 80px;
    transition: none;
}

.canvases-cont {
    /* border: 1px solid orange; */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.image-editor-done-btn {
    border: none;
    padding: 14px 44px;
    background-color: #4041a2;
    color: white;
    border-radius: 0;
    font-size: 1.2rem;

    cursor: pointer;
}

@keyframes pulseAnim {
    0%,
    100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.2;
    } /* fade out in the middle of each pulse */
}

#confirm-frame-btn {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3em;
    background-color: #e7962d;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.217);
}

.upload-loading-screen {
    width: 100%;
    height: 99.99%;
    background-color: #fbf9f9;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.03s ease;
    z-index: 600;
}

.upload-loading-screen-visible {
    pointer-events: all;
    opacity: 1;
}
.upload-loading-screen img {
    width: 200px;
}
.upload-loading-screen p {
    color: #f3a350;
    font-size: 1em;
}
.upload-loading-number-value {
    position: absolute;
    /* border: 1px solid red; */
    font-size: 2.1em;
}
.upload-progress {
    /* border: 1px solid red; */
    display: block;
    transform: translateY(-15px) translateX(-5px);
}
#upload-progress {
    transition: stroke-dashoffset 1s ease;
}

.frame-color-options-cont {
    position: absolute;
    z-index: 99;
    height: 120px;
    width: 80%;
    /* border: 1px solid red; */
    box-sizing: border-box;
    background-color: white;
    opacity: 1;
    pointer-events: 1;
    user-select: none;
    margin-bottom: 80px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.frame-color-options-cont-hidden {
    opacity: 0;
    pointer-events: none;
}

.tinted-bg {
    position: absolute;
    z-index: 55;
    background-color: #00000091;
    width: 100vw;
    height: 300vh;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3;
}
.tinted-bg-hidden {
    pointer-events: none;
    opacity: 0;
}
.tinted-bg-opaque {
    background-color: #6b6a6a;
    opacity: 1;
}
.frame-color-option-btn {
    width: 33%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
    color: black;
}
.frame-color-option-btn:hover {
    background-color: rgb(238, 238, 238);
}
.frame-color-option-btn img {
    width: 60%;
    height: auto;
    object-fit: fill;
    border-radius: 6px;
}

.rotate-btn-cont {
    display: flex;
    justify-content: space-between;
    width: 91%;

    /* border: 1px solid red; */
    /* max-width: 200px; */
}

.rotate-btn-cont button {
    background-color: #4041a2;
    font-size: 1rem;
    border-radius: 222px;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.size-edit-cont {
    background-color: #ffffff;

    width: 95%;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    z-index: 99;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.size-edit-cont section {
    margin-bottom: 12px;
}
.size-edit-cont-hidden {
    opacity: 0;
    pointer-events: none;
}

.size-btn-cont {
    /* display: flex;
    justify-content: space-between; */
    gap: 8px;
    height: 20%;
    display: flex;
    flex-wrap: wrap;
    /* row-gap: 22px; */
}
.size-btn-cont button {
    width: 21%;
    background-color: #e7e8fc;
    border: 1px solid #a8a9e9;
    border-radius: 12px;
    height: 100%;
    color: #4041a2;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px 0px;
    margin: 4px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 22px;
}
.disabled-size-btn {
    user-select: none;
    pointer-events: none;

    background-color: #acacac3e !important;
    color: #0000006b !important;
    border: 1px solid #acacac3e !important;
    position: relative; /* important */
}

.disabled-size-btn::after {
    content: "change layout to set";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 11px;
    color: #e7962d;
    /* border: 1px solid red; */
    line-height: 0.8;
    white-space: normal;
    height: auto;
    text-wrap: wrap;
    width: 100%;
    opacity: 1 !important;
    margin-top: 4px;
}
.size-restriction-note {
    font-size: 0.7rem;
    margin-left: 10px;
    color: white;
    background-color: #e3a34f;
    border-radius: 4px;
    padding: 4px 8px;
    display: none;
}
.size-btn-cont p {
    /* border: 1px solid blue; */
}
.size-btn-cont span {
    color: black;
    font-size: 0.7rem;
    text-wrap: nowrap;
    /* border: 1px solid red; */
}
/* .size-edit-done-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #f7992f;
    cursor: pointer;
    font-size: large;
} */
.selected-size {
    border: 2px solid #4041a2 !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    background-color: #a2a3f0 !important;
}

.size-type-title {
    color: black;
    margin-top: 10px;
    width: 100%;
}

.layout-edit-cont {
    background-color: #ffffff;
    max-height: 82vh;
    width: 97%;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: absolute;
    z-index: 99;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: scroll;
}

.layout-edit-cont::after {
    content: "";
    position: sticky;
    bottom: -50px;
    width: 100vw;
    display: block; /* flex children need this explicitly */
    min-height: 110px; /* height of the fade */
    margin-top: -10px; /* pull it up so it doesn't push content down */
    background: linear-gradient(to bottom, transparent, #ffffff, #ffffff);
    pointer-events: none; /* clicks pass through to content below */
    flex-shrink: 0; /* prevent flex from squishing it */
}
.layout-edit-cont section {
    margin-bottom: 12px;
}
.layout-edit-cont-hidden {
    opacity: 0;
    pointer-events: none;
}

.layout-btn-cont {
    /* display: flex;
    justify-content: space-between; */
    gap: 8px;
    height: 20%;
    display: flex;
    flex-wrap: wrap;
}
.layout-btn-cont button {
    /* width: 20%; */
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    /* height: 100%; */
    /* color: #4041a2; */
    font-size: large;
    cursor: pointer;
    /* padding: 8px 0px; */
    margin: 4px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.layout-type-buttons {
    /* border: 1px solid #a8a9e9; */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}
.layout-option-img {
    object-fit: cover;
    background-color: transparent !important;
    /* border: 1px solid #a4a4a46b; */
    width: 60px;
}
.turning-btn-cont {
    width: 96%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.turning-btn-cont button {
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 99px;
    color: #4041a2;
    font-size: large;
    cursor: pointer;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.269);
    pointer-events: all;
}

#add-photos-icon {
    /* border: 1px solid red; */
    width: 100%;
    height: 40%;
    background-image: url(.././images/add-photos.png);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: center center;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: -5px;
    transform: translateY(-5px);
}
#add-photos-icon img {
    object-fit: contain;
}

.rotate-collage-btn {
}

.global-error-overlay {
    position: fixed;
    top: 10px;
    left: 10px;

    width: 80%;
    height: 120px;
    max-height: 20%;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: rgb(189, 79, 79);
    color: white;

    font-family: monospace;
    font-size: 8px;

    padding: 10px;
    z-index: 999999;

    display: none;
    user-select: none;
    pointer-events: none;
}
.error-overlay-visible {
    display: block;
    pointer-events: all;
    user-select: all;
}

.error-block {
    border: 1px solid rgba(0, 0, 0, 0.311);
    width: 100%;

    white-space: pre-wrap; /* keep line breaks from stack traces */
    overflow-wrap: anywhere; /* allow breaking long words */
    word-break: break-word; /* fallback for older browsers */
}

#error-refresh-btn {
    margin-bottom: 20px;
    color: #001aff;
    font-size: 12px;
}

#copy-error-btn {
    padding: 2px;
    background-color: #37b212;
    color: white;
    border: none;
    cursor: pointer;
    user-select: none;
    font-size: 10px;
}
#copy-error-btn:active {
    background-color: #040fe1;
}

#error-clear-cache-btn {
    padding: 2px;
    background-color: wheat;
    color: red;
    user-select: none;
}

.ellipsis-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 99px;
    background-color: #ffffffa3;
    border: none;
    color: rgba(0, 0, 0, 0.612);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    rotate: 90deg;
    cursor: pointer;
    box-shadow: 1px -1px 5px rgba(0, 0, 0, 0.269);
}

.ellipsis-menu {
    position: absolute;
    top: 45px;
    right: 10px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.137);
    border-radius: 6px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.269);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.ellipsis-menu-visible {
    display: flex;
    pointer-events: all;
    z-index: 9999;
}

#ellipsis-clear-btn {
    border: none;
    background-color: transparent;
    color: #dc2d2d;
    cursor: pointer;
    pointer-events: all;
}

#ellipsis-clear-btn:active {
    color: white;
    background-color: #dc2d2d;
}

.back-btn-cont {
    position: absolute;
    left: 3%;
    top: 14%;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: none;
    color: #000053;
    border: none;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.back-btn {
    border-radius: 999px;
    width: 30px;
    height: 30px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000053;
    box-shadow: inset 0px 0px 0px 6px #000053;
    border: none;
    font-size: 1.3rem;
}
@media only screen and (max-width: 700px) {
    .master-wrapper {
        flex-direction: column;
    }
    /* .wrapper3d {
        height: 60%;
        width: 100% !important;
        border: 1px solid red;
    } */
    .config-editor-panel {
        bottom: env(safe-area-inset-bottom, 0px);
        /* border: 1px solid red; */
    }
    .editor-inner-wrapper {
        width: 99%;
    }
    .row-btn-cont {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    /* #add-to-cart-btn {
        position: absolute;
        right: 20px;
        bottom: 80px;
        font-size: 1.1em;
        padding: 18px;
        border-radius: 199px;
    } */

    #confirm-frame-btn {
        position: absolute;
        right: 20px;
        bottom: 80px;
        font-size: 1.1em;
        padding: 18px;
        border-radius: 99px;
    }
    /* .product-btn-cont {
        width: 100%;
    } */

    .product-btn {
        width: 40px;
        height: 40px;
    }
    /* #add-to-cart-btn {
        width: 50px;
    } */
    .function-btn-cont button,
    .function-btn-cont label {
        width: 100%;
    }

    .bottom-part-short {
        height: 40% !important;
    }
    .bottom-part-tall {
        height: 60% !important;
    }
    .canvases-cont-wrapper {
        width: 95%;
        height: 90%;
    }
}

@media only screen and (max-height: 700px) {
    .hint-swipe {
        flex-direction: row;
        gap: 10px;
        font-size: 0.8em;
        transform: translateX(-10px);
    }
    .hint-swipe img {
        width: 40px;
    }
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
.hidden-flex-el {
    visibility: hidden !important;
    user-select: none !important;
    pointer-events: none !important;
}
.hidden {
    visibility: hidden !important;
    position: absolute !important;
    user-select: none !important;
    pointer-events: none !important;
}

.hidden-weak {
    opacity: 0;
    position: absolute !important;
    transform: translateX(200px);
    pointer-events: none;
}
/* canvas {
    visibility: visible;
    user-select: all;
    pointer-events: all;
    touch-action: auto;
    pointer-events: all !important;
    user-select: all !important;
    position: absolute;
} */
.canvas-container {
    position: absolute !important;
    pointer-events: none;
    opacity: 0;
    border: 3px dashed #787ad7;
    border-radius: 4px;
}
.canvas-container-visible {
    pointer-events: all !important;
    opacity: 1 !important;
}