/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.4.1755441702
Updated: 2025-08-17 14:41:42

*/

/* Card quantità libro – con immagine, responsive */
.dms-qty{
  display:grid;
  grid-template-columns: 1fr auto;   /* meta a sinistra, controlli a destra */
  gap:14px;
  align-items:center;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:16px;
  background:#fff;
  margin:8px 0 18px;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

/* blocco immagine+titolo */
.dms-qty__meta{
  display:flex; 
  gap:14px; 
  align-items:center;
  min-width:0;           /* evita overflow del titolo su schermi stretti */
}

.dms-qty__img img{
  width:64px; 
  height:auto; 
  display:block;
  border-radius:6px; 
  box-shadow:0 0 0 1px rgba(0,0,0,.06) inset;
}

.dms-qty__title{
  font-size:18px; 
  line-height:1.3; 
  margin:0 0 4px; 
  font-weight:700;
  word-break:break-word; /* titolo lungo va a capo bene */
}

.dms-qty__price{
  font-size:16px; 
  font-weight:600; 
  color:#111; 
  margin:0;
}

/* controlli quantità */
.dms-qty__controls{
  display:flex; 
  align-items:center; 
  gap:8px; 
  margin:0;
}

.dms-qty__btn{
  width:40px; 
  height:40px; 
  border-radius:10px; 
  border:1px solid #ddd; 
  background:#fafafa;
  font-size:22px; 
  line-height:1; 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  cursor:pointer;
  transition:background .15s ease, transform .05s ease;
}
.dms-qty__btn:hover{ background:#f2f2f2; }
.dms-qty__btn:active{ transform: translateY(1px); }

/* input quantità: dimensione fissa e NO frecce */
.dms-qty__input{
  width:62px; 
  height:40px; 
  text-align:center; 
  border:1px solid #ddd; 
  border-radius:10px; 
  font-weight:600;
  font-size:16px;
  /* rimuove frecce */
  appearance: textfield;
  -moz-appearance: textfield;
}

/* rimuove le frecce su WebKit (Chrome/Safari/iOS) dentro il nostro box */
.dms-qty input[type="number"]::-webkit-outer-spin-button,
.dms-qty input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none; 
  margin:0;
}

/* focus accessibile */
:root{ --dms-accent:#c0160e; }
.dms-qty__input:focus,
.dms-qty__btn:focus{
  outline:2px solid color-mix(in srgb, var(--dms-accent) 25%, transparent);
  outline-offset:2px;
}

/* Mobile: impila meta sopra ai controlli */
@media (max-width: 781px){
  .dms-qty{ 
    grid-template-columns: 1fr; 
    gap:12px; 
    padding:14px; 
  }
  .dms-qty__img img{ width:56px; }
  .dms-qty__title{ font-size:17px; margin:0 0 4px; }
  .dms-qty__price{ font-size:15px; }
  .dms-qty__btn{ width:42px; height:42px; border-radius:10px; font-size:22px; }
  .dms-qty__input{ width:72px; height:42px; font-size:18px; }
}

.page-id-1074 h1.entry-title { display:none !important; }

/* Desktop */
.spacer-resp { height: 30px !important; }

/* Tablet */
@media (max-width: 1024px){
  .spacer-resp { height: 30px !important; }
}

/* Mobile */
@media (max-width: 781px){
  .spacer-resp { height: 0 !important; }
}

/* Mobile: attacca il Riepilogo dell’ordine al selettore quantità */
@media (max-width: 781px){
  .dms-qty{ margin-bottom: 6px; } /* metti 0 se lo vuoi proprio attaccato */

  /* Il blocco Gutenberg del riepilogo ha un margin-top: rimuovilo */
  .dms-qty + .wp-block-woocommerce-checkout-order-summary-block{
    margin-top: 0 !important;
  }

  /* Azzera altri margini/padding che alcuni temi aggiungono */
  .wc-block-checkout__order-summary,
  .wc-block-components-order-summary{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}