
/* ── Sfondo chiaro per la pagina configuratore (FacileDTF brand) ── */
body.page-template-page-templates-configuratore-ordine-php {
  background-color: #F4F7FA;
}

.dtf-page { padding: 40px 0 80px; }

.dtf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* In cima alla pagina non c'è più il titolo: c'è una riga sola con le regole
   del file, scritta piccola. Occupa un quarto dello spazio di prima, e dice al
   cliente quello che gli serve prima di trascinare la grafica. */
.dtf-page-header {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E9EEF5;
}
.dtf-regole {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748B;
}

/* Scritto ma non visibile: lo leggono i motori di ricerca e gli screen reader. */
.dtf-solo-lettori {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout a due colonne */
.dtf-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .dtf-layout { grid-template-columns: 1fr; }
  /* Senza questo la colonna non scende sotto il suo contenuto più largo
     (l'anteprima del foglio, larga almeno 320px, più i bordi delle schede):
     su un telefono da 390px la pagina diventava larga 447 e si trascinava
     di lato, con le schede tagliate a destra e il piede più stretto di tutto
     il resto. */
  .dtf-layout > * { min-width: 0; }
}

/* Card */
.dtf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.dtf-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dtf-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Upload zone */
.dtf-upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
  position: relative;
}
.dtf-upload-zone.drag-over,
.dtf-upload-zone:focus-within { border-color: #0057FF; background: #EAF1FF; }
.dtf-upload-zone.has-file { border-color: #0057FF; background: #EAF1FF; }
.dtf-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dtf-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  cursor: pointer;
  color: #6b7280;
  text-align: center;
}
.dtf-upload-label svg { color: #9ca3af; }
.dtf-upload-label strong { color: #0057FF; }
.dtf-upload-name { text-align: center; font-size: 0.85rem; color: #0057FF; font-weight: 600; margin: 4px 0 8px; min-height: 1em; }
.dtf-upload-status { font-size: 0.85rem; color: #374151; min-height: 1.2em; margin: 4px 0 0; text-align: center; }

/* Campi */
.dtf-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dtf-field { display: flex; flex-direction: column; gap: 6px; }
.dtf-field label { font-size: 0.8rem; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: .04em; }
.dtf-field input[type="number"],
.dtf-input-suffix input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.dtf-field input:focus,
.dtf-input-suffix input:focus { border-color: #0057FF; box-shadow: 0 0 0 3px rgba(0,87,255,.1); }
.dtf-input-suffix { display: flex; align-items: center; gap: 0; position: relative; }
.dtf-input-suffix span {
  position: absolute; right: 10px;
  font-size: 0.8rem; color: #9ca3af; pointer-events: none;
}
.dtf-hint { font-size: 0.78rem; color: #9ca3af; margin: 8px 0 0; }

/* ── Avviso file upload (non bloccante) ── */
.dtf-file-warning {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  background: #fffbeb; border: 1px solid #fcd34d;
  color: #92400e; padding: 12px 14px; border-radius: 8px;
  font-size: 0.88rem; margin-top: 10px; line-height: 1.4;
}
.dtf-file-warning svg { flex-shrink: 0; margin-top: 2px; color: #d97706; }

/* ── Errore file upload (blocco con WhatsApp) ── */
.dtf-file-error {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #b91c1c; padding: 12px 14px; border-radius: 8px;
  font-size: 0.88rem; margin-top: 10px; line-height: 1.4;
}
.dtf-file-error svg { flex-shrink: 0; margin-top: 2px; }
.dtf-wa-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #25d366; color: #fff;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; margin-top: 4px;
  transition: background .2s;
}
.dtf-wa-btn:hover { background: #1ebe5d; color: #fff; }

/* ── Box assistenza WhatsApp (in fondo ai comandi, colonna sinistra) ──
   Stava in fondo alla colonna destra, sotto "Aggiungi al carrello": su uno
   schermo piccolo bisognava scorrere fino in fondo per accorgersene. */
.dtf-wa-card {
  display: flex; align-items: center; gap: 16px;
  background: #25d366; color: #fff;
  padding: 18px 20px; border-radius: 12px;
  text-decoration: none; margin-top: 12px;
  transition: background .2s, transform .15s;
}
.dtf-wa-card:hover { background: #1ebe5d; color: #fff; transform: translateY(-1px); }
.dtf-wa-card svg { flex-shrink: 0; }
.dtf-wa-card div { display: flex; flex-direction: column; gap: 2px; }
.dtf-wa-card strong { font-size: 1rem; font-weight: 700; }
.dtf-wa-card span { font-size: 0.88rem; opacity: .9; }

/* ── Scrivici, dentro la finestra di analisi del file ──
   Sotto "Usa questo file": è lì che vengono i dubbi, davanti all'esito
   dell'analisi. Tiene il verde di WhatsApp ma in tono minore, perché il tasto
   che conta resta quello sopra. */
.dtf-modal-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 10px; padding: 13px 16px;
  border: none; border-radius: 8px;
  background: #25d366; color: #fff;
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .15s;
}
.dtf-modal-wa:hover { background: #1ebe5d; color: #fff; transform: translateY(-1px); }
.dtf-modal-wa:active { transform: translateY(0); }
.dtf-modal-wa:focus-visible { outline: 3px solid #25d366; outline-offset: 2px; }
.dtf-modal-wa svg { flex-shrink: 0; }

/* ── Lucchetto proporzioni ── */
.dtf-row-lock {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 8px;
  align-items: end;
}
.dtf-lock-col { display: flex; align-items: center; justify-content: center; padding-bottom: 2px; }
.dtf-lock-btn {
  background: none; border: 2px solid #d1d5db;
  border-radius: 8px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9ca3af; transition: border-color .2s, color .2s;
}
.dtf-lock-btn.active { border-color: #0057FF; color: #0057FF; }
.dtf-lock-btn:hover  { border-color: #0057FF; color: #0057FF; }

/* ── Rotazione con rettangoli visivi ── */
.dtf-rotation-group { display: flex; gap: 14px; }
.dtf-rotation-card  { cursor: pointer; }
.dtf-rotation-card input { display: none; }
.dtf-rotation-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px; text-align: center;
  color: #9ca3af;
  transition: border-color .2s, background .2s, color .2s;
}
.dtf-rotation-card input:checked + .dtf-rotation-box {
  border-color: #0057FF; background: #EAF1FF; color: #0057FF;
}
.dtf-rotation-box strong { font-size: 0.88rem; color: inherit; }
.dtf-rotation-box small  { font-size: 0.72rem; color: #6b7280; }

/* ── Canvas ── */
.dtf-canvas-card { overflow: hidden; }

/* Header canvas con selettore sfondo */
.dtf-canvas-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* Selettore sfondo */
.dtf-bg-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dtf-bg-label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 2px;
  white-space: nowrap;
}
.dtf-bg-btn {
  padding: 3px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.dtf-bg-btn:hover  { border-color: #0057FF; color: #0057FF; }
.dtf-bg-btn.active { border-color: #0057FF; background: #0057FF; color: #fff; }
.dtf-bg-hint { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.68rem; color: #b0b8c1; }

/* Versione compatta nel modal */
.dtf-bg-selector-sm { margin-bottom: 14px; }
.dtf-bg-selector-sm .dtf-bg-btn  { padding: 2px 8px; font-size: 0.68rem; }

.dtf-canvas-wrapper {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: transparent;
}
#dtf-canvas { display: block; width: 100%; height: auto; }

/* ── Errore calcolo ── */
.dtf-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #b91c1c; padding: 12px 16px; border-radius: 8px;
  font-size: 0.9rem; margin-bottom: 16px;
}
.hidden { display: none !important; }

/* ── Riepilogo ── */
.dtf-summary-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.dtf-summary-table td { padding: 7px 4px; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.dtf-summary-table td:last-child { text-align: right; font-weight: 600; }
.dtf-safety-margin { color: #6b7280; font-size: 0.85rem; font-weight: 400 !important; }
.dtf-total-len-row td { border-top: 2px solid #e5e7eb; font-weight: 700 !important; padding-top: 10px; }
.dtf-price-row td { padding-top: 14px; font-size: 1.05rem; color: #0057FF; border-bottom: none; }

/* Riga prezzi sotto l'etichetta */
.dtf-price-meta-label {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 4px;
}
.dtf-price-original { text-decoration: line-through; color: #9ca3af; font-size: 0.8rem; font-weight: 400; white-space: nowrap; }
.dtf-badge-discount {
  background: #dcfce7; color: #15803d;
  border-radius: 999px; padding: 2px 7px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.dtf-price-per-m { color: #0057FF; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
#dtf-res-price { color: #0057FF; font-size: 1.2rem; white-space: nowrap; }

/* Promozione di lancio. Sparisce da sola quando la promozione si spegne:
   il riquadro lo stampa il template solo se lo sconto è acceso. */
.dtf-promo-lancio {
  background: #f0fdf4; border: 1px solid #86efac;
  color: #15803d; padding: 10px 14px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 12px; text-align: center;
}

/* Spedizione gratis. Neutro finché manca qualcosa, verde quando ci siamo:
   il colore fa da conferma senza bisogno di leggere, ma il testo dice sempre
   tutto da solo, perche' chi non distingue i colori deve capire lo stesso. */
.dtf-spedizione-gratis {
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: #475569; padding: 10px 14px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 12px; text-align: center;
  transition: background .2s, border-color .2s, color .2s;
}
.dtf-spedizione-gratis strong { color: #0f172a; }
.dtf-spedizione-gratis--ok {
  background: #f0fdf4; border-color: #86efac; color: #15803d;
}
.dtf-spedizione-gratis--ok strong { color: #15803d; }

/* ── Bottone CTA ── */
.dtf-btn-primary {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #0057FF 0%, #2979FF 100%); color: #fff;
  border: none; border-radius: 10px;
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .1s;
  font-family: inherit;
}
.dtf-btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.dtf-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Mentre il file sale il bottone non e' spento, sta lavorando: resta
   leggibile, si muove piano e dice a che punto e'. Un bottone grigio che
   non risponde sembra un sito rotto; questo sembra un sito che lavora. */
.dtf-btn-primary.is-attesa:disabled {
  opacity: 1;
  cursor: progress;
  color: #eef4ff;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,.14) 0 12px,
      rgba(255,255,255,0)  12px 24px),
    linear-gradient(135deg, #46689f 0%, #587fbe 100%);
  background-size: 34px 34px, auto;
  animation: dtf-attesa 1s linear infinite;
}
@keyframes dtf-attesa {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 34px 0, 0 0; }
}

/* Un caricamento andato male e' un'altra cosa, e si vede che e' un'altra cosa. */
.dtf-btn-primary.is-guasto:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: #fff;
  background: linear-gradient(135deg, #b4232b 0%, #d1343d 100%);
}

@media (prefers-reduced-motion: reduce) {
  .dtf-btn-primary.is-attesa:disabled { animation: none; }
}
.dtf-secure-note { font-size: 0.78rem; color: #9ca3af; text-align: center; margin-top: 12px; }

/* ── File caricato — riga compatta ── */
.dtf-file-loaded {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #EAF1FF;
  border: 1px solid #0057FF;
  border-radius: 8px;
  color: #0057FF;
}
.dtf-file-loaded-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0046CC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dtf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  display: flex;
  align-items: center;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.dtf-file-remove:hover { color: #dc2626; background: rgba(239,68,68,.1); }

/* ── Sezione dimensioni inline (dentro card upload) ── */
.dtf-dimensions-inline {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 14px;
}
.dtf-subsection-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 12px;
}

/* ── Lista item multi-file ── */
.dtf-items-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.dtf-item-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 12px 10px;
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: #f9fafb;
}

/* Header: thumb + nome + tag + rimuovi */
.dtf-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dtf-item-thumb {
  width: 34px; height: 34px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: #DCE7FF;
  display: flex; align-items: center; justify-content: center;
}
.dtf-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dtf-item-name {
  flex: 1; font-size: 0.82rem; font-weight: 600;
  color: #0046CC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.dtf-item-warn-tag {
  font-size: 0.7rem; font-weight: 600;
  background: #fef3c7; color: #92400e;
  border-radius: 4px; padding: 1px 5px;
  white-space: nowrap; flex-shrink: 0; cursor: default;
}
.dtf-item-remove-btn {
  background: none; border: none; cursor: pointer;
  color: #ef4444; padding: 3px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center;
  transition: color .15s, background .15s;
}
.dtf-item-remove-btn:hover { color: #dc2626; background: rgba(239,68,68,.1); }

/* Stato del caricamento nel deposito, riga per riga */
.dtf-item-stato {
  font-size: 0.72rem; font-weight: 600;
  color: #0057FF;
  margin: 2px 0 4px;
  display: flex; align-items: center; gap: 5px;
  min-height: 14px;
}
.dtf-item-stato::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: dtf-stato-pulse 1.1s ease-in-out infinite;
}
.dtf-item-stato.is-fatto { color: #0DAF5C; }
.dtf-item-stato.is-fatto::before { animation: none; }
.dtf-item-stato.is-errore { color: #DF1B41; }
.dtf-item-stato.is-errore::before { animation: none; }
@keyframes dtf-stato-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* Righe controlli item: dimensioni | quantità+rotazione */
.dtf-item-dims-row,
.dtf-item-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dtf-item-dims-lbl,
.dtf-item-qty-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  width: 64px;
  flex-shrink: 0;
}
.dtf-item-w, .dtf-item-h {
  width: 70px; padding: 7px 8px;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 0.84rem; text-align: center;
  font-family: inherit; box-sizing: border-box;
  outline: none; transition: border-color .15s;
}
.dtf-item-w:focus, .dtf-item-h:focus { border-color: #0057FF; box-shadow: 0 0 0 2px rgba(0,87,255,.1); }
.dtf-item-lock-btn {
  background: none; border: 1.5px solid #d1d5db;
  border-radius: 6px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9ca3af; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.dtf-item-lock-btn.active { border-color: #0057FF; color: #0057FF; }
.dtf-item-lock-btn:hover  { border-color: #0057FF; color: #0057FF; }
.dtf-item-cm { font-size: 0.75rem; color: #9ca3af; flex-shrink: 0; }
.dtf-item-qty {
  width: 70px; padding: 7px 8px;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 0.84rem; text-align: center;
  font-family: inherit; box-sizing: border-box;
  outline: none; transition: border-color .15s;
}
.dtf-item-qty:focus { border-color: #0057FF; box-shadow: 0 0 0 2px rgba(0,87,255,.1); }
.dtf-item-rotate-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; color: #374151;
  font-family: inherit; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.dtf-item-rotate-btn:hover { border-color: #0057FF; color: #0057FF; }

/* Pulsante "+ Aggiungi file" */
.dtf-add-file-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 14px;
  border: 2px dashed #d1d5db; border-radius: 8px;
  background: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: #0057FF;
  font-family: inherit; margin-top: 4px;
  transition: border-color .2s, background .2s;
}
.dtf-add-file-btn:hover,
.dtf-add-file-btn.drag-over { border-color: #0057FF; background: #EAF1FF; }

/* ═══════════════════════════════════════════════════════════
   WOOCOMMERCE classico — Carrello & Checkout (shortcode)
   Target: .woocommerce-content (wrapper tema padre)
   Versione light: testo scuro su bianco
═══════════════════════════════════════════════════════════ */

.woocommerce-content,
.woocommerce-content * {
  color: var(--ink, #0D1B2A) !important;
}

/* Tabella articoli carrello */
.woocommerce-content table.shop_table,
.woocommerce-content table.cart {
  background: #fff !important;
  border: 1px solid var(--border, #E5E7EB) !important;
  border-radius: 8px !important;
}
.woocommerce-content table.shop_table td,
.woocommerce-content table.shop_table th,
.woocommerce-content table.cart td,
.woocommerce-content table.cart th {
  border-color: var(--border, #E5E7EB) !important;
  background: transparent !important;
  color: var(--ink, #0D1B2A) !important;
}

/* Totali */
.woocommerce-content .cart_totals table,
.woocommerce-page .cart-collaterals .cart_totals table {
  background: var(--surface, #F4F7FA) !important;
  border-radius: 8px !important;
  border: 1px solid var(--border, #E5E7EB) !important;
}
.woocommerce-content .cart_totals table td,
.woocommerce-content .cart_totals table th {
  border-color: var(--border, #E5E7EB) !important;
  color: var(--ink, #0D1B2A) !important;
}

/* Link */
.woocommerce-content a { color: var(--primary, #0057FF) !important; }
.woocommerce-content a:hover { color: var(--primary-hover, #0046CC) !important; }

/* Input coupon e qty */
.woocommerce-content input[type="text"],
.woocommerce-content input[type="number"] {
  background: #fff !important;
  border: 1px solid var(--border, #E5E7EB) !important;
  color: var(--ink, #0D1B2A) !important;
  border-radius: 6px !important;
}
.woocommerce-content input::placeholder { color: var(--muted, #5F6E7A) !important; }

/* Bottone aggiorna/coupon */
.woocommerce-content .button,
.woocommerce-content button[name="update_cart"],
.woocommerce-content .actions .button {
  background: #fff !important;
  color: var(--ink, #0D1B2A) !important;
  border: 1px solid var(--border, #E5E7EB) !important;
  border-radius: 6px !important;
}
.woocommerce-content .button:hover {
  background: var(--surface, #F4F7FA) !important;
  border-color: var(--primary, #0057FF) !important;
  color: var(--primary, #0057FF) !important;
}

/* ── Bottone "Procedi al pagamento" — gradient brand ── */
.woocommerce-content .wc-proceed-to-checkout a.checkout-button,
.woocommerce-content a.checkout-button,
.wc-proceed-to-checkout a.checkout-button {
  background: var(--brand-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
  transition: opacity .2s !important;
}
.woocommerce-content .wc-proceed-to-checkout a.checkout-button *,
.woocommerce-content a.checkout-button * { color: #fff !important; }
.woocommerce-content .wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
  opacity: 0.9 !important;
  color: #fff !important;
}

/* ── Tasto "Aggiungi altri file" nel carrello ── */
.dtf-add-more-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 10px;
  background: transparent !important;
  color: var(--primary, #0057FF) !important;
  border: 2px solid var(--primary, #0057FF) !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background .2s, color .2s;
  box-sizing: border-box;
}
.dtf-add-more-btn:hover {
  background: var(--primary, #0057FF) !important;
  color: #fff !important;
}

/* Fix emoji size: WordPress sostituisce le emoji Unicode con <img class="emoji">,
   queste regole le ridimensionano alla dimensione del testo circostante */
img.emoji {
  display: inline !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.05em 0 0.1em !important;
  vertical-align: -0.1em !important;
  border: none !important;
  box-shadow: none !important;
}

/* Via d'uscita quando il caricamento non riesce per colpa nostra: il
   cliente non deve restare lì senza sapere cosa fare. */
.dtf-aiuto-wa {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}
.dtf-aiuto-wa a {
  color: inherit;
  text-decoration: underline;
}
.dtf-item-stato .dtf-aiuto-wa {
  font-size: 0.78rem;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   MODAL — Analisi file upload
════════════════════════════════════════════════════════════ */

.dtf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: dtfFadeIn .2s ease;
}
.dtf-modal-overlay.hidden { display: none !important; }

@keyframes dtfFadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes dtfSlideUp { from { transform:translateY(20px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes dtfSpin    { to { transform:rotate(360deg); } }

/* Due terzi dello schermo: l'anteprima del file deve vedersi davvero.
   Il tetto a 1280px serve sui monitor molto grandi, dove due terzi
   diventerebbero una finestra larga come un foglio A3. */
.dtf-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: min(1280px, 66.66vw);
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: dtfSlideUp .28s ease;
  transition: max-width .25s ease;
  max-height: 90dvh;
  overflow-y: auto;
}

/* Il riquadro prende il fuoco all'apertura, per farsi leggere dai lettori di
   schermo: il contorno del browser su una finestra intera sembrerebbe un
   difetto grafico. I bottoni e le spunte dentro il loro contorno lo tengono. */
.dtf-modal:focus { outline: none; }

/* Sotto i 1100px due terzi sarebbero troppo stretti per due colonne:
   la finestra torna a occupare quasi tutto lo schermo, come su mobile. */
@media (max-width: 1100px) {
  .dtf-modal { max-width: 620px; }
}

/* Durante il caricamento non c'è niente da vedere: barra e nome file
   starebbero persi in una finestra larga. */
.dtf-modal.dtf-modal-stretta { max-width: 500px; }

.dtf-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: #f3f4f6; border: none; border-radius: 50%;
  cursor: pointer; font-size: 20px; line-height: 1;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  padding: 0;
}
.dtf-modal-close:hover { background: #e5e7eb; color: #111; }

.dtf-modal-title {
  font-size: 1.15rem; font-weight: 700;
  color: #0D1B2A;
  margin: 0 40px 20px 0;
}

/* Phase visibility */
.dtf-modal-phase.hidden { display: none; }

/* ── Phase 1: upload progress ── */
.dtf-modal-upload-visual {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 16px 0 8px;
}
.dtf-spinner-ring {
  width: 52px; height: 52px;
  border: 4px solid #e5e7eb;
  border-top-color: #0057FF;
  border-radius: 50%;
  animation: dtfSpin .75s linear infinite;
}
.dtf-modal-status-text { font-size: 0.95rem; color: #374151; margin: 0; text-align: center; }
.dtf-modal-filename {
  font-size: 0.8rem; color: #9ca3af;
  text-align: center; margin: 10px 0 0;
  word-break: break-all;
}
.dtf-progress-track {
  height: 6px; background: #e5e7eb; border-radius: 99px;
  overflow: hidden; margin: 6px 0;
}
.dtf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0057FF 0%, #2979FF 100%);
  border-radius: 99px;
  transition: width .18s ease;
  width: 0%;
}

/* ── Phase 2: result ── */

/* Su schermo largo: anteprima a sinistra, controlli a destra. */
.dtf-modal-griglia { display: block; }

@media (min-width: 1101px) {
  .dtf-modal-griglia {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr);
    gap: 28px;
    align-items: start;
  }
  /* La colonna dell'anteprima resta visibile mentre si scorrono i controlli */
  .dtf-modal-col-anteprima {
    position: sticky;
    top: 0;
  }
}

/* Il riquadro è la "luce" in cui sta il file: sfondo neutro, così si vede
   dove finisce il file. La scacchiera sta sul file, non intorno. */
.dtf-modal-preview-wrap {
  background: #eef1f5;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  /* Su una colonna sola: almeno 220px, ma se lo schermo è alto se ne prende
     un terzo, così l'anteprima non resta un francobollo. */
  height: clamp(220px, 34dvh, 380px);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  margin-bottom: 6px;
  /* scrollbar sottile */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
/* Con più spazio a disposizione l'anteprima si prende metà schermo in altezza */
@media (min-width: 1101px) {
  .dtf-modal-preview-wrap { height: min(58dvh, 620px); }
}
.dtf-modal-preview-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.dtf-modal-preview-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }
/* Il JS disegna il file alla sua risoluzione: qui lo rimpiccioliamo quanto
   basta per farlo stare tutto nel riquadro, senza tagli né deformazioni. */
.dtf-modal-preview-canvas {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  background: repeating-conic-gradient(#d1d5db 0% 25%, #f0f0f0 0% 50%)
    0 0 / 14px 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}
.dtf-modal-preview-note {
  font-size: 0.75rem; color: #9ca3af;
  margin: 0 0 16px; text-align: center;
}

/* ── Check list ── */
.dtf-checks-list {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.dtf-check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: #374151;
}
.dtf-chk-label { flex: 1; }
.dtf-chk-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: border-color .25s, background .25s;
}
.dtf-chk-icon.spinning {
  border-color: #0057FF; border-top-color: transparent;
  animation: dtfSpin .65s linear infinite;
}
.dtf-chk-icon.ok   { background: #10b981; border-color: #10b981; color: #fff; }
.dtf-chk-icon.ok::after  { content: '✓'; }
.dtf-chk-icon.warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.dtf-chk-icon.warn::after { content: '!'; }
.dtf-chk-icon.err  { background: #ef4444; border-color: #ef4444; color: #fff; }
.dtf-chk-icon.err::after  { content: '✗'; }

.dtf-chk-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.dtf-chk-badge.green  { background: #d1fae5; color: #065f46; }
.dtf-chk-badge.orange { background: #fef3c7; color: #92400e; }
.dtf-chk-badge.red    { background: #fee2e2; color: #991b1b; }
.dtf-chk-badge.gray   { background: #f3f4f6; color: #6b7280; }

/* ── Tinte piatte / Pantone rilevate ────────────────────────── */
.dtf-spot-colors {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #FFF7E6;
  border: 1px solid #FCD34D;
  border-radius: 10px;
}
.dtf-spot-colors.hidden { display: none; }

.dtf-spot-colors-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dtf-spot-colors-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #78350f;
  letter-spacing: .02em;
}
.dtf-spot-colors-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(146,64,14,.12);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.dtf-spot-colors-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dtf-spot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: #fff;
  border: 1px solid rgba(146,64,14,.18);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #1f2937;
  max-width: 100%;
}
.dtf-spot-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.dtf-spot-name {
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.dtf-spot-colors-note {
  font-size: 0.74rem;
  color: #92400e;
  line-height: 1.45;
  margin: 8px 0 0;
}
.dtf-spot-colors-note a {
  color: #92400e;
  font-weight: 700;
  text-decoration: underline;
}
.dtf-spot-colors-note a:hover { color: #78350f; }

/* ── Alerts ── */
.dtf-modal-alerts { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.dtf-modal-alert {
  background: #fffbeb; border: 1px solid #fbbf24;
  color: #78350f; padding: 9px 12px; border-radius: 8px;
  font-size: 0.82rem; line-height: 1.45;
}
.dtf-modal-alert.info  { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.dtf-modal-alert.warn  { background: #fffbeb; border-color: #fbbf24; color: #78350f; }
.dtf-modal-alert.error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* ── Icona info "i" + vignetta (tooltip contestuale) ── */
.dtf-info-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; vertical-align: middle; cursor: help; outline: none;
}
.dtf-info-tip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 9999px;
  background: #eff6ff; color: #0057ff; border: 1px solid #93c5fd;
  font: italic 700 11px/1 Georgia, 'Times New Roman', serif; user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dtf-info-tip:hover .dtf-info-tip-icon,
.dtf-info-tip:focus-visible .dtf-info-tip-icon {
  background: #0057ff; color: #fff; border-color: #0057ff;
}
/* Variante icona più grande (es. accanto alla conferma "bianco") */
.dtf-info-tip-lg .dtf-info-tip-icon { width: 20px; height: 20px; font-size: 13px; }

.dtf-info-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: auto;
  transform: translateY(4px);
  width: max-content; max-width: 240px;
  background: #0d1b2a; color: #fff;
  font-size: 12px; line-height: 1.45; font-weight: 400; font-style: normal; text-align: left;
  padding: 8px 10px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13,27,42,.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease; z-index: 30;
}
.dtf-info-bubble::after {
  content: ''; position: absolute; top: 100%;
  left: var(--arrow-left, 16px); margin-left: -5px;
  border: 5px solid transparent; border-top-color: #0d1b2a;
}
.dtf-info-tip:hover .dtf-info-bubble,
.dtf-info-tip:focus .dtf-info-bubble,
.dtf-info-tip:focus-within .dtf-info-bubble {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ── Colla anti-sublimazione (Sublistop) ── */
.dtf-sublistop-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.dtf-sublistop-row:hover { border-color: #93c5fd; }
.dtf-sublistop-row:has(.dtf-sublistop-check:checked) {
  border-color: #0057FF; background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(0,87,255,.08);
}
.dtf-sublistop-check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  accent-color: #0057FF; cursor: pointer;
}
.dtf-sublistop-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.dtf-sublistop-title {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  font-weight: 700; font-size: .95rem; color: #0d1b2a;
}
.dtf-sublistop-price {
  flex-shrink: 0; align-self: center; white-space: nowrap;
  font-weight: 700; font-size: .9rem; color: #0057FF;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9999px;
  padding: 4px 10px;
}

/* ── I due servizi che si possono chiedere sul file ──
   Affiancati quando c'è spazio, impilati sul telefono. Si somigliano
   apposta: sono la stessa domanda ("questo file va sistemato?") con due
   risposte, una che si spunta e una che porta su WhatsApp. */
.dtf-servizi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.dtf-servizio {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 13px;
  border: 1px solid #E3E9F2; border-radius: 10px;
  background: #F8FAFD;
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .15s;
}
/* Titolo a sinistra, prezzo in alto a destra: il prezzo va visto subito, e
   in fondo alla scheda finirebbe schiacciato dall'etichetta del pulsante. */
.dtf-servizio-testa {
  display: flex; align-items: flex-start; gap: 8px;
}
.dtf-servizio-titolo {
  flex: 1; min-width: 0;
  font-size: 0.86rem; font-weight: 700; color: #0F172A; line-height: 1.3;
}
.dtf-servizio-testo {
  font-size: 0.78rem; color: #64748B; line-height: 1.4;
}
.dtf-servizio-azione {
  display: flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 10px;
}
.dtf-servizio-scelta { font-size: 0.8rem; font-weight: 700; color: #0057FF; }
.dtf-servizio-prezzo {
  flex-shrink: 0;
  font-size: 0.72rem; font-weight: 700; color: #0F172A; white-space: nowrap;
  background: #fff; border: 1px solid #E3E9F2; border-radius: 9999px;
  padding: 3px 9px;
}

/* Lo sfondo è una spunta: si clicca tutta la scheda, non solo il quadratino. */
.dtf-servizio-sfondo { cursor: pointer; }
.dtf-servizio-sfondo:hover { border-color: #BFD4FF; background: #F2F6FF; }
.dtf-servizio-sfondo input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; flex-shrink: 0;
  accent-color: #0057FF; cursor: pointer;
}
.dtf-servizio-sfondo:has(input:checked) { border-color: #0057FF; background: #EFF5FF; }

/* WhatsApp porta fuori dal sito, quindi si veste del suo verde. */
.dtf-servizio-wa .dtf-servizio-scelta { color: #128C4A; }
.dtf-servizio-wa svg { flex-shrink: 0; color: #25D366; }
.dtf-servizio-wa:hover { border-color: #25D366; background: #F1FCF5; transform: translateY(-1px); }
.dtf-servizio-wa:focus-visible { outline: 3px solid #25D366; outline-offset: 2px; }

/* ── Confirmations ── */
.dtf-modal-confirmations {
  display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px;
}
.dtf-confirm-row {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 0.84rem; color: #374151; cursor: pointer; line-height: 1.4;
}
.dtf-confirm-row input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px;
  accent-color: #0057FF; cursor: pointer;
}
.dtf-modal-confirm-btn {
  margin-top: 0;
  background: linear-gradient(135deg, #0057FF 0%, #2979FF 100%);
  color: #fff;
}
.dtf-modal-confirm-btn:disabled {
  background: linear-gradient(135deg, #0057FF 0%, #2979FF 100%);
  color: #fff;
  opacity: 0.35;
  cursor: not-allowed;
}
.dtf-modal-confirm-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   MOBILE — Responsività < 600px
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .dtf-modal {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 18px 18px;
  }

  /* Prevenire zoom su iOS quando si focalizzano gli input number */
  .dtf-item-w,
  .dtf-item-h,
  .dtf-item-qty,
  .dtf-field input[type="number"],
  .dtf-input-suffix input[type="number"] {
    font-size: 16px;
  }

  /* Schede meno imbottite: i 24px per lato mangiavano un settimo dello
     schermo e stringevano l'anteprima */
  .dtf-card { padding: 18px 16px; }

  /* Canvas preview scrollabile orizzontalmente se troppo largo */
  .dtf-canvas-wrapper {
    overflow-x: auto;
  }
  #dtf-canvas {
    min-width: 320px;
  }

  /* I tasti dello sfondo (Nero/Bianco/Trasparente) uscivano dalla scheda:
     ora vanno a capo sotto la scritta SFONDO */
  .dtf-bg-selector { flex-wrap: wrap; row-gap: 6px; }

  /* Lista item compatta */
  .dtf-item-dims-row,
  .dtf-item-qty-row {
    flex-wrap: wrap;
  }

  /* Griglia date spedizione: scroll orizzontale su schermi stretti */
  .dtf-ship-grid {
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    overflow-x: auto;
  }
}

/* Prezzo al metro di fianco al totale. Con lo sconto attivo il listino
   resta visibile barrato, così si vede quanto si risparmia. */
.dtf-prezzo-metro {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
}
.dtf-prezzo-metro s { opacity: .7; }
/* L'imponibile sotto al totale: deve leggersi, ma senza rubare l'occhio al
   numero che il cliente paga davvero. */
.dtf-prezzo-netto {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}
.dtf-prezzo-scontato { color: #0057FF; }
/* Quanto si risparmia, in percentuale: il pallino verde accanto al prezzo. */
.dtf-prezzo-sconto {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
}
.dtf-prezzo-motivo {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #0057FF;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Nota sull'ora di taglio, di fianco al titolo: spiega perché conviene
   ordinare in mattinata, senza rubare spazio alle date. */
.dtf-ship-cutoff {
  font-size: 0.76rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .dtf-ship-cutoff { display: block; white-space: normal; margin-top: 2px; }
}

/* ─── Data di spedizione ─────────────────────────────────────── */
.dtf-ship-dates {
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #F9FBFD;
}
.dtf-ship-dates-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0D1B2A;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.dtf-ship-dates-sub {
  margin: 4px 0 12px;
  font-size: 0.8rem;
  color: #6b7280;
}
.dtf-ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}
.dtf-ship-loading {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 8px 0;
}
.dtf-ship-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dtf-ship-option:hover:not(.is-soldout):not(.is-selected) {
  border-color: #0057FF;
}
.dtf-ship-option.is-selected {
  border-color: #0057FF;
  background: #EAF1FF;
  box-shadow: 0 0 0 3px rgba(0,87,255,.1);
}
.dtf-ship-day {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.15;
}
.dtf-ship-option.is-selected .dtf-ship-day { color: #0057FF; }
.dtf-ship-date {
  font-size: 0.78rem;
  color: #6b7280;
}
.dtf-ship-status {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  color: #16a34a;
}
.dtf-ship-option.is-soldout {
  cursor: not-allowed;
  background: #f9fafb;
  border-color: #e5e7eb;
  opacity: .8;
}
.dtf-ship-option.is-soldout .dtf-ship-day,
.dtf-ship-option.is-soldout .dtf-ship-date { color: #9ca3af; }
.dtf-ship-option.is-soldout .dtf-ship-status { color: #b91c1c; }
.dtf-ship-selected {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #0D1B2A;
  padding: 10px 12px;
  background: #EAF1FF;
  border-radius: 8px;
}
.dtf-ship-selected.hidden { display: none; }

/* Bonifico: la data scelta qui vale solo se i soldi arrivano subito.
   Va detto sotto le date, ma senza riquadri gialli da avviso di pericolo:
   è una condizione di vendita, non un errore del cliente. */
.dtf-ship-nota-bonifico {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 3px solid #C7D7F5;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #55606f;
}
.dtf-ship-nota-bonifico strong { color: #0D1B2A; }