.smyk-cta {
  padding-block: var(--smyk-section-py);
  padding-inline: clamp(16px, 4vw, 32px);
  background: #fff;
  color: #222222;
}

/* Default (no image): light gray rounded card — bg + overlay hidden. */
.smyk-cta__bg,
.smyk-cta__overlay { display: none; }

/* With a background image: full-bleed photo + frosted-glass card overlay
   (centered heading / body / CTA), branded for Travinger. */
.smyk-cta--has-bg { position: relative; overflow: hidden; background: transparent; }
.smyk-cta--has-bg .smyk-cta__bg {
  display: block; position: absolute; left: -1px; right: -1px; top: -1px; bottom: -1px;
  width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; z-index: 0;
}
.smyk-cta--has-bg .smyk-cta__overlay {
  display: block; position: absolute; left: -1px; right: -1px; top: -1px; bottom: -1px; z-index: 0;
  background: rgba(10, 22, 40, var(--smyk-cta-overlay, 0.35));
}
.smyk-cta--has-bg .smyk-cta__wrap {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 30px 70px -30px rgba(10, 22, 40, 0.55);
}
.smyk-cta--has-bg .smyk-cta__heading,
.smyk-cta--has-bg .smyk-cta__app-text { color: #ffffff; }
.smyk-cta--has-bg .smyk-cta__body { color: rgba(255, 255, 255, 0.92); }
.smyk-cta--has-bg .smyk-cta__secondary {
  display: inline-flex; align-items: center;
  padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.smyk-cta--has-bg .smyk-cta__secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}
/* Icon chip reads on glass */
.smyk-cta--has-bg .smyk-cta__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
/* Primary CTA = solid white pill on the photo (navy text) */
.smyk-cta--has-bg .smyk-cta__primary { background: #ffffff; color: #222222; }
.smyk-cta--has-bg .smyk-cta__primary:hover { background: #f1f0f7; color: #222222; }

/* Content wrapper IS the gray card */
.smyk-cta__wrap {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 52px);
  background: #f3f4f6;
  border-radius: clamp(20px, 2.5vw, 28px);
  text-align: center;
  position: relative;
  z-index: 1;
}
.smyk-cta--align-left .smyk-cta__wrap {
  text-align: left;
}

/* Icon (sits on the light card) */
.smyk-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(228, 29, 86, 0.10);
  color: #e41d56;
  margin-bottom: 18px;
}
.smyk-cta__icon img,
.smyk-cta__icon svg { width: 28px; height: 28px; object-fit: contain; }
.smyk-cta__emoji { font-size: 30px; line-height: 1; }

/* Heading — dark on light card */
.smyk-cta__heading {
  font-family: var(--smyk-font, inherit);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #222222;
  margin: 0 auto;
  max-width: 32ch;
}
.smyk-cta--align-left .smyk-cta__heading { margin-inline: 0; }
.smyk-cta__heading-accent {
  color: #e41d56;
  margin-left: 0;
}

/* Body (optional) */
.smyk-cta__body {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
  color: #475569;
  margin: 16px auto 0;
  max-width: 56ch;
}
.smyk-cta--align-left .smyk-cta__body { margin-inline: 0; }

/* Actions row — only renders if a CTA label is set */
.smyk-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.smyk-cta__actions:empty { display: none; margin: 0; }
.smyk-cta--align-left .smyk-cta__actions {
  justify-content: flex-start;
}

/* Primary CTA — orange pill */
.smyk-cta__primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--smyk-orange, #e41d56);
  color: #fff;
  font-family: var(--smyk-font, inherit);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, transform .15s;
}
.smyk-cta__primary:hover {
  background: var(--smyk-orange-hover, #c2164a);
  transform: translateY(-1px);
}
.smyk-cta__primary svg { transition: transform .2s; }
.smyk-cta__primary:hover svg { transform: translateX(3px); }

/* Secondary CTA — underlined link on light bg */
.smyk-cta__secondary {
  font-family: var(--smyk-font, inherit);
  font-size: 1rem;
  font-weight: 700;
  color: #222222;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color .2s;
}
.smyk-cta__secondary:hover { color: #e41d56; }

/* App download row — sits inside the same gray card, no nested box */
.smyk-cta__app-card {
  margin-top: clamp(20px, 3vw, 32px);
  text-align: center;
}
.smyk-cta--align-left .smyk-cta__app-card { text-align: left; }
.smyk-cta__app-text {
  font-family: var(--smyk-font, inherit);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 800;
  line-height: 1.35;
  color: #222222;
  margin: 0 auto 20px;
  max-width: 44ch;
}
.smyk-cta--align-left .smyk-cta__app-text {
  margin-inline: 0;
}
.smyk-cta__app-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.smyk-cta--align-left .smyk-cta__app-badges { justify-content: flex-start; }
.smyk-cta__app-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .15s;
}
.smyk-cta__app-badge:hover { transform: translateY(-1px); }
.smyk-cta__app-badge img {
  display: block;
  height: auto;
  width: 160px;
  max-width: 100%;
}

/* Fallback "badge" if no image uploaded — styled like a real store badge */
.smyk-cta__app-badge-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  min-width: 160px;
}
.smyk-cta__app-badge-fallback span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.smyk-cta__app-badge-fallback small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.smyk-cta__app-badge-fallback strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Responsive */
@media (max-width: 560px) {
  .smyk-cta__heading-accent {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  .smyk-cta__actions {
    flex-direction: column;
    width: 100%;
  }
  .smyk-cta__primary { width: 100%; justify-content: center; }
  .smyk-cta--align-left .smyk-cta__wrap {
    margin-left: clamp(16px, 6vw, 40px);
    margin-right: clamp(16px, 6vw, 40px);
  }
}
