@font-face {
    font-family: "gothic_";
    src: url(fonts/centurygothic.woff2) format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "gothic_bold";
    src: url(fonts/centurygothic_bold.woff2) format("woff2");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    touch-action: none;
}
body {
    background-color: #f7f5f6;
    font-family: "gothic_bold", Helvetica, sans-serif;
    /* height: 99vh; */
}
.master-wrapper {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    /* border: 1px solid red; */
}
h1 {
    color: #27532c;
}
#canvas3d {
    display: block;
    box-sizing: border-box;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    background-color: #f7f5f6;

    opacity: 0;
    transition: opacity 1s ease;
}

#canvas3d.canvas-visible {
    opacity: 1;
}
.all-ui-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    pointer-events: none;
}
.ui {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: border-box;
    pointer-events: none;
}

.main-panel {
    border: 1px rgba(0, 0, 0, 0.114) solid;
    display: flex;
    justify-content: space-between;
    /* width: 340px; */
    align-items: center;
    height: 70px;
    /* padding: 20px; */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 9px 20px 0px rgba(0, 0, 0, 0.048);
    margin-bottom: 20px;
    box-sizing: border-box;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.3s;
    position: relative;
    gap: 4px;
}
.main-panel-closed {
    opacity: 0;
    pointer-events: none;
}

#add-to-cart-btn {
    text-wrap: nowrap;
    border: none;
    background-color: #4041a2;
    color: white;
    border-radius: 6px;
    height: 100%;
    width: 60px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
    font-size: large;
    margin-left: 8px;
}
#add-to-cart-btn svg {
    fill: white;
    width: 30px;
}
.main-panel > div,
.main-panel > label {
    height: 100%;
    width: 60px;

    box-sizing: border-box;
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2d2d2d;
    justify-content: center;

    gap: 4px;
    font-weight: bold;
    cursor: pointer;
    background-color: transparent;
    user-select: none;

    font-family: "gothic_" !important;
    font-size: 0.96em;
    /* border: 1px solid red; */
}
.main-panel > div:hover {
    background-color: rgb(246, 246, 246);
}
.main-panel > div > div {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 50%;
    width: 100%;
    text-align: center;
    margin: 10px;
    margin-bottom: 10px;
}
.main-panel svg {
    width: 20px;
    fill: #2d2d2d;
}
.main-panel > * > * {
    /* border: 1px solid blue; */
}

#size-btn div {
    background-image: url(images/size.png);
}
#clear-btn {
    background-color: transparent;
    border: none;
    font-weight: bold;
    text-decoration: underline;
    font-size: large;
    color: #4041a2;
    cursor: pointer;
}
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#upload-screen {
    position: absolute;
    z-index: 250;
    left: 0px;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fbf9f9;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    pointer-events: all;
}
#upload-screen h2 {
    color: #b5a7ac;
    margin-top: 30px;
}
#upload-screen h4 {
    color: #b5a7ac;
    margin-top: 8px;
    font-weight: normal;
}

.custom-file-upload {
    background-color: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    width: 170px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;

    align-items: center;
    font-size: 90px;
    color: #f3a350;
    box-shadow: 0px 9px 20px 0px rgba(0, 0, 0, 0.123);
    position: relative;
    outline: none;
    border: none;
}

.hidden-panel {
    display: none !important;
}

#textureUpload {
    display: none;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99.99%;
    background-color: rgb(0, 0, 0);
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 255;
}
.overlay-visible {
    opacity: 0.5 !important;
    pointer-events: all !important;
}

#replace-input {
    display: none;
}

.slider-cont {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.slider-cont-open {
    opacity: 1;
    pointer-events: all;
}
.slider-cont-open-for-crop {
    opacity: 1;
    pointer-events: all;
    bottom: 90px;
    /* margin-left: 250px; */
}
.slider-cont div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #4041a2;
}
.slider-cont p {
    user-select: none;
    pointer-events: none;
}
.slider-cont input[type="range"] {
    -webkit-appearance: none;
    width: 120%;
    height: 3px;
    background: #4041a2;
    border-radius: 3px;
    outline: none;
}
.slider-cont input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #f7992f;
    border-radius: 50%;
    cursor: pointer;
}

.slider-cont input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4caf50;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#hint-pinch {
    margin-top: 40px;
    filter: drop-shadow(0px 0px 5px #f7f5f6);
}
.crop-edit-panel {
    position: absolute;
    bottom: 0;
    bottom: -600px;
    width: 100%;
    background-color: transparent;
    height: 120px;
    z-index: 333;
    display: flex;
    justify-content: baseline;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* padding: 40px; */

    box-sizing: border-box;
    color: #293792;

    transition:
        left 0.3s ease,
        bottom 0.3s ease,
        opacity 0.3s ease;
    user-select: none;

    opacity: 0;
}

.crop-edit-panel h3 {
    margin-bottom: 16px;
    margin-top: 32px;
}
.crop-edit-panel-open {
    left: 0px;
    bottom: 0px;
    opacity: 1;

    /* display: none;
    pointer-events: none; */
}

.crop-done-btn {
    width: 120px;
    bottom: 10px;
    color: white;
    background-color: #4041a2;
    border: none;
    border-radius: 8px;
    height: 40px;
    font-size: large;
    cursor: pointer;
    pointer-events: all;
}

.size-edit-panel {
    width: 100%;
    height: 400px;
    position: absolute;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    bottom: -600px;
    transition: bottom 0.3s ease;
    color: #4041a2;
    box-sizing: border-box;
    pointer-events: all;
}
.size-edit-panel-open {
    bottom: 10px;
}
.size-edit-panel > div {
    background-color: #ffffff;
    width: 450px;
    max-width: 100%;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.size-image-cont {
    box-sizing: border-box;
    width: 100%;
    height: 65%;
    overflow: hidden;
    border-radius: 16px;
    overflow: hidden;
}
.size-image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.size-btn-cont {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.size-btn-cont button {
    background-color: #e7e8fc;
    border: 1px solid #a8a9e9;
    border-radius: 8px;
    color: #4041a2;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 0;
}
.size-edit-done-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #f7992f;
    cursor: pointer;
    font-size: large;
}
.selected-size {
    border: 2px solid #4041a2 !important;
    background-color: #a2a3f0 !important;
}
.submit-loading-screen {
    width: 100%;
    box-sizing: border-box;
    height: 150px;
    background-color: transparent;
    position: absolute;
    bottom: -300px;
    /* transition: bottom 0.3s ease; */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 400;
}
.submit-loading-screen-open {
    bottom: 60px;
}
.submit-loading-screen div {
    width: 350px;
    background-color: white;
    height: 100%;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}
.upload-done-btn {
    padding: 10px 28px;
    background-color: #4041a2;
    color: white;
    display: none;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
}
.upload-done-btn-visible {
    display: block;
}

#delete-all-photos-btn {
    /* padding: 10px 16px;
    background-color: transparent;
    font-size: large;
    border: none;
    cursor: pointer;
    border-radius: 8px; */
    display: none !important;
}
/* .delete-all-photos-btn:hover {
    background-color: #ffffff4f;
} */
.confirmation-screen {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 333;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.confirmation-screen > div {
    background-color: white;
    padding: 60px 100px;
    width: 500px;
    max-width: 99%;
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    border-radius: 16px;
    text-align: center;
}
.confirmation-screen-open {
    pointer-events: all;
    opacity: 1;
}
.keep-photos-btn {
    padding: 16px 32px;
    border: none;
    background-color: #4041a2;
    font-size: large;
    color: white;
    border-radius: 12px;
    cursor: pointer;
}

.hint-cont {
    width: 100%;

    justify-content: center;
    bottom: 26%;
    position: absolute;
    pointer-events: none;
    user-select: none;
    display: none;
}
.hint-cont > * {
    opacity: 0;
    position: absolute;
}
.hint-swipe {
    opacity: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    /* border: 1px solid red; */
    z-index: 200;
    filter: drop-shadow(0px 0px 5px #f7f5f6);
}

.hint-swipe img {
    width: 60px;
    aspect-ratio: 1;
    object-fit: contain;
    position: absolute;
}
.hint-swipe p {
    margin-top: 55px;
    text-wrap: nowrap;
}

.hint-pinch img {
    width: 50px;
    aspect-ratio: 1;
    object-fit: contain;
    position: absolute;
    transform: translate(-55px, -20px);
}
.hint-visible {
    opacity: 1;
}
.hint-hidden {
    opacity: 0 !important;
}
.upload-loading-screen {
    width: 100%;
    height: 99.99%;
    background-color: #fbf9f9;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    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-progress-wrap {
    width: 180px;
    height: 180px;
    position: relative;
    display: grid;
    place-items: center;
}
.upload-progress {
    width: 180px;
    height: 180px;
    display: block;
}
#upload-progress {
    stroke-dashoffset: 99;
    will-change: stroke-dashoffset;
}
.upload-loading-number-value {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #4041a2;
    font-size: 2.1em;
    line-height: 1;
}
.submit-progress::-webkit-progress-bar {
    background-color: #a2a3f0;
}
.submit-progress::-webkit-progress-value {
    background-color: #4041a2;
}

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

.upload-message-screen {
    width: 100%;
    height: 50%;
    background-color: transparent;
    position: absolute;
    left: 0;
    bottom: -100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    pointer-events: none;

    transition: bottom 0.03s ease;
    z-index: 1100;
    pointer-events: all;
}
.upload-message-screen p {
    padding-top: 20px;
    font-weight: normal;
    color: #4041a2;
    font-size: 0.8em;
    text-align: center;
}
.upload-message-screen > div {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    border-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 40px;
    text-align: center;
}
.upload-message-screen-open {
    bottom: 0px;
}
.upload-message-btn {
    background-color: #4041a2;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: large;
    cursor: pointer;
}

#submit-progress {
    width: 80%;
    text-outline: 0 0 #000;
    height: 5px;
    border: none;
    background-color: #4041a2;
}
.outside-size-label-cont {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    /* position: absolute;
    left: 0;
    top: 0; */
    height: 10%;
    box-sizing: border-box;
    /* border: 1px solid green; */
}
.outside-size-label {
    border: none;
    background-color: white;
    border-radius: 20px;
    padding: 4px 8px;
}
#upload-loading-screen-title {
    max-width: 300px;
    text-align: center;
}

.size-type-title {
    grid-column: 1 / -1;
    color: #f7992f;
    font-size: medium;
    margin-top: 4px;
}

.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-was {
    background-color: #c97f24;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: line-through;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 4px;
    padding-left: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 0.85em;
}

.price-was.hidden {
    display: none;
}

#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);
}
#starter-upload-btn svg {
    fill: #f3a350;
    width: 130px;
}
@media only screen and (max-width: 700px) {
    .slider-cont {
        display: none;
    }

    .main-panel {
        width: 98%;
        border: none;
        margin-bottom: 0;
        height: 60px;
    }
    .main-panel > div,
    .main-panel > label {
        flex-direction: column;
        width: 100px;
        justify-content: center;
        align-items: center;
    }
    .main-panel > div > div {
        margin-bottom: 0;
        height: 24px;
        width: 40px;
    }
    .main-panel > div > p {
    }

    .crop-edit-panel {
        height: 60px;
    }
    /*
    .crop-edit-panel h3 {
        display: none;
    }
    .crop-edit-panel h2 {
        display: none;
    }
    .crop-done-btn {
        color: #4041a2;
        background-color: transparent;
        width: 70px;
        height: 30px;
        font-weight: bold;
        box-shadow: none;
        position: absolute;
        top: 10px;
        right: 0px;
        left: auto;
        margin: 0;
    } */

    .hint-cont {
        display: flex;
    }
    .upload-loading-screen p {
        position: static;
    }

    #add-to-cart-btn {
        width: 80px;
    }
}

.back-btn-cont {
    position: absolute;
    left: 12px;
    top: 16px;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
    border: none;
    color: #4041a2;
    user-select: none;
    z-index: 99;
}
.back-btn-cont:active {
    font-weight: bold;
}
.back-btn-cont svg {
    width: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    fill: #4041a2;
}

.ellipsis-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 240;
    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;
    cursor: pointer;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.269);
}
.ellipsis-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.ellipsis-menu {
    position: absolute;
    top: 45px;
    right: 10px;
    z-index: 240;
    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;
    padding: 8px;
}
.ellipsis-menu-visible {
    display: flex;
    pointer-events: all;
}
#ellipsis-clear-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #dc2d2d;
    cursor: pointer;
    font: inherit;
}
#ellipsis-clear-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#ellipsis-clear-btn:hover {
    background-color: #fff1f1;
}
#ellipsis-clear-btn:active {
    color: white;
    background-color: #dc2d2d;
}
.ellipsis-btn:focus-visible,
#ellipsis-clear-btn:focus-visible {
    outline: 2px solid #4041a2;
    outline-offset: 2px;
}

/* Temporary customer warnings. */
.customer-notification {
    position: fixed;
    z-index: 2000;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, calc(100vw - 32px));
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;

    border-radius: 12px;
    background: #d07a19;
    color: white;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}
.customer-notification[hidden] {
    display: none;
}
.customer-notification-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff2e1;
    color: #b76300;
    font-weight: bold;
}
.customer-notification-message {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
}
.customer-notification-close {
    flex: 0 0 40px;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 34px;
    cursor: pointer;
}
.customer-notification-close:hover {
    background: rgba(255, 255, 255, 0.18);
}
.customer-notification-close:focus-visible {
    outline: 2px solid #4041a2;
    outline-offset: 2px;
}

/* File-drop frame, enabled only on the empty initial upload screen. */
#initial-photo-drop {
    position: fixed;
    inset: 18px;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: 28px;
    box-sizing: border-box;
    border: 3px dashed #4041a2;
    border-radius: 28px;
    background: #fffcfa;
    pointer-events: none;
    animation: initial-photo-drop-in 180ms ease-out;
}
#initial-photo-drop[hidden] {
    display: none;
}
.initial-photo-drop-content {
    text-align: center;
    color: #4041a2;
}
.initial-photo-drop-icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: #f3a350;
    fill: white;

    transform: rotate(-5deg);
}
.initial-photo-drop-icon svg {
    width: 80px;
    height: 80px;
}
.initial-photo-drop-content h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
}
.initial-photo-drop-formats {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eeeefa;
    font-size: 14px;
}
@keyframes initial-photo-drop-in {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width: 480px) {
    #initial-photo-drop {
        inset: 10px;
        padding: 20px;
        border-radius: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #initial-photo-drop {
        animation: none;
    }
}

.photo-recovery {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: white;
    color: #272737;
    box-shadow: 0 9px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    pointer-events: auto;
}
.photo-recovery::backdrop {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.photo-recovery-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: transparent;
    color: #b76300;
    fill: #b76300;
    font-size: 26px;
    font-weight: bold;
}
.photo-recovery h2 {
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.photo-recovery p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
    color: #555563;
}
.photo-recovery button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #dddded;
    border-radius: 8px;
    background: white;
    color: #4041a2;
    font-size: 15px;
    cursor: pointer;
}
.photo-recovery button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.photo-recovery[aria-busy="true"] button:disabled {
    cursor: wait;
}
.photo-recovery .photo-recovery-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: #4041a2;
    color: white;
    font-size: 17px;
}
.photo-recovery .photo-recovery-link {
    border: none;
    background: transparent;
    text-decoration: underline;
}
.photo-recovery [data-recovery-reset] {
    margin-top: 10px;
}
@media (max-width: 400px) {
    .photo-recovery {
        padding: 22px 18px;
    }
    .photo-recovery h2 {
        font-size: 21px;
    }
}
.photo-recovery button:focus-visible {
    outline: 2px solid #4041a2;
    outline-offset: 3px;
}

/* FreeSnaps: keep debug overlay hidden until JS adds .error-overlay-visible */
.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: 9999999;
    display: none;
    user-select: none;
    pointer-events: none;
}
.error-overlay-visible {
    display: block;
    pointer-events: all;
    user-select: all;
}
