/* ================================================
   Account page - layout a pulsanti centrati
   ================================================ */

.my-account-page-content-wrapper .account-links {
  margin-top: 20px;
}

.account-links a {
  text-decoration: none;
  color: inherit;
  display: flex;
  padding: 8px;
  margin-bottom: 16px;
}

.account-links .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 30px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-height: 110px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.account-links .link-item:hover {
  background-color: #f5f5f5;
  border-color: #bdbdbd;
}

.account-links .link-item .fa {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Rimuovi il col-sm-9 quando non c'è sidebar */
.my-account-page-content.col-sm-9 {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

/* Order history - righe cliccabili */
tr.order-row {
  cursor: pointer;
}
tr.order-row:hover td,
tr.order-row:hover th {
  background-color: #f0f0f0;
}
div.order {
  cursor: pointer;
}

@media (max-width: 767px) {
  .account-links a {
    padding: 4px;
    margin-bottom: 10px;
  }

  .account-links .link-item {
    padding: 20px 10px;
    min-height: 90px;
  }

  .account-links .link-item .fa {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
}

/* ================================================
   Product page - Sconti quantità (Promozioni)
   ================================================ */

.product-discounts-promo {
  margin-bottom: 15px;
}

.product-discounts-promo .promo-title {
  color: #c00;
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.product-discounts-promo .promo-line {
  font-size: 14px;
  line-height: 1.6;
}

/* ================================================
   Mobile header - Amazon-style two-row layout
   ================================================ */

/* Row 1: logo allineato a sinistra */
#mobile-header .col-mobile-logo {
  text-align: left;
}

/* Nascondere label testo sotto le icone */
#mobile-header .m-nav-btn > span {
  display: none;
}

#mobile-header .m-nav-btn {
  padding: 6px 8px;
}

/* Row 2: search bar sempre visibile */
#mobile-header .mobile-search-bar {
  padding: 0 0 8px;
}

#mobile-header .mobile-search-bar .search-widget {
  position: relative;
}

#mobile-header .mobile-search-bar .form-search-control {
  border-radius: 8px;
  padding: 8px 40px 8px 12px;
  border: 1px solid #cdcdcd;
  font-size: 0.9rem;
}

#mobile-header .mobile-search-bar .form-search-control:focus {
  border-color: #febd69;
  box-shadow: 0 0 0 3px rgba(254, 189, 105, 0.3);
  outline: none;
}

/* Autocomplete sotto la search bar */
#mobile-header .mobile-search-bar .autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999999;
  max-height: 60vh;
}
#mobile-header .mobile-main-bar {
  padding-top: 0rem;
  padding-bottom: 0rem;
}

#mobile-header .col-mobile-logo img {
  max-height: 28px;
  width: auto;
}

@media (max-width: 575.98px) {
  #mobile-header .m-nav-btn>i {
      font-size: 1.8rem;
  }
}

/* Pulsanti account e carrello: +10% */
#mobile-header-sticky .col-mobile-btn-account .m-nav-btn,
#mobile-header-sticky .col-mobile-btn-cart .m-nav-btn {
  padding: 7px 9px;
}

#mobile-header-sticky .col-mobile-btn-account .m-nav-btn i,
#mobile-header-sticky .col-mobile-btn-cart .m-nav-btn i {
  font-size: 2.2rem;
}

/* Etichetta testo accanto icona account */
#mobile-header-sticky .col-mobile-btn-account .mobile-account-label {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1.2;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 3px;
}

/* Search button stile Amazon */
#mobile-header .mobile-search-bar .search-btn {
  background: #2183e6;
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  padding: 0 12px;
}

/* ================================================
   Product page - Fix WhatsApp e Back-to-top sopra sticky cart
   ================================================ */

@media (max-width: 991px) {
  body#product .whatsapp.bottom-left {
    bottom: 56px !important;
  }

  body#product #back-to-top {
    bottom: 80px !important;
  }
}

#cart-error-toast {
  display: none !important;
}