.carregaimatge {
  background-color: rgb(251, 251, 251);
  padding: 22px;
  border-radius: 12px;
  float: left;
  height: 150px;
  box-shadow: #dddddd 0px 0px 20px;

}

.carregatext {
  background-color:  rgb(251, 251, 251);
  padding: 22px;
  border-radius: 12px;
  float: left;
   height: 150px;
   box-shadow: #dddddd 0px 0px 20px;

}

.carregaopcions {

  float: left;
   height: 150px;
   width: 100px;
   line-height: 105%;
   padding-top: 6px;
   padding-bottom: 6px;
   padding-left: 6px;
  

}

#wcsd-method-price {
    font-weight: bold;
    color: rgb(78, 127, 28);
    font-size: 130%;
}

#wcsd-method-price::after {
    content: '€';
  
}


#wcsd-text-input {
    margin-right: 12px;

}

#wcsd-text-font {
    margin-right: 12px;
      width: 90px;
}


#wcsd-text-color{
    margin-right: 12px;
    transform: translateY(4px);
    width: 40px !important;

}

#wcsd-method {
    margin-bottom: 16px;
        margin-top: 9px;
}

.wcsd-actions {
    clear: both;
    float: none;
    display: block;
    width: 100%;
    overflow: hidden; /* opcional - per contenir els floats interns */
}

#wcsd-field-link {
    margin-left: 30px;
    background-color: rgb(219, 220, 126);
}

#wcsd-field-link:hover {
 
    background-color: rgb(238, 239, 159);
}

.wcsd-sum { 
    margin-top:16px; 
    margin-bottom: 26px;
    font-size:16px;
text-align: center;
padding: 20px;
background-color: rgb(68, 145, 32);
color: #fff;
 }
.wcsd-sum-label { font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.wcsd-sum-num { font-weight:700; }



.wcsd-add-to-cart-bottom{
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.wcsd-add-to-cart-bottom[disabled]{
  opacity:.5;
  cursor:not-allowed;
}





.wcsd-upload {
  background: #d9d9d9;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 12px 14px;
  align-items: center;
}
.wcsd-upload-input {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}
.wcsd-upload-label {
  grid-column: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform .05s ease, box-shadow .15s ease;
}
.wcsd-upload-label:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wcsd-upload-label:active { transform: translateY(1px); }

.wcsd-upload-fn {
  grid-column: 2 / 3;
  font-size: 16px;
  opacity: .9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wcsd-dropzone {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: rgba(255,255,255,.55);
  border: 2px dashed #bcbcbc;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  color: #333;
}
.wcsd-dropzone.wcsd-dragover {
  border-color: #888;
  background: rgba(255,255,255,.75);
}

@media (max-width: 560px){
  .wcsd-upload { grid-template-columns: 1fr; }
  .wcsd-upload-fn { grid-column: 1 / -1; }
}


.woocommerce-variation-add-to-cart {
  margin-top: 50px !important;
}


.wcsd-wrap h2 {
  font-size: 32px !important;
  margin-bottom: 20px;

}


#wcsd-method-notice {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    border-radius: 8px;
    color: #6b4e00;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    z-index: 9999;
  min-width: 220px;
  margin-top: -30px !important;
  margin-left: 30px !important;
}



@media (max-width: 768px) {

  #disseny {
    padding: 18px !important;
  }

  .wcsd-wrap {
    padding: 16px !important;
  }

  .wcsd-wrap h2 {
    font-size: 26px !important;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .carregaimatge,
  .carregatext,
  .carregaopcions {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .carregaimatge,
  .carregatext {
    padding: 18px !important;
  }

  .carregaopcions {
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  #wcsd-upload-size,
  #wcsd-method,
  #wcsd-text-input,
  #wcsd-text-font {
   
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 8px;
  }

  #wcsd-text-color {
    width: 46px !important;
    height: 36px !important;
    margin-right: 8px;
  }

  .carregatext {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .carregatext strong,
  .carregatext label {
    width: 100%;
  }

  #wcsd-add-text {
    width: 100%;
    justify-content: center;
  }

  #wcsd-method-price {
    display: block;
    min-height: 24px;
    margin-top: 8px;
  }

  #wcsd-method-price:empty::after {
    content: "";
  }

  #wcsd-method-notice {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .wcsd-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    overflow: visible !important;
  }

  .wcsd-actions button,
  .wcsd-actions a {
    min-height: 38px;
  }

  #wcsd-field-link {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
  }

  .wcsd-canvas-wrap,
  #wcsd-canvas {
    max-width: 100% !important;
  }
}