/* === NOMARENT THEME STYLES FINAL === */

:root {
  --nomarent-green: #1e6f3c;
  --nomarent-black: #1a1a1a;
  --nomarent-gray: #f5f5f5;
  --radius: 12px;
  --transition: 0.3s ease;
  --font-main: 'Inter', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: #f8f8f8;
  color: var(--nomarent-black);
}

/* Header */
.nomarent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nomarent-header .logo {
  height: 65px;
  max-width: 240px;
  object-fit: contain;
}

.nav-left, .nav-center, .nav-right {
  flex: 1;
  text-align: center;
}

.nav-left {
  text-align: left;
}

.nav-right {
  text-align: right;
}

.cart-icon, #search-toggle, #menu-toggle {
  background: none;
  border: none;
  font-size: 1.4em;
  margin-left: 10px;
  cursor: pointer;
}

.cart-icon i,
.nav-right i,
.nav-left i {
  stroke: var(--nomarent-black);
  width: 24px;
  height: 24px;
}

/* Side Drawer */

/* Side Drawer */
.side-menu {
  position: fixed;
  top: 0; /* Ora parte dall’alto */
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
  transition: left 0.35s ease;
  z-index: 1501;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 30px;
  box-sizing: border-box;
  overflow: visible;
}

.side-menu.open {
  left: 0;
}

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1500;
}

.side-menu-overlay.active {
  display: block;
}

.side-menu .close-btn {
  position: absolute;
  top: 36px; /* <- aumentato da 12px */
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 1602;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.side-menu .menu-logo img {
  width: 60px;
  margin: 30px auto 20px auto; /* meno spazio sopra */
  display: block;
}


.side-menu .menu-user {
  text-align: center;
  margin-bottom: 20px;
}

.side-menu .welcome-label {
  font-size: 14px;
  color: #555;
  margin: 0;
  font-weight: 400;
}

.side-menu .user-name {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 0 0;
}

.menu-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

.side-menu .menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.side-menu .menu-links li {
  margin: 12px 0;
}

.side-menu .menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.side-menu .menu-links a:hover {
  background: #f4f4f4;
  color: var(--nomarent-green);
}

.logout-link {
  margin-top: 25px;
  text-align: center;
}

.logout-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c00;
  text-decoration: none;
  font-size: 14px;
}


/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.search-overlay form {
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.search-overlay input[type="search"] {
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Footer */
.nomarent-footer {
  background: #f4f4f4;
  padding: 25px 15px;
  text-align: center;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
}

.footer-logo {
  height: 45px !important;
  margin-bottom: 8px;
}

.nomarent-footer a {
  text-decoration: none;
  color: var(--nomarent-green);
  margin: 0 8px;
}

.nomarent-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
  .nomarent-header {
    padding: 24px 40px;
  }

  
}

/* BARRA DI RICERCA */


.search-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

#live-search-input {
  width: 100%;
  max-width: 560px;
  padding: 18px 24px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-btn {
  margin-top: 24px;
  background: var(--nomarent-green);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.search-btn:hover {
  background: #14522e;
  transform: scale(1.04);
}

/* Tooltip modernizzato */
input:invalid {
  box-shadow: none;
}
input:invalid:focus {
  outline: none;
}
input:required:invalid::after {
  content: attr(data-message);
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffefef;
  color: #c00;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  margin-top: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Bottone per chiudere (X) */
.search-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.search-close:hover {
  color: var(--nomarent-green);
}

/* Risultati di ricerca */
.search-results {
  margin-top: 30px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 0;
}

.search-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f9f9f9;
  color: #111;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: background 0.2s ease;
}

.search-product-item:hover {
  background: #eef2ee;
}

.search-product-item img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
}

.product-details {
  flex-grow: 1;
}

.product-details strong {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.product-price {
  color: var(--nomarent-green);
  font-weight: 500;
  font-size: 13px;
}

.show-all-results {
  display: block;
  margin: 16px auto 0;
  padding: 10px 18px;
  background: var(--nomarent-green);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s ease;
}

.show-all-results:hover {
  background: #155e32;
}

.product-placeholder {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #ddd;
}


.search-results {
  margin-top: 30px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.result-item .icon {
  flex-shrink: 0;
  max-width: 24px;
}

.result-item i {
  max-width: 24px;
  flex-shrink: 0;
}



.result-item:hover {
  background: #f1f5f1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: scale(1.01);
   transform: translateY(-1px); /* accettabile */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.result-item:hover .result-icon {
  stroke: var(--nomarent-green);
}

.result-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 16px;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.result-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.result-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.result-price {
  font-weight: 500;
  color: var(--nomarent-green);
  font-size: 0.95rem;
}

.result-icon {
  stroke: var(--nomarent-black);
  width: 22px;
  height: 22px;
}

.show-all-button {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: var(--nomarent-green);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.show-all-button:hover {
  background: #14522e;
}

.show-all-button i {
  stroke: white;
  width: 18px;
  height: 18px;
}

.cart-icon {
  stroke: var(--nomarent-black) !important;
  fill: none !important;
  color: var(--nomarent-black) !important;
}

.mini-cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 2000;
  padding: 32px 24px;
  box-sizing: border-box;
}

.mini-cart-overlay.show {
  transform: translateX(0);
}

.mini-cart-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}


.mini-cart-close {
  position: absolute;
  top: 36px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #555;
  cursor: pointer;
  padding: 15px;
  z-index: 10;
  transition: color 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}



.mini-cart-close:hover {
  color: var(--nomarent-green);
}


#mini-cart-content {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 60px;
  padding-right: 4px;
  font-size: 15px;
  color: #333;
}

.mini-cart-button {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--nomarent-green);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.mini-cart-button:hover {
  background: #14522e;
}

/* Nasconde overlay su mobile */
@media (max-width: 768px) {
  .mini-cart-overlay {
    display: none !important;
  }

  #cart-icon {
    pointer-events: auto;
  }
}

.mini-cart-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--nomarent-black);
  margin-top: 24px;
  margin-bottom: 30px;
}


.mini-cart-title i {
  stroke: var(--nomarent-green);
  width: 22px;
  height: 22px;
}

/* Migliora contenuto del carrello vuoto */
.woocommerce-mini-cart__empty-message {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-top: 50px;
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px 20px 24px;
  border-bottom: 1px solid #eee;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--nomarent-black);
  position: relative;
}



.mini-cart-header .title {
  display: flex;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}

.mini-cart-header .title i {
  stroke: var(--nomarent-green);
  width: 22px;
  height: 22px;
}

.mini-cart-header i {
  margin-right: 8px;
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .nav-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px !important; /* più stretto di prima */
  }

  .nav-right i[data-lucide],
  .nav-left i[data-lucide],
  .cart-icon i[data-lucide],
  .nav-right svg,
  .nav-left svg {
    stroke: var(--nomarent-black) !important;
    fill: none !important;
    color: var(--nomarent-black) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #search-toggle,
  .cart-icon {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.register-link {
  font-size: 0.9rem;
  margin-top: 14px;
}

.register-link a {
  color: var(--nomarent-green);
  text-decoration: none;
}


.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
  align-items: center;
}

.button-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--nomarent-green);
  color: white !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.3s ease;
  font-size: 15px;
  width: 100%; /* oppure usa 100% per massima larghezza */
  max-width: 100%;
  box-sizing: border-box;
}


.button-green:hover {
  background: #14522e;
}

.account-button {
  margin-top: 12px;
  text-align: center;
}


/* LOGIN MODAL */


.login-modal-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 48px 36px 40px;
  width: 90%;
  max-width: 420px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  animation: fadeSlideIn 0.35s ease forwards;
  transform: translateY(20px);
  opacity: 0;
}

.login-modal-overlay.show .login-modal-box {
  opacity: 1;
  transform: translateY(0);
}

.login-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 24px;
}

.login-modal-box h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--nomarent-black);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#nomarent-login-form input[type="text"],
#nomarent-login-form input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#nomarent-login-form .button-green {
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  width: 100%;
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #444;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-modal-close:hover {
  color: var(--nomarent-green);
}

/* Link Registrati */
.login-modal-box p {
  margin-top: 16px;
  font-size: 0.9rem;
}

.login-modal-box p a {
  color: var(--nomarent-green);
  text-decoration: none;
}

.login-modal-box p a:hover {
  text-decoration: underline;
}

/* Animazione */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Nasconde la modale login di default */
/* Assicura che la modale login sia un overlay full screen */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* nascosta di default */
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

/* Quando attiva */
.login-modal-overlay.show {
  display: flex;
}


.search-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  object-fit: contain;
}



/* Messaggio errore login */
.login-error-message {
  background: #ffdede;
  color: #b00020;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

/* Effetto shake */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}
#nomarent-login-form.shake {
  animation: shake 0.4s ease;
}

/* Fade in error */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MODIFICHE ALL'UI PAGINA CARRELLO */


.product {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.woocommerce-product-gallery {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summary h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e1e1e;
}
.summary .price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e6f3c;
}
.summary .woocommerce-product-details__short-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

form.cart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
form.cart input[type="date"],
form.cart input[type="number"] {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form.cart input:focus {
  border-color: #1e6f3c;
  box-shadow: 0 0 0 2px rgba(30, 111, 60, 0.2);
  outline: none;
}

.single_add_to_cart_button {
  background: #1e6f3c;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.single_add_to_cart_button:hover {
  background: #14522e;
  transform: scale(1.03);
}

.product_meta {
  font-size: 0.9rem;
  color: #777;
}

.woocommerce-tabs {
  border-top: 1px solid #eee;
  padding-top: 30px;
}
.woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 20px 0;
  color: #444;
  font-size: 1rem;
}

.related.products {
  padding-top: 40px;
  border-top: 1px solid #eee;
}
.related.products h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .product {
    flex-direction: row;
    align-items: flex-start;
  }
  .woocommerce-product-gallery {
    flex: 1;
    max-width: 50%;
  }
  .summary {
    flex: 1;
    max-width: 50%;
  }
  form.cart {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
  }
}


/* NUOVE MODIFICHE */

/* Boxed per contenuti WooCommerce */
.woocommerce-content-boxed {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .woocommerce-content-boxed {
    padding: 20px 15px;
  }
}



/* === PRODUCT PAGE FIX === */

/* Stile coerente pulsante Aggiungi al carrello */
.single_add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px !important;
  background: var(--nomarent-green) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background 0.3s ease !important;
  font-size: 15px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 180px !important;
  box-sizing: border-box !important;
}

.single_add_to_cart_button:hover {
  background: #14522e !important;
}

/* Icona carrello inline */
.single_add_to_cart_button::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm0 2zm10-2c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.16 14l.84-2h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49a.996.996 0 0 0-.87-1.48H6.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7.42c-.14 0-.25-.11-.26-.24l.01-.05z'/></svg>") no-repeat center;
  background-size: contain;
}

#nomarent-noleggio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

#nomarent-noleggio-wrapper label {
  font-weight: 600;
  font-size: 0.95rem;
}

#nomarent-noleggio-wrapper input[type="date"] {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#nomarent-noleggio-wrapper input[type="date"]:focus {
  border-color: var(--nomarent-green);
  box-shadow: 0 0 0 2px rgba(30,111,60,0.2);
  outline: none;
}


.single_add_to_cart_button.error {
  background: #c62828 !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* Popup */
.nomarent-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 5000;
  display: none;
  animation: fadeSlideIn 0.35s ease forwards;
  max-width: 320px;
  font-family: var(--font-main);
}

.nomarent-popup.show {
  display: block;
}

.nomarent-popup h3,
.nomarent-popup p {
  margin: 0 0 12px;
}

.nomarent-popup .popup-buttons {
  display: flex;
  gap: 10px;
}

.nomarent-popup .popup-buttons a {
  flex: 1;
  text-align: center;
  background: var(--nomarent-green);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nomarent-popup .popup-buttons a.secondary {
  background: #eee;
  color: #333;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}



.nomarent-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.nomarent-popup-overlay.show {
  display: flex;
}

.nomarent-popup {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  text-align: center;
  position: relative;
}

.nomarent-popup h3 {
  color: #1e6f3c;
  margin-bottom: 0.5rem;
}

.nomarent-popup .popup-buttons a {
  display: inline-block;
  margin-top: 1rem;
  background: #1e6f3c;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.nomarent-cart-details {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    margin-top: 6px;
}

.nomarent-cart-details td {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.nomarent-cart-details td:first-child {
    color: #555;
}

.nomarent-cart-details td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1e6f3c;
}

/* === Mini Cart – Nomarent details table === */
.nomarent-cart-details{
    width:100%;
    border-collapse:collapse;
    margin-top:8px;
    font-size:0.92rem;
    background:transparent;
}

.nomarent-cart-details td{
    padding:6px 8px;
    border-bottom:1px solid #eee;
}

.nomarent-cart-details tr:last-child td{
    border-bottom:none;
}

.nomarent-cart-details .n-label{
    color:#666;
}

.nomarent-cart-details .n-value{
    text-align:right;
    font-weight:600;
    color:#1e6f3c;        /* verde Nomarent */
}

/* Pulsanti default del widget: nascosti */
.widget_shopping_cart .woocommerce-mini-cart__buttons{
    display:none !important;
}

/* Coerenza spacing nel mini carrello */
.woocommerce-mini-cart li{
    padding-bottom:12px;
}


