.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;
    width: 120px;
}
.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;
} 

#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;
}


/* Modal Styles */
.ndp-model {
    left: 19px;
    top: 30px;
    width: 98%;
    height: 92%;
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.4); 
    justify-content: center; 
    align-items: center; 
    display: flex;
}
.ndp-model-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    height: 80dvh;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.ndp-model-content > span.close {
    color: #fff; 
    background-color: rgba(0, 0, 0, 1); 
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.ndp-model-content > span.close:hover,
.ndp-model-content > span.close:focus {
    background-color: rgba(0, 0, 0, 1);
    outline: none;
}

.ndp-model-content > span.close:active {
    transform: scale(0.9);
}

/* Make the modal a real overlay */
#design-modal.modal.ndp-model {
  position: fixed !important;
  background: rgba(0,0,0,0.6);
  z-index: 2147483000;
  display: none;        /* you toggle it to flex in JS */
  align-items: center;
  justify-content: center;
}

/* Constrain and hide overflow around the iframe */
#designer-popup-content {
  position: relative;
  width: min(1200px, 95vw);
  height: 85vh;
  overflow: hidden;     /* crop any oversize iframe */
  background: #fff;
}

/* Always render iframe as a block */
#designer-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The mask that covers the bottom area of the iframe */
.designer-iframe-bottom-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;        /* adjust this to cover what you want hidden */
  background: #fff;     /* match #designer-popup-content bg */
  z-index: 2;
  /* If you also want to block clicks on the hidden area, leave as-is.
     If you want clicks to pass through, use pointer-events:none */
  pointer-events: auto;
}

.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;
}