/* ==========================================================================
   EM Farm - Blocchi extra sidebar carrello + checkout
   File: custom-cart-checkout-sidebar.css
   ========================================================================== */

.em-checkout-sidebar-extra {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.em-checkout-sidebox {
  width: 100%;
  padding: 28px;
  border-radius: 18px;
  background: #FFFAF6;
  color: #3c4d41;
}

.em-checkout-sidebox--benefits {
  display: grid;
  gap: 22px;
}

.em-checkout-benefit {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.em-checkout-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #145f35;
}

.em-checkout-benefit__icon svg {
  display: block;
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.em-checkout-benefit__text {
  display: grid;
  gap: 3px;
}

.em-checkout-benefit__text strong {
  color: #145f35;
  font-family: var(--em-font-body, "Urbanist", sans-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.em-checkout-benefit__text span {
  color: #3c4d41;
  font-family: var(--em-font-body, "Urbanist", sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

/* Pagamenti */
.em-checkout-sidebox h3 {
  margin: 0 0 22px;
  color: #3c4d41;
  font-family: var(--em-font-heading, "Montserrat", sans-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.em-checkout-payments__text {
  margin-bottom: 14px;
}

.em-checkout-payments__text p {
  margin: 0;
  color: #3c4d41;
  font-family: var(--em-font-body, "Urbanist", sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.em-checkout-payments__text strong {
  font-weight: 800;
}

.em-checkout-payment-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.em-checkout-payment-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 38px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
}

.em-checkout-payment-icons img {
  display: block;
  width: auto;
  max-width: 60px;
  max-height: 26px;
  height: auto;
}

/* Aiuto */
.em-checkout-sidebox--help p {
  margin: 0 0 22px;
  color: #3c4d41;
  font-family: var(--em-font-body, "Urbanist", sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.em-checkout-help-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #3c4d41;
  font-family: var(--em-font-body, "Urbanist", sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.em-checkout-help-phone:hover {
  color: #145f35;
}

.em-checkout-help-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #145f35;
}

.em-checkout-help-phone__icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   Cart / Checkout integrazione
   ========================================================================== */

body.woocommerce-cart .wc-block-cart__sidebar .em-checkout-sidebar-extra,
body.woocommerce-checkout .wc-block-checkout__sidebar .em-checkout-sidebar-extra {
  margin-top: 14px;
}

/* Nel checkout la sidebar è già un box: i blocchi extra devono stare fuori visivamente */
body.woocommerce-checkout .wc-block-checkout__sidebar .em-checkout-sidebar-extra,
body.woocommerce-cart .wc-block-cart__sidebar .em-checkout-sidebar-extra {
  width: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  .em-checkout-sidebar-extra {
	grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .em-checkout-sidebox {
	padding: 24px;
  }
}

@media (max-width: 991px) {
  .em-checkout-sidebar-extra {
	grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .em-checkout-sidebox {
	padding: 22px;
	border-radius: 16px;
  }

  .em-checkout-benefit {
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 14px;
  }

  .em-checkout-benefit__icon svg {
	width: 38px;
	height: 38px;
  }

  .em-checkout-benefit__text strong {
	font-size: 16px;
  }

  .em-checkout-benefit__text span {
	font-size: 14px;
  }

  .em-checkout-help-phone {
	font-size: 19px;
  }
}