*[align="right"] {
  text-align: right;
}

.wphp-flex{
  display: flex !important;
}

.wphp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  width: 100%;
}

.wphp-grid.wphp-grid-opt > div{
  margin-top: 15px;
}

.wphp-product-cart {
  margin-bottom: 40px;
}

.wphp-product-cart button{
  margin-top: 25px !important;
}
.wphp-product-cart button.single_add_to_cart_button{
  margin-bottom: 25px !important;
}

.wphp-product-cart hr {
  margin: 25px 0;
  color: #bcbcbc;
  width: 100%;
}

.wphp-product-cart legend {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.wphp-width-100,
.wphp-product-option-selector,
.wphp-product-country-selector {
  width: 100%;
  float: left;
}

.wphp-display-none {
  display: none !important;
}

.wphp-text-center {
  text-align: center !important;
  display: block;
}

.wphp_product_file_upload .uploaded-image {
  min-width: 75px !important;
  min-height: 75px !important;
}

.wphp_cart_item_upload {
  margin-top: 10px;
  margin-bottom: 10px;
}

.wphp-pointer {
  cursor: pointer;
}

.wphp-product-file-upload legend {
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wphp-product-file-upload .wphp-info-icon {
  cursor: pointer;
}

/*Size Quantity Section -------------------------------------- */
.wphp-size-quantity{
  width: 100%;
  /* color: #000000; */
}
.wphp-size-quantity input{
  width: 100%;
}
.wphp-size-quantity .wphp-flex {
  gap: 25px;
}
.wphp-size-quantity > div > .wphp-flex{
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}
.wphp-size-quantity > div > .wphp-flex:last-child{
  border: none !important;
}
.wphp-size-quantity > div > .wphp-flex > *:nth-child(1){
  width: 15%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.wphp-size-quantity > div > .wphp-flex > *:nth-child(2){
  width: 42.5%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.wphp-size-quantity > div > .wphp-flex > *:nth-child(3){
  width: 42.5%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.wphp-size-quantity .wphp-total{
  margin-top: 15px;
}
.wphp-size-quantity .wphp-total .wphp-flex > *{
  border: none;
  padding: 0;
}
.wphp-size-quantity .wphp-total .wphp-flex > *:nth-child(1){
  width: 27%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: none;
  white-space: nowrap;
}
.wphp-size-quantity .wphp-total .wphp-flex > *:nth-child(2){
  width: max-content;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: none;
}
.wphp-size-quantity .wphp-total .wphp-flex > *:nth-child(3){
  width: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: none;
}

/*Quantity Section -------------------------------------- */

.wphp-quantity-sec p{
  margin: 0;
}
.wphp-quantity-sec {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}
.wphp-quantity-wrp {
  margin-top: 15px;
}
.wphp-quantity-wrp.less .wphp-showless{
    display: none !important;
}
.wphp-quantity-wrp.less .wphp-showmore{
    display: block !important;
}
.wphp-quantity-wrp.less .wphp-quantity-grp{
    overflow: hidden;
}
.wphp-quantity-wrp.more .wphp-showless{
    display: block !important;
}
.wphp-quantity-wrp.more .wphp-showmore{
    display: none !important;
}
.wphp-quantity-wrp.more .wphp-quantity-grp{
    overflow: none;
    max-height: auto;
}
.wphp-quantity-wrp a {
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 15px;
}

/* MODIFICA CUSTOM - stile quantità */
.wphp-quantity-grp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}


.wphp-quantity-grp > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 56px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.wphp-quantity-grp > div:hover {
  border-color: #bcbcbc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wphp-quantity-grp > div:has(.quantityRadio:checked) {
  border: 2px solid #111;
  padding: 13px 15px;
}

.wphp-quantity-grp .quantityRadio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wphp-quantity-grp label {
  margin: 0 !important;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: #222;
  cursor: pointer;
}

.wphp-quantity-grp .pricee {
  margin-left: 16px;
  text-align: right;
  line-height: 1.1;
}

.wphp-quantity-grp .pricee,
.wphp-quantity-grp .pricee span {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

@media(min-width: 768px) {
  .wphp-quantity-grp {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media(max-width: 767px) {
  .wphp-quantity-grp label {
    font-size: 22px;
  }

  .wphp-quantity-grp .pricee,
  .wphp-quantity-grp .pricee span {
    font-size: 16px;
  }
}

/* Size Section --------------------------------- */
.wphp-grids {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 20px;
  margin-top: 5px;
  margin-bottom: 20px;
  overflow: hidden;
  
}
@media(max-width: 767px) {
  .wphp-grids{
    grid-template-columns: 1fr 1fr;
  }
}
@media(max-width: 1200px) {
  .wphp-grids{
    grid-template-columns: 1fr 1fr;
  }
}
.wphp-size-sec{
  margin-top: 20px;
}
.wphp-size-sec a.wphp-size{
  width: 100% !important;
  height: 100% !important;
  border: 1px solid #e2e2e2;
  color: inherit;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
  margin: auto;
  text-align: center;
  position: relative;
}
.wphp-size-sec a.wphp-size.selected{
  border-color: inherit;
}
.wphp-size-sec .wphp-size p{
  margin: 0;
  text-align: center;
}
.wphp-size-sec .wphp-size img{
    margin: auto;
    display: block;
}
.wphp-size-sec .wphp-size input{
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}


.wphp-color-sec,
.wphp-print-position-sec{
  margin-top: 20px;
}
.wphp-color-sec a.wphp-color,
.wphp-print-position-sec a.wphp-print-position{
  width: 100% !important;
  height: 100% !important;
  border: 1px solid #e2e2e2;
  color: inherit;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
  margin: auto;
  text-align: center;
  position: relative;
}
.wphp-color-sec a.wphp-color.selected,
.wphp-print-position-sec a.wphp-print-position.selected{
  border-color: inherit;
}
.wphp-color-sec .wphp-color p,
.wphp-print-position-sec .wphp-print-position p{
  margin: 0;
  text-align: center;
}
.wphp-color-sec .wphp-color img,
.wphp-print-position-sec .wphp-print-position img{
    margin: auto;
    display: block;
}
.wphp-color-sec .wphp-color input,
.wphp-print-position-sec .wphp-print-position input{
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}


.wphp-loader img{
  margin: auto;
  width: 85px;
  display: block;
}

.wphp-pricing-table-loader img{
  margin: auto;
  width: 85px;
  display: block;
}

/* Upload modal */

.wphp-modal-container {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .5);

  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;

  display: none; 
  justify-content: center;
  align-items: center;
}

.wphp-modal-container.wphp-show-modal {
  display: flex;
}

.wphp-modal {
  background: #fff;
  width: 560px;
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.wphp-modal-header {
  margin-bottom: 18px;
  padding-right: 36px;
}
.wphp-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.2;
}
.wphp-modal-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
.wphp-modal-list {
  display: flex;
  flex-direction: column;
}
/* Riga guida */
.wphp-template-guide-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #eff7ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.wphp-template-guide-icon {
  width: 36px;
  height: 36px;
  background: #1d9ee8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.wphp-template-guide-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wphp-template-guide-title {
  font-weight: 600;
  font-size: 13px;
  color: #1a1a2e;
}
.wphp-template-guide-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}
.wphp-template-guide-btn {
  color: #1d9ee8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.wphp-template-guide-btn:hover { text-decoration: underline; }
/* Righe template */
.wphp-template-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid #f0f0f0;
}
.wphp-template-row:last-child { border-bottom: none; }
.wphp-pdf-icon {
  color: #e53935;
  font-size: 26px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.wphp-template-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wphp-template-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
}
.wphp-template-recommended {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eff7ff;
  color: #1d9ee8;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.wphp-template-download-btn {
  color: #1d9ee8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wphp-template-download-btn:hover { text-decoration: underline; }
.wphp-template-download-btn svg {
  border: 1.5px solid #1d9ee8;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 4px;
  flex-shrink: 0;
}
/* Footer */
.wphp-modal-footer {
  margin-top: 16px;
  background: #eff7ff;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1d9ee8;
  font-weight: 500;
  line-height: 1.4;
}


@keyframes wphp-modal {
  from {
    opacity: 0;
    transform: translate3d(0, -60px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.wphp-show-modal .wphp-modal {
  animation: wphp-modal .3s;
}
.wphp-modal-container .wphp-modal .wphp-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  z-index: 10;
  flex-shrink: 0;
  padding: 0;
}
.wphp-modal-container .wphp-modal .wphp-close-button:hover {
  background: #f1f5f9;
  color: #1a1a2e;
}

@media screen and (max-width: 768px){
  .wphp-modal {
    width: 94vw;
    max-height: 85vh;
    padding: 20px 16px 16px;
  }
  .wphp-template-guide-row { flex-wrap: wrap; }
  .wphp-modal-container .wphp-modal .wphp-close-button {
    top: 10px;
    right: 10px;
  }
}

/* Scroll modify */
#wphp-scrollend-size,
#wphp-scrollend-color,
#wphp-scrollend-printposition {
  scroll-margin: 100px;
}

/* Filepond plugin css override */
.filepond--pdf-preview-wrapper:before {
    height: 4.5em !important;
    background: -webkit-gradient(linear,left top, left bottom,color-stop(40%, #359361),to(transparent)) !important;
    background: -o-linear-gradient(top,#359361 40%,transparent 100%) !important;
    background: linear-gradient(180deg,#359361 40%,transparent 100%) !important;
}

.filepond--file .filepond--file-status-sub{
  color: #000;
}
/* Bugfix - Extra divider on artwork section */
div.wphp-size-quantity + div.wphp-add-design hr:first-of-type {
  display: none;
}
/* Bugfix - Helloprint design linebrak */
.wphp_design,
[for="wphp_design"]{
  display: inline !important;
}

input.wphp_product_options{
  width: 100%;
}

.wphp-product-file-upload #pp_customize_design_btn {
  width: 100%;
}
.wphp-product-file-upload #pp_main_btn_sec {
  margin-top: 15px;
}

@keyframes wphp--spinner-anime {
  100% { 
    transform: rotate(360deg); 
  }
}

.wphp-spinner {
  display: inline-block;
  margin-left: 0.5rem;
  box-sizing: content-box;
}
.wphp-spinner:after {
  content: " ";
  display: flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 4px #ddd solid;
  border-top: 4px #2e93e6 solid;
  animation: wphp--spinner-anime .8s linear infinite;
}

.wphp-combination-not-found-message {
  color: rgb(210, 31, 31)
}

.wphp-order-details-upload-artwork-section {
  display: block !important;
}

.wphp-order-details-delete-artwork {
  display: inline !important;
  margin-left: 5px;
}

/* MODIFICA CUSTOM - icone size / printing position più piccole e allineate */
.wphp-size-sec .wphp-size img,
.wphp-print-position-sec .wphp-print-position img {
  max-width: 80%;
  max-height: 80%;
  height: auto;
  transform: scale(0.8);
  transform-origin: center center;
}


/* MODIFICA CUSTOM - allinea printing position alla griglia size */
.wphp-print-position-sec,
.wphp-print-position-sec .wphp-grids {
  padding-left: 10px !important;
}

.wphp-size-sec .wphp-size img {
  opacity: 0.45;
}



/* MODIFICA CUSTOM - La tua grafica */
.wphp-grafica-header {
  margin-bottom: 4px;
}
.wphp-grafica-subtitle {
  display: none;
}

#wphp-grafica-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Card bloccate finché i prezzi non sono caricati */
#wphp-grafica-options.wphp-gc-locked .wphp-gc {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
#wphp-grafica-options.wphp-gc-locked::after {
  content: 'Seleziona le opzioni del prodotto per sbloccare';
  display: block;
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 4px;
}

/* Card orizzontale */
.wphp-gc {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s;
  cursor: pointer;
}
.wphp-gc:hover { border-color: #bdbdbd; }
.wphp-gc.wphp-gc-active {
  border-color: #1d9ee8;
  box-shadow: 0 0 0 3px rgba(29,158,232,.1);
}

.wphp-gc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

/* Radio dot */
.wphp-grafica-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #bdbdbd;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color .15s, border-width .15s;
}
.wphp-gc.wphp-gc-active .wphp-grafica-radio-dot {
  border-color: #1d9ee8;
  border-width: 5px;
}

.wphp-gc-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
}

.wphp-gc-icon {
  color: #1d9ee8;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.15s;
}
/* Mostra icona quando attiva */
.wphp-gc.wphp-gc-active .wphp-gc-icon {
  display: block;
}
.wphp-gc.wphp-gc-active .wphp-grafica-radio-dot {
  display: none;
}
.wphp-gc-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wphp-gc-chevron {
  color: #1d9ee8;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.wphp-gc.wphp-gc-active .wphp-gc-chevron {
  transform: rotate(180deg);
}

/* Badges */
.wphp-grafica-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.wphp-badge-included { background: #e8f5e9; color: #2e7d32; }
.wphp-badge-price    { background: #fff3e0; color: #e65100; }

/* Body espandibile */
.wphp-gc-body {
  display: none;
  padding: 4px 16px 8px;
  border-top: 1px solid #e8e8e8;
  cursor: default;
}

.wphp-sub-header {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.wphp-content-desc {
  font-size: 13px;
  color: #666;
  margin: 14px 0 0;
  line-height: 1.5;
}

.wphp-grafica-sub-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: nowrap;
}
.wphp-grafica-sub-option:last-of-type { border-bottom: none; }
.wphp-grafica-sub-option input[type="radio"] {
  display: none !important;
}
.wphp-option-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: all 0.15s;
  margin-top: 0;
}
.wphp-grafica-sub-option input[type="radio"]:checked + .wphp-option-checkbox {
  background-color: #1d9ee8;
  border-color: #1d9ee8;
  color: #fff;
}
.wphp-grafica-sub-option input[type="radio"]:checked + .wphp-option-checkbox::before {
  content: "✓";
}
.wphp-sub-info { display: flex; flex-direction: column; flex: 1; gap: 1px; }
.wphp-sub-title { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.wphp-sub-desc  { font-size: 12px; color: #888; line-height: 1.2; }

.premium-upload {
  width: 100%;
  margin-top: 8px;
}
.upload-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #0f1f3d;
  margin-bottom: 8px;
}
.upload-dropzone {
  height: 64px;
  border: 1.5px dashed #9ecbff;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2a44;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-dropzone:hover {
  border-color: #1e88ff;
  background: #f8fbff;
}
.upload-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-link {
  color: #1e88ff;
  font-weight: 600;
  text-decoration: underline;
}

.wphp-grafica-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-top: 14px;
  line-height: 1.5;
}

/* Header controllo con bottone info */
.wphp-sub-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}
.wphp-sub-header-row .wphp-sub-header { margin: 0; }


