/* Popup PayPal "Scopri di più" - Paga in 3 rate / Paga in 6,12,24 rate */

.hk-paypal-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
  box-sizing: border-box;
}


.hk-paypal-modal.hk-paypal-modal--open {
  opacity: 1;
  visibility: visible;
}

.hk-paypal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.hk-paypal-modal__wrapper {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  cursor: default;
}

.hk-paypal-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 2;
  border-radius: 50%;
  transition: background 0.2s;
}

.hk-paypal-modal__close:hover {
  background: #f0f0f0;
}

.hk-paypal-modal__header {
  padding: 20px 50px 12px 20px;
  border-bottom: 1px solid #eee;
}

.hk-paypal-modal__logo svg,
.hk-paypal-modal__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.hk-paypal-modal__body {
  padding: 20px;
  text-align: center;
}

.hk-paypal-modal__headline {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #002991;
}

.hk-paypal-modal__subheadline {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #545d68;
}

.hk-paypal-modal__donuts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.hk-paypal-modal__donut {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.hk-paypal-modal__donut-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #002991;
}

.hk-paypal-modal__donut-label {
  display: block;
  font-size: 0.8rem;
  color: #686a6d;
  margin-top: 4px;
}

.hk-paypal-modal__instructions {
  margin: 0 0 20px;
  padding-left: 0;
  line-height: 1.6;
  color: #333;
  font-size: 0.95rem;
}

.hk-paypal-modal__instructions li {
  margin-bottom: 8px;
  text-align: center;
  list-style-position: inside;
}

.hk-paypal-modal__instructions-intro {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.hk-paypal-modal__amount-display {
  margin: 0 0 16px;
  padding: 12px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #002991;
}

.hk-paypal-modal__amount-label {
  margin-bottom: 4px;
}

.hk-paypal-modal__amount-value {
  font-weight: 600;
}

.hk-paypal-modal__disclaimer {
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: #686a6d;
  line-height: 1.5;
}

.hk-paypal-modal__disclaimer--note {
  margin-top: 0;
}

.hk-paypal-modal__disclaimer a {
  color: #002991;
  text-decoration: underline;
}

.hk-paypal-modal__calc-link {
  display: inline-block;
  padding: 12px 24px;
  background: #002991;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.hk-paypal-modal__calc-link:hover {
  background: #001f6b;
  color: #fff;
}

/* Banner clickable - cursore e overlay per 24 rate */
.single-product .hk-paypal-banner-clickable {
  cursor: pointer;
}

.single-product #hk-pay-in-24-container {
  position: relative;
  width: 100%;
  min-height: 50px;
}

.single-product #hk-pay-in-24-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
