/* ── COREnx Download Widget ── */

.cndl-wrapper {
  width: 100%;
  box-sizing: border-box;
  font-family: Montserrat, 'Segoe UI', Arial, sans-serif;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.cndl-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(10, 30, 60, 0.10);
}

/* Header */
.cndl-header {
  background: linear-gradient(135deg, #0f2d47 0%, #226493 100%);
  padding: 28px 32px 24px;
  border-radius: 20px 20px 0 0;
  color: #fff;
}

.cndl-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.cndl-subtitle {
  font-size: 13px;
  margin: 0;
  color: rgba(255,255,255,0.75);
}

/* Body */
.cndl-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Badge link */
.cndl-badge-link {
  display: block;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}

.cndl-badge-link:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Badge immagine */
.cndl-badge-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Badge fallback (nessuna immagine impostata) */
.cndl-badge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}

.cndl-badge-apple  { background: #111; }
.cndl-badge-google { background: #1a1a2e; }

.cndl-badge-btn small {
  font-size: 12px;
  opacity: .75;
  display: block;
  font-weight: 400;
}

.cndl-badge-btn strong {
  font-size: 20px;
  font-weight: 700;
  display: block;
}

.cndl-badge-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Testo descrittivo */
.cndl-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

/* Mobile */
@media (max-width: 600px) {
  .cndl-header { padding: 22px 20px 20px; }
  .cndl-body   { padding: 20px 20px 24px; }
}
