.customize-form {
    position: fixed;
    z-index: 9999;
    background-color: #fff;
    border-radius: 10px;
    min-height: 150px;
    min-width: 365px;
    display: none;
    border: 1px solid rgba(34,34,34,.15);
    overflow: hidden;
    bottom: 20px;
}

.customize-form.show {
    /* display: block;
    position: absolute;
    top: 0;
    width: 100% !important;
    height: 55vh;
    overflow: hidden; */
    position: relative;
    margin-bottom: 16px;
    display: block;
    box-shadow: none !important;
    margin-top: 16px;
    border-radius: 0;
}

.customize-form.show .form-body {
    height: 100%;
    overflow: hidden; 
}

.form-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid #E1E1E1;
    padding: 6px 16px;
}

.customize-form.show .form-header {
    display: none;
}
.customize-form.show.adjusting,
.customize-form.show.isOpeningUploadGuide {
    box-shadow: var(--pr-shadow-500) !important;
    border-radius: 10px;
}

.customize-form.show.adjusting .form-header,
.customize-form.show.isOpeningUploadGuide .form-header {
    display: flex;
}

.form-header .title {
    color: #19124f;
    font-size: 18px;
    font-weight: 500;
}

.close-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    padding: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    color: var(--pr-color-primary);
    background: var(--pr-color-flash);
    cursor: pointer;
    padding: 4px;
}
.close-form svg {
    max-height: 100%;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
    vertical-align: bottom;
    width: 32px;
    height: 32px;
}

.customize-form.adjusting {
    min-width: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.customize-form.show.adjusting {
    min-width: 700px;
    position: fixed;
    width: 80vw !important;
    height: 80vh;
}


.customize-form.isOpeningUploadGuide {
    min-width: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.customize-form.show.isOpeningUploadGuide {
    min-width: 600px;
    position: fixed;
    width: 50vw !important;
    height: 80vh;
}

.adjusting #iframe-customize {
    max-width: 800px;
    max-height: 800px;
    height: revert-layer;
    margin: 0 auto;
}

.iframe-customize-wrapper {
    text-align: center;
    height: 100%;
}

.customize-form iframe {
    width: 100%;
    border: none;
}

.customization-btn-custom {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    border: 1px solid transparent;
    transition: background-color .25s ease-out,color .25s ease-out;
    font-family: inherit;
    -webkit-appearance: none;
    line-height: 1;
    cursor: pointer;
    outline: none;
    background-color: #6071ec;
    font-weight: 500;
    min-width: 130px!important;
    padding: 1rem 2.4rem;
    border-radius: var(--large-padding);
    color: var(--white);
    font-size: 16px;
    order: 4;
    width: 100%;
}

[disabled] {
    pointer-events: none;
    opacity: 0.75;
}

body.is-quick-editing {
    overflow: hidden;
}

.product-variant-box.addtocart-action-wrapper {
    grid-gap: 8px;
}
.customize-form-background.show.adjusting,
.customize-form-background.show.isOpeningUploadGuide {
    position: fixed;
    background: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 99;
}

.product-gallery-wrapper.is-open-from-quick-edit {
    z-index: 100;
    position: relative;
}

.product-gallery-wrapper.loading::before {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.product-gallery-wrapper.loading::after {
    content: " ";
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #777;
    border-color: #7d7d7d transparent #7c7b7b transparent;
    animation: lds-dual-ring 1.2s linear infinite;
    position: absolute;
    top: 00%;
    right: 0%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

 
@media (max-width: 760px) and (orientation: portrait) {
    /* .customization-action-wrapper:not(.show) {
        display: none !important;
    } */

    .customization-action-wrapper.show .product-addtocart {
        display: none !important;
    }
    .customize-form.show {
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        border-radius: 0;
        max-height: none;
        position: fixed;
        pointer-events: all;
        margin-top: 0;
    }
    .customize-form.show.adjusting {
        min-width: 100vw;
        width: 100vw !important;
        height: 100vh !important;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .customize-form.show.isOpeningUploadGuide {
        min-width: 100vw;
        width: 100vw !important;
        height: 100vh !important;
        left: 0;
        transform: none;
    }
    .customize-form.show .form-header {
        display: flex;
    }
    .customize-form.show .form-body { 
        height: calc(100% - 46px);
        overflow: hidden;
    }
    .customize-form iframe {
        height: calc(100vh - 45px - 100vw);
    }
    .customize-form.isOpeningUploadGuide iframe {
        height: calc(100vh - 45px);
    }
    .customize-form .preview {
        height: 100vw;
        transition: all 200ms ease;
    }

    .adjusting .preview {
        opacity: 0;
        height: 0;
        visibility: hidden;
    }

    .isOpeningUploadGuide .preview {
        opacity: 0;
        height: 0;
        visibility: hidden;
    }

    .adjusting #iframe-customize {
        width: 100vw; 
        height: 100vw;
    }
    .customization-action-wrapper {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        grid-gap: 6px;
    }
    #product-page .customization-action-wrapper .button-add-to-cart{
        width: 100%;
        height: 49px;
    }

    .iframe-customize-wrapper {
        width: 100%;
        height: calc(100vh - 100vw - 52px);
        bottom: 0;
        background: #fff;
        box-shadow: 0 1px 1px -1px rgba(0,0,0,.15), 0 1px 2px 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.1);
        z-index: 999;
        transition: all 50ms ease;
        padding: 0 10px;
    }
    .customize-form.adjusting .iframe-customize-wrapper {
        bottom: unset;
        padding: 0;
    }
    .customize-form.isOpeningUploadGuide .iframe-customize-wrapper {
        bottom: unset;
        height: calc(100vh - 52px);
    }
    .js-customize-changed {
        position: relative;
    }
    /* .js-customize-changed .button-add-to-cart {
        position: absolute;
        width: 100% !important;
        height: 50px;
        z-index: 999;
        top: 0;
        left: 0;
    } */
    .js-customize-changed .customization-btn-custom {
        display: none;
    }

    .customization-btn-custom {
        white-space: nowrap;
    }
    .js-have-price-section .customization-btn-custom {
        min-height: 38px;
        padding: var(--pr-spacing-03) var(--pr-spacing-05);
    }
    body.is-quick-editing {
        overflow: hidden;
        pointer-events: none;
    }
    #customize-app {
        padding-bottom: 100px;
    }
}

.product-addtocart span {
    font-size: 16px;
}
#product-page .button-add-to-cart {
    padding: 14px var(--pr-spacing-07);
}

.icon-edit {
    background-color: var(--pr-color-secondary);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}
@media (min-width: 1360px) {
    .customize-form.show {
        width: var(--wleft);
        box-shadow: var(--pr-shadow-500);
        border: none;
        background-color: #f8f8f8;
        padding: 12px;
        border-radius: 7px;
    }
    
}
@media (min-width: 760px) and (max-width: 1360px) and (orientation: landscape) {
    .customize-form.show {
        width: 100% !important;
        min-width: 0;
        border: none;
        background-color: #f8f8f8;
        padding: 12px;
        border-radius: 7px;
    }
}

@media (min-width: 760px) and (max-width: 1360px) and (orientation: portrait) {
    .customize-form.show {
        width: 100% !important;
        min-width: 0;
        border: none;
         background-color: #f8f8f8;
        padding: 12px;
        border-radius: 7px;
    }
    .customize-form.show.isOpeningUploadGuide {
        height: 65vh;
    }
}


@media (max-width: 1360px) and (orientation: portrait) {
    .product-variant-box.addtocart-action-wrapper {
        flex-wrap: wrap;
    }
}

.stickybox-product .customization-btn-custom {
    padding: 16px 12px;
}

