/* Sport Store: cart, checkout and order confirmation, classic WooCommerce */
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{font-size:15px;line-height:1.55;color:#16233c}
.woocommerce-cart .woocommerce table.shop_table,.woocommerce-checkout .woocommerce table.shop_table,.woocommerce-order-received .woocommerce table.shop_table{border:1px solid #dce4ef;border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden;width:100%;font-size:14px;background:#fff}
.woocommerce-cart .woocommerce table.shop_table th,.woocommerce-checkout .woocommerce table.shop_table th,.woocommerce-order-received .woocommerce table.shop_table th{background:#f2f6fb;color:#122443;font-weight:700;padding:15px 17px}
.woocommerce-cart .woocommerce table.shop_table td,.woocommerce-checkout .woocommerce table.shop_table td,.woocommerce-order-received .woocommerce table.shop_table td{padding:15px 17px;vertical-align:middle;border-top:1px solid #e8edf5}
.woocommerce-cart .woocommerce .cart_totals,.woocommerce-checkout .woocommerce #order_review,.woocommerce-order-received .woocommerce .woocommerce-order{max-width:100%}
.woocommerce-cart .woocommerce .cart_totals h2,.woocommerce-checkout .woocommerce h3,.woocommerce-order-received .woocommerce h2{font-size:clamp(20px,2vw,27px);line-height:1.3;color:#112443;margin:22px 0 15px}
.woocommerce-cart .woocommerce .button,.woocommerce-checkout .woocommerce .button,.woocommerce-order-received .woocommerce .button{border-radius:8px!important;padding:13px 18px!important;min-height:44px;font-size:14px!important;font-weight:700!important}
.woocommerce-cart .woocommerce .checkout-button,.woocommerce-checkout .woocommerce #place_order{background:#263f8f!important;color:#fff!important;border:0!important}
.woocommerce-cart .woocommerce .checkout-button:hover,.woocommerce-checkout .woocommerce #place_order:hover{background:#172d72!important}
.woocommerce-checkout .woocommerce .form-row input.input-text,.woocommerce-checkout .woocommerce .form-row select,.woocommerce-checkout .woocommerce .form-row textarea,.woocommerce-checkout .woocommerce .select2-container .select2-selection{min-height:43px;border:1px solid #cdd7e6;border-radius:7px;background:#fff;font-size:14px;padding:10px}
.woocommerce-checkout .woocommerce .form-row textarea{min-height:95px}
.woocommerce-checkout .woocommerce .form-row label{font-size:14px;font-weight:600;margin-bottom:5px}
.woocommerce-checkout .woocommerce #payment{background:#f4f6fa;border:1px solid #dce4ef;border-radius:12px;overflow:hidden}
.woocommerce-checkout .woocommerce #payment .payment_box{background:#fff;border:1px solid #e1e7f0;border-radius:8px}
.woocommerce-order-received .woocommerce .woocommerce-thankyou-order-received{font-size:18px;font-weight:700;color:#176b45;background:#eaf8f0;padding:17px 20px;border-radius:10px}
.woocommerce-order-received .woocommerce .woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:18px 0 25px;list-style:none}
.woocommerce-order-received .woocommerce .woocommerce-order-overview li{background:#f3f6fb;border:1px solid #e2e8f2;border-radius:9px;padding:14px 17px;margin:0;float:none;flex:1 1 145px;min-width:0;overflow-wrap:anywhere;font-size:12px}
.woocommerce-order-received .woocommerce .woocommerce-order-overview li strong{font-size:15px;margin-top:6px;display:block}
.woocommerce-order-received .woocommerce .woocommerce-customer-details address{border:1px solid #dce4ef;border-radius:12px;padding:20px;line-height:1.8;background:#fff}
.woocommerce-cart .woocommerce .product-thumbnail img{width:75px;height:auto;max-width:none}
@media(max-width:767px){.woocommerce-cart .woocommerce table.shop_table td,.woocommerce-checkout .woocommerce table.shop_table td{padding:12px}.woocommerce-checkout .woocommerce .col2-set .col-1,.woocommerce-checkout .woocommerce .col2-set .col-2{width:100%;float:none}.woocommerce-order-received .woocommerce .woocommerce-order-overview li{flex-basis:100%}}

/* Pagina ordine ricevuto: riepilogo e anteprime personalizzate */
.woocommerce-order-received .woocommerce-order{max-width:1180px;margin:auto}
.woocommerce-order-received .woocommerce-order-overview li{box-shadow:0 3px 12px rgba(18,36,67,.04);border-radius:12px!important}
.woocommerce-order-received .woocommerce-order-details,.woocommerce-order-received .woocommerce-customer-details{margin-top:28px}
.woocommerce-order-received .woocommerce-order-details__title{margin-bottom:18px!important}
.woocommerce-order-received .woocommerce-table--order-details td a{overflow-wrap:anywhere}
.sspo-received-photos{margin:28px 0 34px;padding:24px;background:#fff;border:1px solid #dce4ef;border-radius:16px;box-shadow:0 8px 28px rgba(20,40,76,.045)}
.sspo-received-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.sspo-received-heading h2{margin:0 0 5px!important;font-size:23px!important}
.sspo-received-heading p{margin:0;color:#5a6880;font-size:14px}
.sspo-received-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#e7f6ee;color:#147747;font-weight:800}
.sspo-received-product h3{font-size:16px;margin:0 0 14px;color:#162b4a}
.sspo-received-photos .sspo-preview-grid{display:flex;flex-wrap:wrap;gap:16px}
.sspo-received-photos .sspo-preview-card{width:200px;max-width:100%;border:1px solid #dce4ef;background:#f8fafc;border-radius:12px;padding:14px;text-align:center;box-sizing:border-box}
.sspo-received-photos .sspo-preview-label{font-weight:700;margin-bottom:9px;color:#162b4a}
.sspo-received-photos .sspo-saved-crop,.sspo-received-photos .sspo-original-preview{display:block;height:205px;max-width:100%;width:auto;object-fit:contain;margin:auto}
.sspo-received-photos .sspo-preview-note{display:block;font-size:12px;color:#607087;margin:9px 0}
.sspo-received-photos .sspo-original-link{display:inline-block;font-size:13px;font-weight:700;color:#24468e}
@media(max-width:600px){.sspo-received-photos{padding:16px}.sspo-received-photos .sspo-preview-card{width:calc(50% - 8px);padding:10px}.sspo-received-photos .sspo-saved-crop,.sspo-received-photos .sspo-original-preview{height:165px}}

/* v1.1.34 — Customer order confirmation: originals above, crops below */
.woocommerce-order-received .sspo-received-photos{clear:both;margin:32px 0;padding:clamp(18px,3vw,32px);border:1px solid #d9e3f1;border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(20,40,76,.06)}
.woocommerce-order-received .sspo-received-photos .sspo-received-product{margin-top:22px}
.woocommerce-order-received .sspo-received-photos .sspo-received-product>h3{margin:0 0 16px;font-size:18px}
.woocommerce-order-received .sspo-received-photos .sspo-photo-section>h5{font-size:16px;font-weight:750;color:#142b4c;margin:26px 0 12px}
.woocommerce-order-received .sspo-received-photos .sspo-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:820px;margin:0 auto}
.woocommerce-order-received .sspo-received-photos .sspo-preview-card{width:auto;max-width:none;min-width:0;padding:20px;border-radius:14px;background:#f7f9fd;border:1px solid #dce5f0}
.woocommerce-order-received .sspo-received-photos .sspo-preview-label{font-size:15px;margin-bottom:14px}
.woocommerce-order-received .sspo-received-photos .sspo-original-preview{height:240px;max-width:100%;object-fit:contain}
.woocommerce-order-received .sspo-received-photos .sspo-saved-crop{height:270px;max-width:100%;object-fit:contain}
.woocommerce-order-received .sspo-received-photos .sspo-preview-note{margin:12px 0 0}
@media(max-width:600px){.woocommerce-order-received .sspo-received-photos .sspo-preview-grid{gap:10px}.woocommerce-order-received .sspo-received-photos .sspo-preview-card{padding:10px}.woocommerce-order-received .sspo-received-photos .sspo-original-preview{height:165px}.woocommerce-order-received .sspo-received-photos .sspo-saved-crop{height:190px}.woocommerce-order-received .sspo-received-photos .sspo-preview-label{font-size:13px}}

/* v1.1.35 — anteprime compatte direttamente nel dettaglio prodotto dell'ordine ricevuto */
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos{max-width:650px;width:100%;margin:16px 0 4px;padding:16px;border-radius:12px;box-shadow:none}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading{gap:9px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading h3{font-size:17px;line-height:1.3;margin:0 0 3px;color:#142b4c}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading p{font-size:12px;line-height:1.45;margin:0;color:#52627a}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-photo-section>h5{font-size:13px;margin:14px 0 8px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-grid{max-width:540px;gap:10px;margin:0}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-card{padding:10px;border-radius:9px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-label{font-size:12px;margin-bottom:6px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-preview{height:125px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-saved-crop{height:150px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-link{font-size:11px;margin-top:7px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-note{font-size:11px;margin-top:7px}
@media(max-width:600px){.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos{padding:10px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-grid{gap:7px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-card{padding:6px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-preview{height:100px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-saved-crop{height:120px}}

/* v1.1.36 — Riepilogo personalizzazione ampio, ordinato e responsive */
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos{box-sizing:border-box;width:100%;max-width:none;margin:18px 0 8px;padding:clamp(14px,2.2vw,24px);border:1px solid #dbe4f0;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f9fbfe 100%);box-shadow:0 5px 20px rgba(18,38,74,.045)}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #e3eaf3}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-icon{flex:0 0 34px;width:34px;height:34px;font-size:17px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading h3{font-size:clamp(16px,1.65vw,21px);font-weight:800;margin:0 0 4px;line-height:1.25}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading p{font-size:12px;line-height:1.5}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-photo-section>h5{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.35;margin:20px 0 10px;color:#142b4c;font-weight:800}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-section-index{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e9f0fa;color:#234785;font-size:11px;letter-spacing:.03em}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;gap:14px;margin:0}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;max-width:none;width:100%;padding:15px 12px;border:1px solid #e0e8f2;border-radius:12px;background:#fff;box-shadow:0 2px 7px rgba(17,36,67,.025)}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-label{font-size:13px;margin:0 0 10px;color:#183356}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-preview{height:140px;width:auto;max-width:100%;object-fit:contain}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-saved-crop{height:165px;width:auto;max-width:100%;object-fit:contain}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-link{font-size:12px;margin-top:10px;text-decoration:underline;text-underline-offset:3px}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-note{font-size:11px;line-height:1.45;margin:10px 0 0;color:#64748b}
.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-photo-section>h5:not(:first-child){margin-top:23px}
@media(max-width:600px){.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos{padding:12px;margin:12px 0}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-grid{gap:8px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-card{padding:10px 6px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-original-preview{height:105px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-saved-crop{height:130px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-photos .sspo-preview-label{font-size:11px}.woocommerce-order-received .woocommerce-table--order-details .sspo-received-heading p{font-size:11px}}

/* v1.1.37: espande soltanto la riga del prodotto personalizzato nella pagina ordine ricevuto.
   I prezzi restano invariati nei metadati WooCommerce e nel riepilogo economico. */
@supports selector(tr:has(.sspo-received-photos)) {
 .woocommerce-order-received .woocommerce-table--order-details tbody tr:has(.sspo-received-photos){display:block;width:100%;box-sizing:border-box}
 .woocommerce-order-received .woocommerce-table--order-details tbody tr:has(.sspo-received-photos)>td.product-name{display:block;width:100%;box-sizing:border-box;padding:16px 18px}
 .woocommerce-order-received .woocommerce-table--order-details tbody tr:has(.sspo-received-photos)>td.product-total{display:none!important}
 .woocommerce-order-received .woocommerce-table--order-details tbody tr:has(.sspo-received-photos) .sspo-received-photos{width:100%;max-width:none;box-sizing:border-box}
}
