/* =============================================
   SHOP STYLES - SpotiParts
   Catalogo, Carrello, Checkout
   ============================================= */

/* Shop Section */
.shop-section {
  padding: 120px 0 80px;
  min-height: 80vh;
}

.shop-title {
  text-align: center;
  font-size: 2.2rem;
  color: #002b5c;
  margin-bottom: 10px;
}

/* Filtri */
.shop-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #ff6b00;
}

/* Griglia Prodotti */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.product-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #999;
  font-size: 0.9rem;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-sku {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 5px;
  font-family: monospace;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #002b5c;
  margin-bottom: 8px;
  line-height: 1.3;
  flex: 1;
}

.product-card-brand {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff6b00;
}

.price-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.product-card-stock {
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.stock-available {
  color: #28a745;
}

.stock-low {
  color: #ffc107;
}

.stock-out {
  color: #dc3545;
}

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: #002b5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-cart:hover {
  background: #003d82;
}

.btn-add-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-add-cart.added {
  background: #28a745;
}

/* Paginazione */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination button {
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination button.active {
  background: #002b5c;
  color: #fff;
  border-color: #002b5c;
}

.pagination button:hover:not(.active) {
  border-color: #ff6b00;
  color: #ff6b00;
}

/* Cart Badge */
.cart-badge {
  background: #ff6b00;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
}

.cart-link {
  position: relative;
}

nav a.active {
  color: #ff6b00;
}

/* =============================================
   CARRELLO
   ============================================= */

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.cart-table th {
  background: #f5f5f5;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #002b5c;
  border-bottom: 2px solid #eee;
}

.cart-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
}

.cart-item-name {
  font-weight: 600;
  color: #002b5c;
}

.cart-item-sku {
  font-size: 0.8rem;
  color: #999;
  font-family: monospace;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-qty button:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.cart-qty span {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: color 0.2s;
}

.cart-remove:hover {
  color: #a71d2a;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.cart-actions {
  display: flex;
  gap: 15px;
}

.btn-outline {
  padding: 12px 25px;
  background: #fff;
  color: #002b5c;
  border: 2px solid #002b5c;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: #002b5c;
  color: #fff;
}

.cart-totals {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  min-width: 320px;
}

.cart-totals h3 {
  color: #002b5c;
  margin-bottom: 15px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #555;
}

.totals-row.total {
  border-top: 2px solid #002b5c;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #002b5c;
}

.free-shipping-note {
  font-size: 0.85rem;
  color: #28a745;
  margin-top: 10px;
}

.btn-checkout-big {
  width: 100%;
  margin-top: 15px;
  padding: 15px;
  font-size: 1.1rem;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty h2 {
  color: #002b5c;
  margin-bottom: 15px;
}

.cart-empty p {
  color: #666;
  margin-bottom: 25px;
}

/* =============================================
   CHECKOUT
   ============================================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.checkout-section-title {
  color: #002b5c;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  flex: 1;
  margin-bottom: 18px;
}

.form-group-small {
  max-width: 100px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b00;
}

.checkbox-group {
  margin: 20px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff6b00;
}

.billing-fields {
  margin-bottom: 20px;
}

/* Stripe Element */
.payment-section {
  margin-bottom: 25px;
}

.stripe-element {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.3s;
}

.stripe-element.StripeElement--focus {
  border-color: #ff6b00;
}

.stripe-errors {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 8px;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Checkout Summary */
.checkout-summary {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  position: sticky;
  top: 100px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.checkout-item-name {
  flex: 1;
  color: #333;
}

.checkout-item-qty {
  color: #999;
  margin: 0 10px;
}

.checkout-item-price {
  font-weight: 600;
  color: #002b5c;
}

.summary-totals {
  margin-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #555;
}

.summary-total {
  border-top: 2px solid #002b5c;
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: #002b5c;
}

.iva-note {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  margin-top: 5px;
}

/* Order Confirmation */
.order-confirmation {
  text-align: center;
  padding: 60px 20px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.order-confirmation h2 {
  color: #002b5c;
  margin-bottom: 15px;
}

.order-confirmation p {
  color: #666;
  margin-bottom: 10px;
}

.order-confirmation .btn {
  margin-top: 25px;
}

/* Utilities */
.hidden {
  display: none !important;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #999;
  font-size: 1.1rem;
}

.no-products {
  text-align: center;
  padding: 60px;
  color: #666;
}

.no-products h3 {
  color: #002b5c;
  margin-bottom: 10px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #002b5c;
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .cart-footer {
    flex-direction: column;
  }

  .cart-totals {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .shop-filters {
    flex-direction: column;
  }

  .filter-group {
    min-width: auto;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group-small {
    max-width: none;
  }

  /* Cart table responsive */
  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 8px 0;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #002b5c;
  }

  .cart-item-info {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   B2B: AUTH, PREZZI RISERVATI, BONIFICO
   ============================================= */

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.auth-card-wide {
  max-width: 720px;
}

.auth-card .shop-title {
  text-align: center;
}

.auth-card .section-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-error {
  background: #fdecea;
  color: #b02a37;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.auth-success {
  text-align: center;
  padding: 1rem 0;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.auth-footer p {
  margin-bottom: 0.75rem;
  color: #666;
}

.price-locked {
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
}

.btn-add-cart.btn-locked {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #f0f2f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-add-cart.btn-locked:hover {
  background: #e4e7ec;
}

.bank-transfer-box {
  background: #f6f9fc;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 1rem;
  text-align: left;
}

.bank-transfer-box p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.vehicle-search {
  background: #1a2b48;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
}

#checkout-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

/* Categorie a pulsanti (catalogo) */
.category-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cat-btn {
  padding: 10px 22px;
  border: 2px solid #1a2b48;
  border-radius: 25px;
  background: #fff;
  color: #1a2b48;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-btn:hover {
  background: #eef2f8;
}

.cat-btn.active {
  background: #1a2b48;
  color: #fff;
}

.cat-btn .cat-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #ff6b00;
  color: #fff;
  font-size: 0.78rem;
}

/* Nota IVA sui prezzi B2B */
.price-vat-note {
  font-size: 0.78rem;
  color: #888;
  font-weight: 500;
  margin-left: 4px;
}

/* =============================================
   AREA RISERVATA CLIENTE
   ============================================= */

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.account-header .shop-title,
.account-header .section-subtitle {
  text-align: left;
}

.account-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e3e7ee;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}

.account-tab {
  padding: 12px 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #667;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.account-tab.active {
  color: #1a2b48;
  border-bottom-color: #ff6b00;
}

.orders-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.orders-custom-range {
  display: flex;
  gap: 6px;
  align-items: center;
}

.orders-custom-range .filter-input {
  max-width: 160px;
  padding: 8px 10px;
}

.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.address-card {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  padding: 16px;
  line-height: 1.5;
}

.address-label {
  font-weight: 700;
  color: #1a2b48;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.address-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.address-actions .btn-outline {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Progressivo spedizione gratuita nel carrello */
.free-shipping-box {
  background: #fff7ee;
  border: 1px solid #ffd9b0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}

.free-shipping-box.ok {
  background: #e9f9ef;
  border-color: #9fdcb5;
}

.free-shipping-box p {
  margin: 0 0 8px;
}

.free-shipping-bar {
  height: 10px;
  background: #f0e2d2;
  border-radius: 5px;
  overflow: hidden;
}

.free-shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ff9a3c);
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* Badge e lista codici OE */
.oem-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  padding: 4px 12px;
  border: 1px solid #1a2b48;
  border-radius: 14px;
  background: #fff;
  color: #1a2b48;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.oem-badge:hover {
  background: #eef2f8;
}

.oem-count {
  background: #ff6b00;
  color: #fff;
  border-radius: 10px;
  padding: 0 7px;
  font-size: 0.72rem;
}

.oem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  max-height: 110px;
  overflow-y: auto;
}

.oem-chip {
  background: #f0f2f5;
  border: 1px solid #dde2ea;
  border-radius: 5px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 0.76rem;
  cursor: copy;
}

.oem-chip:hover {
  background: #e2e8f2;
}

/* Placeholder catalogo prima della ricerca */
.catalog-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed #d8e0ec;
}

.catalog-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.catalog-placeholder h3 {
  color: #1a2b48;
  margin-bottom: 8px;
}

.catalog-placeholder p {
  color: #667;
  line-height: 1.6;
}

/* Centrature carrello e badge OE + codice vecchio */
.btn-checkout-big {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.oem-badge {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  justify-content: center;
}

.sku-old {
  color: #999;
  font-size: 0.85em;
  font-style: italic;
}

/* Logo immagine nell'header (SVG bianco/arancio direttamente sul blu) */
.logo-img {
  display: flex;
  align-items: center;
}

.logo-img img {
  height: 46px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-img img { height: 34px; }
}

/* =============================================
   VISTA GRIGLIA / LISTA nel catalogo
   ============================================= */

.view-toggle {
  display: flex;
  gap: 6px;
}

.view-toggle button {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  color: #667;
  line-height: 1;
}

.view-toggle button.active {
  background: #1a2b48;
  border-color: #1a2b48;
  color: #fff;
}

/* Lista: foto | titolo/codici | prezzo/carrello */
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}

.list-view .product-card-image,
.list-view .product-card-image.no-image {
  width: 120px;
  height: 120px;
  min-width: 120px;
  padding: 4px;
}

.list-view .product-card-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 230px;
  column-gap: 20px;
  row-gap: 4px;
  align-items: center;
  padding: 0;
}

.list-view .product-card-sku,
.list-view .product-card-name,
.list-view .product-card-brand,
.list-view .oem-list { grid-column: 1; }

.list-view .oem-badge {
  grid-column: 1;
  margin: 0;
  justify-self: start;
}

.list-view .product-card-price {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  margin: 0;
}

.list-view .product-card-stock {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.list-view .btn-add-cart {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  width: 230px;
  margin: 0;
}

@media (max-width: 700px) {
  .list-view .product-card { flex-direction: column; }
  .list-view .product-card-body { grid-template-columns: 1fr; }
  .list-view .product-card-price,
  .list-view .product-card-stock,
  .list-view .btn-add-cart { grid-column: 1; justify-self: stretch; width: 100%; text-align: left; }
}

/* Foto reali nelle card categorie della home */
.prodotto-foto {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.prodotto-foto img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  display: block;
}

/* Modal dettaglio ordine (area cliente) */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 2000;
  overflow-y: auto;
}

.sp-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  padding: 24px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-modal-head h2 { margin: 0; color: #1a2b48; }

.sp-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.order-totals-box {
  max-width: 320px;
  margin: 14px 0 14px auto;
}

.order-row:hover { background: #f6f9fc; }

.order-detail-hint {
  color: #ff6b00;
  font-size: 0.82em;
  font-weight: 600;
  margin-left: 6px;
}

/* Tasto PDF lettera di vettura nella lista ordini */
.ldv-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #c0392b;
  background: #fdecea;
  color: #c0392b;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ldv-pill:hover {
  background: #c0392b;
  color: #fff;
}

/* Box consegna prevista */
.delivery-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef7ff;
  border: 1px solid #bfe0ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.delivery-icon { font-size: 1.6rem; line-height: 1; }

.delivery-box strong { color: #1a2b48; }

.delivery-note {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.delivery-box-sm {
  background: #eef7ff;
  border: 1px solid #bfe0ff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Box lettera di vettura (dropshipping) */
.ldv-box {
  background: #fff7ee;
  border: 1px solid #ffd9b0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}

/* Avvisi Abakus (spediamo noi, 4-5 gg) */
.abakus-note {
  background: #eef6ff;
  border: 1px solid #bcdcff;
  border-radius: 6px;
  padding: 6px 9px;
  margin: 6px 0;
  font-size: 0.78rem;
  color: #1a4b7a;
  line-height: 1.4;
}

.delivery-box.abakus {
  background: #eef6ff;
  border-color: #bcdcff;
}

.abakus-tag {
  display: inline-block;
  background: #1a4b7a;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.72rem;
  margin-left: 4px;
}
