.cd-signup-credit-note {
  margin: 0 0 16px;
  color: #2C676A;
  font-weight: 600;
}

.cd-signup-credit-card {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid #d7e4e2;
  background: #f4faf8;
}

.cd-signup-credit-card__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.cd-signup-credit-card__code {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.cd-signup-credit-card__text {
  margin: 0;
}

/* Floating gift: bottom-left so it never sits under the bottom-right WhatsApp button. */
.cd-signup-credit__float {
  position: fixed;
  left: 20px;
  bottom: 30px;
  z-index: 99985;
  animation: cd-signup-credit-bob 2.5s ease-in-out infinite;
}

@keyframes cd-signup-credit-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cd-signup-credit .cd-signup-credit__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: -6px 6px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  line-height: 0;
  transition: box-shadow .2s ease;
}

.cd-signup-credit .cd-signup-credit__fab:hover,
.cd-signup-credit .cd-signup-credit__fab:focus-visible {
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.55);
  outline: none;
}

.cd-signup-credit__gift {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cd-signup-credit__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff3333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cd-signup-credit__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.65);
}

.cd-signup-credit__modal[hidden] {
  display: none;
}

.cd-signup-credit__panel {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 30px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
}

.cd-signup-credit .cd-signup-credit__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.cd-signup-credit__media {
  flex: 1 1 50%;
  background: #000;
  aspect-ratio: 3 / 4;
}

.cd-signup-credit__media picture,
.cd-signup-credit__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cd-signup-credit__copy {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 35px;
  text-align: center;
}

.cd-signup-credit__copy h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.cd-signup-credit__copy p {
  margin: 0 0 22px;
  color: #666;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

.cd-signup-credit .cd-signup-credit__cta,
.cd-signup-credit .cd-signup-credit__dismiss {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 16px;
  border: 0;
  border-radius: 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cd-signup-credit .cd-signup-credit__cta {
  background: #006837;
  color: #fff;
}

.cd-signup-credit .cd-signup-credit__cta:hover,
.cd-signup-credit .cd-signup-credit__cta:focus-visible {
  background: #00522b;
  color: #fff;
}

.cd-signup-credit .cd-signup-credit__dismiss {
  margin: 0;
  background: #eee;
  color: #555;
}

.cd-signup-credit .cd-signup-credit__dismiss:hover,
.cd-signup-credit .cd-signup-credit__dismiss:focus-visible {
  background: #e2e2e2;
  color: #333;
}

html.cd-signup-credit-open {
  overflow: hidden;
}

/* The sales popup shares the bottom-left corner; lift it above the gift. */
body:has(.cd-signup-credit) .cd-sales-notify {
  bottom: 110px;
}

@media (max-width: 768px) {
  .cd-signup-credit__float {
    left: 16px;
    bottom: 16px;
  }

  .cd-signup-credit .cd-signup-credit__fab {
    width: 55px;
    height: 55px;
  }

  .cd-signup-credit__panel {
    flex-direction: column;
    max-width: 480px;
  }

  .cd-signup-credit__media {
    flex: 0 0 auto;
    aspect-ratio: 3 / 2;
  }

  .cd-signup-credit__copy {
    flex: 0 0 auto;
    padding: 25px 20px;
  }

  .cd-signup-credit__copy h3 {
    font-size: 30px;
  }

  .cd-signup-credit__copy p {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .cd-signup-credit .cd-signup-credit__cta,
  .cd-signup-credit .cd-signup-credit__dismiss {
    padding: 14px;
    font-size: 17px;
  }

  body:has(.cd-signup-credit) .cd-sales-notify {
    bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-signup-credit__float {
    animation: none;
  }
}
