/* .design-it-button {
    padding: 8px;
    border: 1px solid #fff;
    color: #fff;
    background-color: #fa3a5e;
    text-align: center;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    line-height: inherit;
    text-decoration: none;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    font-weight: 500;
    display: inline-block;
}
.design-it-button:hover {
    padding: 8px;
    color: #000;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    font-weight: 500;
    display: inline-block;
} */

/* Design It button aligned with Add to Cart */
a.design-it-button {
    float: none !important;
    display: inline-block !important;
    vertical-align: middle;
    margin-top: 8px;
    /* margin-left: 10px; */
    padding: 18px 35px !important;
    /* height: 18px; */
    line-height: 1;
    /* width: auto; */
    border: 1px solid #fff;
    color: #fff;
    background-color: #fa3a5e;
    text-align: center;
    box-shadow: none !important;
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    /* border-radius: 0.33rem;  */
    border-width: 0;
    max-width: 114px;
}

/* Hover styling */
a.design-it-button:hover {
    color: #000;
    background-color: #fff;
    border: 1px solid #fa3a5e;
}

#customer_login {
    padding: 20px;
}
#customer_login .form-row {
    margin-bottom: 20px;
}
#customer_login div[class^='u-column'] {
    border: 1px solid #bbb;
    padding: 10px 20px;
    margin-bottom: 20px;
}

#customer_login .form-row {
    margin-bottom: 20px;
}
#customer_login p label {
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
}
#customer_login p .input-text {
    border-radius: 0;
    padding: 6px;
    font-size: 15px;
}
#customer_login p .button {
    border-radius: 0;
    font-weight: 500;
}

.designer-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 1001; /* Should be higher than popup content */
    transform: translate(-50%, -50%);
}

.woocommerce div.product form.cart::after, .woocommerce div.product form.cart::before {
    display: none;
}

.woocommerce .wc-block-add-to-cart-form--input .cart .design-it-button {
    grid-column: 2 / -1;
}

#design-modal.modal.ndp-model {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.3s ease-in;
}
#design-modal.modal.ndp-model.modal-active {
    transform: translateX(0);
}
body.wp-singular:has(#design-modal.modal.ndp-model.modal-active) {
    overflow: hidden;
}
body.admin-bar #design-modal.modal.ndp-model {
    top: 32px;
    /* Default WP admin bar height */
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    body.admin-bar #design-modal.modal.ndp-model {
        top: 46px;
        /* WP admin bar height on mobile */
        height: calc(100% - 46px);
    }
}

#designer-popup-content {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    /* border-radius: 8px 0 0 8px; */
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#designer-popup-content iframe
{
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
}
#designer-popup-content .close-designer-popup{
    background-color: transparent;
    border: 0;
    font-size: 0;
    width: 41px;
    height: 41px;
    transform: rotateZ(45deg);
    top: 5px !important;
}
#designer-popup-content .close-designer-popup::after, #designer-popup-content .close-designer-popup::before{
    font-size: 1em;
    line-height: 1em;
    color: #000;
    content: '';
    margin: 0;
    vertical-align: top;
    display: inline-block;
    font-weight: 400;
    overflow: hidden;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 12px;
    border-top: 1px solid;
    height: 20px;
    width: 20px;
}
#designer-popup-content .close-designer-popup::after{
    top: 10px;
    left: 22px;
    transform: rotateZ(-90deg);
}

@media (min-width: 1200px) {
    #designer-popup-content{
        width: 96%;
    }
    #designer-popup-content iframe{
        padding: 10px;
    }
    #designer-popup-content .close-designer-popup{
        top: 25px !important;
    }
    body.admin-bar #design-modal.modal.ndp-model {
        top: 0;
        height: 100%;
    }
}