/* Drexes: loghi dei metodi di pagamento nel checkout */
#payment .payment_method_moyidata_stripe > label img {
  content: url("https://drexes.com/wp-content/uploads/2026/08/3431c459-6ea1-4003-ba1d-bead5aa97ec5-e1783534578169.webp") !important;
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin: 10px 0 0;
  object-fit: contain;
}

@media (max-width: 480px) {
  #payment .payment_method_moyidata_stripe > label img {
    max-width: 260px;
  }
}

/* Drexes: bordo assistenza pagamento da 1 px */
#dx-payment-help-notice {
  border-width: 1px !important;
}/* Drexes: loghi dei metodi di pagamento nel checkout */
#payment .payment_method_moyidata_stripe > label img {
  content: url("https://drexes.com/wp-content/uploads/2026/08/3431c459-6ea1-4003-ba1d-bead5aa97ec5-e1783534578169.webp") !important;
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin: 10px 0 0;
  object-fit: contain;
}

@media (max-width: 480px) {
  #payment .payment_method_moyidata_stripe > label img {
    max-width: 260px;
  }
}

/* Drexes: bordo assistenza pagamento da 1 px */
#dx-payment-help-notice {
  border-width: 1px !important;
}

/* Drexes: pulsante assistenza verde come il contorno */
#dx-payment-help-notice button {
  background: #18733f !important;
  border: 1px solid #18733f !important;
  color: #ffffff !important;
}/* Drexes: loghi dei metodi di pagamento nel checkout */
#payment .payment_method_moyidata_stripe > label img {
  content: url("https://drexes.com/wp-content/uploads/2026/08/3431c459-6ea1-4003-ba1d-bead5aa97ec5-e1783534578169.webp") !important;
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin: 10px 0 0;
  object-fit: contain;
}

@media (max-width: 480px) {
  #payment .payment_method_moyidata_stripe > label img {
    max-width: 260px;
  }
}

/* Drexes: riquadro assistenza pagamento blu petrolio */
#dx-payment-help-notice {
  background: #F2F7F8 !important;
  border-color: #356C78 !important;
  border-width: 1px !important;
}

/* Drexes: pulsante assistenza coordinato */
#dx-payment-help-notice button {
  background: #356C78 !important;
  border: 1px solid #356C78 !important;
  color: #ffffff !important;
}

/* Drexes: arrotondamento pulsante Completa l'ordine */
#place_order {
  border-radius: 6px !important;
}


/* Drexes: raggio coerente per il riquadro assistenza */
#dx-payment-help-notice {
  border-radius: 6px !important;
}


/* Drexes: gerarchia chiara nel blocco pagamento */
#payment {
  display: flex !important;
  flex-direction: column !important;
}
#payment > .dx-pay-title { order: 1; }
#payment > .wc_payment_methods { order: 2; }
#payment > .form-row.place-order { order: 3; }
#payment > .dx-buy-secure { order: 4; }
#payment > #dx-payment-help-notice { order: 5; }

/* Drexes: assistenza come azione secondaria */
#dx-payment-help-notice button {
  background: #ffffff !important;
  border: 1px solid #356C78 !important;
  color: #356C78 !important;
}


/* Drexes: popup assistenza coordinato al form */
#dx-support-dialog {
  background: #F2F7F8 !important;
  border: 1px solid #356C78 !important;
  border-radius: 6px !important;
}
#dx-support-dialog h2 {
  color: #356C78 !important;
}
#dx-support-dialog input:not([type="hidden"]),
#dx-support-dialog textarea {
  background: #ffffff !important;
  border: 1px solid #D9D9D3 !important;
  border-radius: 6px !important;
}
#dx-support-dialog input:not([type="hidden"]):focus,
#dx-support-dialog textarea:focus {
  border-color: #356C78 !important;
  outline: 1px solid #356C78 !important;
}
#dx-support-dialog .dx-support-close {
  background: #ffffff !important;
  border: 1px solid #356C78 !important;
  border-radius: 6px !important;
  color: #356C78 !important;
}
#dx-support-dialog button[type="submit"] {
  background: #356C78 !important;
  border: 1px solid #356C78 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
}


/* Drexes: elimina lo sfondo crema interno del popup */
#dx-support-dialog .dx-checkout-support {
  background: #F2F7F8 !important;
}




/* Drexes: non ingrandire le immagini prodotto oltre la risoluzione disponibile */
.single-product .woocommerce-product-gallery__image > a {
  display: block;
  text-align: center;
}
.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}
