/* Overlay popup */
#migration-checkout-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 35, 35, 0.58);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: migrationFadeIn 0.2s ease;
}

#migration-checkout-popup-overlay.is-closing {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* Box popup */
#migration-checkout-popup {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 3px solid #01AEF0;
  border-radius: 16px;
  padding: 26px 24px 22px;
  box-shadow: 0 18px 50px rgba(35, 35, 35, 0.22);
  text-align: left;
  animation: migrationPopupIn 0.22s ease;
  position: relative;
}

/* Banda decorativa alta */
#migration-checkout-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(90deg, #01AEF0 0%, #FEF200 55%, #ED008C 100%);
}

/* Icona */
.migration-checkout-popup__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEF200;
  color: #232323;
  font-size: 30px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  margin: 8px auto 16px;
  box-shadow: 0 6px 16px rgba(35, 35, 35, 0.12);
}

/* Titolo */
#migration-checkout-popup h2 {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.2;
  color: #232323;
  text-align: center;
  font-weight: 700;
}

/* Testo */
.migration-checkout-popup__text {
  color: #232323;
  font-size: 16px;
  line-height: 1.6;
}

.migration-checkout-popup__text p {
  margin: 0 0 12px;
}

.migration-checkout-popup__text ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.migration-checkout-popup__text li {
  margin-bottom: 6px;
}

.migration-checkout-popup__text strong {
  color: #232323;
}

.migration-checkout-popup__note {
  color: #01AEF0;
  font-weight: 600;
}

/* Bottone */
.migration-checkout-popup__actions {
  margin-top: 18px;
  text-align: center;
}

#migration-checkout-confirm-btn {
  display: inline-block;
  min-width: 220px;
  border: 0;
  background: #01AEF0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 8px 20px rgba(1, 174, 240, 0.22);
}

#migration-checkout-confirm-btn:hover {
  background: #0098d2;
  transform: translateY(-1px);
}

#migration-checkout-confirm-btn:active {
  transform: translateY(0);
}

/* Piccolo accento magenta */
.migration-checkout-popup__actions::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: #ED008C;
  margin: 14px auto 0;
  opacity: 0.9;
}

/* Animazioni */
@keyframes migrationFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes migrationPopupIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 767px) {
  #migration-checkout-popup {
    padding: 22px 18px 18px;
    max-width: 94%;
  }

  #migration-checkout-popup h2 {
    font-size: 23px;
  }

  .migration-checkout-popup__text {
    font-size: 15px;
  }

  #migration-checkout-confirm-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Badge sconto prodotto */
#checkout #opc_main #opc_cart .cart-summary-products #cart-summary-product-list .media-list .media .product-discount {
    background-color: #ED008C;
}

/* Badge coupon con icona */
#checkout #opc_main #opc_cart .opc-promo-code__discount-label {
    background-color: #FFF4F9; /* light magenta */
    font-style: normal;
    color: #ED008C;
    cursor: pointer;

    font-size: .85rem;
    font-weight: 600;

    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 18px 12px;
    border: 1px dashed #ED008C;
    border-radius: 10px;

    transition: all 0.25s ease;
    margin-bottom: 12px;
}

/* Hover */
#checkout #opc_main #opc_cart .opc-promo-code__discount-label:hover {
    color: #C80074;
    background-color: #FAD3EA;
    transform: translateY(-2px);
}

/* Bottone coupon */
#checkout #opc_main #opc_cart .opc-promo-code__button {
    padding: 10px 12px;
    border-radius: 10px;
}

/* Icona prima del badge */
#checkout #opc_main #opc_cart .opc-promo-code__discount-label::before {
    content: "⭐";
    font-size: 1.1rem;
    display: inline-block;
}

/* Coupon applicati */
#checkout #opc_main #opc_cart .cart-promo ul .cart-summary-line {
    font-style: normal;
    color: #ED008C;
    cursor: pointer;

    border: 1px dashed #ED008C;
    border-radius: 10px;

    font-size: .85rem;
    font-weight: 600;

    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;

    transition: all 0.25s ease;
}

/* Icona */
#checkout #opc_main #opc_cart .cart-promo ul .cart-summary-line::before {
    content: "✓";
    font-size: 1.1rem;
    display: inline-block;
}

/* Label */
#checkout #opc_main #opc_cart .cart-promo ul .cart-summary-line .label {
    font-style: normal;
    color: #ED008C;

    text-align: left;
    width: 100%;
    font-size: .85rem;
    font-weight: 600;
}

/* Valore */
#checkout #opc_main #opc_cart .cart-promo ul .cart-summary-line .value {
    font-style: normal;
    color: #ED008C;

    width: 100%;
    text-align: right;
    font-size: .85rem;
    font-weight: 600;
}

/* Highlight */
#checkout #opc_main #opc_cart .opc-promo-code__highlighted {
    font-style: normal;

    font-size: 1.2rem;
    font-weight: 500;

    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 12px;
    border-radius: 10px;

    transition: all 0.25s ease;
    margin-bottom: 10px;
}