body {
  /* overflow-x: hidden; */
}

select {
  font-size: 15px !important;
}

textarea {
  height: fit-content;
  min-height: 100px;
}

/* sovrascrive le impostazioni di default di TINGLE */
.tingle-modal-box {
  width: 65% !important;
  max-width: 950px;
}

.font-right {
  display: block;
  float: right;
}

.bold-green-price {
  font-weight: bold;
  color: #26ae90;
}

.bold-red-price {
  font-weight: bold;
  color: #ee6e73;
}

#section-container {
  display: grid;
}

#carrello-steps {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  font-size: 14px;
  text-align: center;
  margin-bottom: 25px;
}

#carrello-steps div {
  background-color: white;
  padding: 10px 15px;
  border: 1px solid #e9e9e9;
}

#carrello-steps span {
  width: 100%;
}

#carrello-steps img {
  width: 12px;
  margin: 0 8px;
}

.carrello-active-step {
  font-weight: bold;
}

@media (max-width: 450px) {
  #carrello-steps {
    grid-template-columns: 1fr;
    grid-row-gap: 5px;
    text-align: unset;
    margin-bottom: 25px;
  }
}

.variant-color {
  width: 100px;
  height: 100px;
  border: 1px solid #adadad;
}

.variant-price-scontato {
  margin: 0 4px;
}

#empty-cart-img img {
  display: block;
  margin: auto;
  padding: 20px;
  width: 100%;
  max-width: 500px;
}

#cart-state-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-column-gap: 20px;
  min-width: 250px;
}

#product-list {
  display: grid;
  transition: all 1s;
  margin-bottom: 25px;
  margin-bottom: auto;
}

@media (min-width: 1445px) {
  #product-list {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
  }
}

.product-list-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 15px;
  align-items: center;
  background-color: white;
  box-shadow: 0 5px 15px 0 rgb(0 0 0 / 10%);
  padding: 12px 0;
  padding-right: 20px;
  margin-bottom: 15px;
  border: 1px solid #e9e9e9;
}

.cart-product-img {
  margin: auto;
  margin-left: 12px;
}

.cart-product-img img {
  max-width: 100px;
}

.cart-product-is-fancy {
  cursor: pointer;
}

.cart-brand {
  text-transform: uppercase;
  font-size: 13px;
  line-height: 8px;
}

.cart-brand:hover {
  font-weight: bold;
  color: #38414a;
}

.cart-product-name-container {
  padding-top: 5px;
  padding-bottom: 8px;
}

.cart-product-name {
  color: #26ae90;
  font-weight: bold;
}

.cart-variant-name {
  color: #767676;
}

/* Gift card START */

.gift-card-desc-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 10px;
}

.gift-card-price {
  font-size: 15px;
  font-weight: bold;
  color: #767676;
  margin-top: 5px;
}

/* Gift card END */

.cart-qty-section {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-column-gap: 7px;
  align-items: center;
  justify-content: flex-start;
}

.variant-price {
  display: inline;
  grid-column-gap: 5px;
  justify-content: center;
  grid-template-columns: auto;
  font-size: 15px;
  color: #767676;
  min-width: 50px;
  font-weight: unset;
  text-align: center;
}

.variant-price span {
  text-align: center;
}

.variant-subtotal-bold {
  color: #767676;
  font-weight: bold;
}

.plus-qty {
  background-image: url("/img/icon/plus-qty.svg");
}

.minus-qty {
  background-image: url("/img/icon/minus-qty.svg");
}


.delete-prod-btn {
  display: block;
  width: 25px;
}

#total-sticky {
  top: 5%;
  position: sticky;
  max-width: 400px;
  margin: auto;
}

#total-block {
  background-color: white;
  box-shadow: 0 5px 15px 0 rgb(0 0 0 / 10%);
  border: 1px solid #e9e9e9;
  padding: 25px;
  margin-bottom: 25px;
}

#total-header {
  background-color: #38414a;
  color: white;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  border-radius: 5px;
}

#total-header h1 {
  font-size: 22px !important;
}

#total-detail {
  margin-top: 20px;
}

#info-cart {
  font-size: 15px;
  background-color: #e3e3e3;
  padding: 15px 20px;
}

#discounted-total {
  vertical-align: top;
  color: #ee6e73;
  font-size: 19px;
  margin-right: 3px;
}

#coupon-desc {
  background-color: white;
}

@media (max-width: 450px) {
  #coupon-title {
    padding: 5px;
  }
}

#info-free-delivery {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 8px;
  padding-bottom: 0;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#info-free-delivery img {
  display: block;
  width: 20px;
  margin-right: 6px;
}

.total-font {
  font-size: 25px;
  font-weight: bold;
  margin-top: 10px;
}

.cart-header-detail {
  font-size: 15px;
  padding-bottom: 7px;
  font-style: italic;
}

.select-style {
  border-bottom: unset !important;
}

#cart-options {
  visibility: visible;
  opacity: 1;
  transition: visibility 0.3s linear, opacity 0.3s linear;
}

#delivery-methods select {
  background-color: white;
}

#delivery-method-desc {
  display: inherit;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 12px;
  padding-right: 5px;
  margin-top: 5px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  align-items: center;
  transition: visibility 0.2s linear, opacity 0.2s linear, height 0.5s ease;
}

.show-delivery-method-desc {
  visibility: visible;
  height: 42px;
  opacity: 1;
}

.hide-delivery-method-desc {
  visibility: hidden;
  height: 0px;
  opacity: 0;
}

#delivery-method-desc img {
  max-width: 30px;
}

.cart-elimina-wrapper {
  margin-top: 5px;
  margin-bottom: auto;
}

@media (max-width: 450px) {
  #top-bar-cart {
    grid-template-columns: 1fr;
    margin: auto;
  }

  .cart-product-name {
    font-size: 15px;
  }

  .cart-variant-name {
    font-size: 15px;
  }

  #product-list {
    /* max-height: 350px; */
    overflow-y: scroll;
    text-align: center;
    padding: 0px;
    margin-bottom: 20px;
  }

  .product-list-container {
    /* grid-template-columns: 1fr 2fr; */
    grid-gap: unset;
    padding: 18px 0;
    padding-bottom: 10px;
  }

  .list-center-cart {
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 3;
  }

  .qty-div {
    padding: 5px 0;
  }

  .cart-qty-section {
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 2;
  }

  .cart-product-img {
    margin: auto;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .delete-prod-btn {
    width: 16px;
  }

  .desktop {
    display: none;
  }

  .variant-price {
    display: grid;
    grid-template-columns: auto;
  }

  .swiper .swiper-slide {
    padding: 0 8px 15px 8px !important;
  }
}

@media (max-width: 870px) {
  #cart-state-container {
    grid-template-columns: 1fr;
  }

  .swiper .swiper-slide {
    padding: 0 8px 15px 8px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .list-center-cart {
    grid-template-columns: 1fr;
  }
}

.swiper,
.swiper2 {
  width: 100%;
  height: 100%;
}


/* Needed for autoheight malfunction with ajax loaded braintree dropin */
.swiper .swiper-slide {
  padding: 0 15px 15px 0;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper .swiper-container-scrollbar .swiper-slide {
  height: 100%;
}

/* Overwrite swiper autoheight cause it's bugging on mobile with braintree dropin (it loads ajax) */
.swiper-autoheight {
  /* min-height: 255px !important; */
}

#buttons-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

#cart-back-btn {
  margin-right: 10px;
}

/* Disabled button that has to look like it's not */
.disabled-styled-btn:disabled {
  background-color: #2bbbad !important;
  color: white !important;
}

.disabled-styled-btn:disabled:hover {
  background-color: #30cfc0 !important;
  color: #fff !important;
}

.btn-show {
  width: auto;
  opacity: 1;
  transition: opacity 1s !important;
}

.btn-hidden {
  overflow: hidden;
  opacity: 0;
  width: 0;
}

/* Applied gift card container*/

/* GIFT CARD START */

#gift-card-details {
  display: flex;
  align-items: center;
  font-size: 14px;
}

#gift-card-credit-available-container {
  display: grid;
  grid-template-columns: 1fr auto;
  background-color: white;
  font-size: 15px;
  padding: 7px 12px;
}

#available-credit {
  margin: auto;
  margin-left: unset;
}

/* GIFT CARDS start */

#applied-credit-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 10px;
  background-color: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
}

#applied-credit-container .btn {
  background-color: white !important;
  padding: 5px;
}

#gift-card-credit-difference {
  display: grid;
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 6px;
}

#credit-info-msg {
  font-size: 13px;
}

/* In conflict with elements.css it needed to be moved */
.mat-label {
  top: -14px !important;
}

.cart-discount-code-applied-container {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 5px;
  align-items: top;
  font-size: 15px;
  font-weight: bold;
  color: #ee6e73;
}

.cart-offer-tag {
  display: block;
  height: 17px;
  margin-bottom: 10px;
}

.cart-discount-code-applied-tag {
  display: block;
  height: 17px;
  margin-bottom: 10px;
}

/* FANCYBOX custom start */



.f-fadeSlowIns {
  opacity: 0;
  animation: fadeIns 0.3s forwards;
}

@keyframes fadeIns {
  to {
    opacity: 1;
  }
}

.f-fadeSlowOut {
  opacity: 1;
  animation: fadeOut 0.1s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}



/* FANCYBOX custom end */










@media (max-width: 450px) {
  .product-list-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Una sola colonna */
    grid-template-rows: auto auto auto;
    /* Righe per immagine, nome, quantità */
    padding: 0;
    padding-bottom: 10px;
    position: relative;
    /* Necessario per posizionare il pulsante all'interno del wrapper */
  }

  .cart-product-img {
    grid-column: 1;
    /* Occupa tutta la colonna */
    grid-row: 1;
    /* Prima riga */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cart-product-img img {
    max-width: 100px;
    /* Limita la larghezza massima dell'immagine */
  }

  .list-center-cart {
    grid-column: 1;
    /* Occupa tutta la colonna */
    grid-row: 2;
    /* Seconda riga */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Centra il testo */
  }

  .cart-qty-section {
    grid-column: 1;
    /* Occupa tutta la colonna */
    grid-row: 3;
    /* Terza riga */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cart-elimina-wrapper {
    grid-column: 1;
    /* Occupa tutta la colonna */
    grid-row: 1;
    /* Prima riga */
    position: absolute;
    /* Permette di posizionare il pulsante assolutamente all'interno del contenitore */
    top: 12px;
    /* Distanza dal bordo superiore */
    right: 20px;
    /* Distanza dal bordo destro */
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1;
    /* Assicura che il pulsante sia sopra gli altri contenuti */
  }

  .cart-elimina {
    display: block;
    /* Assicurati che il pulsante sia visibile */
    width: auto;
    /* Imposta la larghezza automatica */
  }

  .delete-prod-btn {
    display: block;
    /* Assicurati che l'immagine del pulsante sia visibile */
    width: 24px;
    /* Imposta la larghezza dell'immagine del pulsante */
    height: auto;
    /* Mantiene la proporzione dell'immagine */
  }
}

/* Empty Cart Enhanced Styles */
.empty-cart-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 20px;
  text-align: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.empty-cart-header {
  margin-bottom: 40px;
}

.empty-cart-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-cart-header h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.empty-cart-header p {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.empty-cart-actions {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  align-items: center;
}

.empty-cart-action-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.empty-cart-action-icon {
  font-size: 32px;
  opacity: 0.8;
}

.empty-cart-actions .btn {
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  color: white;
}

.empty-cart-actions .btn-primary {
  background: #11d8ea;
  box-shadow: 0 4px 15px rgba(17, 216, 234, 0.3);
}

.empty-cart-actions .btn-primary:hover {
  background: #0fc4d8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 216, 234, 0.4);
  text-decoration: none;
  color: white;
}

.empty-cart-actions .btn-secondary {
  background: #fea404;
  box-shadow: 0 4px 15px rgba(254, 164, 4, 0.3);
}

.empty-cart-actions .btn-secondary:hover {
  background: #e89304;
  transform: translateY(-3px);
  text-decoration: none;
  color: white;
  box-shadow: 0 6px 20px rgba(254, 164, 4, 0.4);
}

.empty-cart-suggestions {
  margin-bottom: 40px;
}

.empty-cart-suggestions h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 600;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.suggestion-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.suggestion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
  border-color: #d1d5db;
}

.suggestion-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f9fa;
}

.suggestion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.suggestion-card:hover .suggestion-img img {
  transform: scale(1.05);
}

.suggestion-info {
  padding: 15px;
  text-align: left;
}

.suggestion-brand {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 500;
}

.suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.3;
}

.suggestion-price {
  font-size: 16px;
  font-weight: bold;
  color: #26ae90;
}

.empty-cart-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid #e5e7eb;
  justify-content: center;
  justify-items: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  max-width: 250px;
  width: 100%;
}

.benefit-icon {
  font-size: 30px;
  opacity: 0.7;
}

.benefit-text strong {
  display: block;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 2px;
}

.benefit-text small {
  font-size: 14px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .empty-cart-section {
    margin: 20px;
    padding: 30px 15px;
  }

  .empty-cart-icon {
    font-size: 60px;
  }

  .empty-cart-header h2 {
    font-size: 24px;
  }

  .empty-cart-actions {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .empty-cart-action-item {
    gap: 12px;
  }

  .empty-cart-action-icon {
    font-size: 28px;
  }

  .empty-cart-actions .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
    padding: 10px 20px;
  }

  .suggestions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .empty-cart-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .suggestions-grid {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    max-width: 200px;
  }
}