/* Campagna pagina professionale — share + guest CTA + home banner */

.profile-public-share {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    165deg,
    rgb(0 29 255 / 16%) 0%,
    rgb(0 29 255 / 6%) 42%,
    #fff 100%
  );
  box-shadow: var(--shadow);
}

.profile-public-share[hidden] {
  display: none !important;
}

.profile-public-share__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-public-share__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #09090b;
}

.profile-public-share__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  color: #71717a;
  cursor: pointer;
}

.profile-public-share__lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #52525b;
}

.profile-public-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-public-share__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  font-size: 0.82rem;
  background: #fff;
  color: #334155;
}

.profile-public-share__copy {
  flex-shrink: 0;
}

.profile-public-share__tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-public-share__tip {
  margin: 0;
  font-size: 0.8rem;
  color: #52525b;
}

.profile-public-share__tip a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.profile-public-guest-cta {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e4e4e7;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .profile-public-guest-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--meedico-nav-stack, 90px);
    z-index: 1000;
    padding-bottom: 12px;
    transition: bottom 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  }

  body.profile-public-page--guest-cta {
    padding-bottom: calc(var(--meedico-nav-stack, 90px) + 200px);
  }
}

.profile-public-guest-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.profile-public-guest-cta__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #09090b;
}

.profile-public-guest-cta__text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #52525b;
}

.profile-public-guest-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-profile-launch {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    165deg,
    rgb(0 29 255 / 16%) 0%,
    rgb(0 29 255 / 6%) 42%,
    #fff 100%
  );
  box-shadow: var(--shadow);
}

.hf-profile-launch[hidden] {
  display: none !important;
}

.hf-profile-launch__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hf-profile-launch__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #09090b;
}

.hf-profile-launch__text {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #52525b;
}

.hf-profile-launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-profile-launch__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  color: #71717a;
  cursor: pointer;
}

.hf-profile-launch__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.hf-profile-launch__cta--primary {
  background: #0066cc;
  color: #fff;
}

.hf-profile-launch__cta--ghost {
  background: #fff;
  color: #52525b;
  border-color: #e4e4e7;
}
