/* vCard creator — scoped overrides on Abutic Dot onboarding shell */

body.ab-vc-onboard footer,
body.ab-vc-onboard .footer {
  display: none !important;
}

/* Mobile layout — keep shell centered, prevent Finish-step overflow */
body.ab-vc-onboard {
  overflow-x: hidden;
}

body.ab-vc-onboard .ab-dot-onboard-main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.ab-vc-onboard .ab-dot-onboard-wrap {
  width: 100%;
  max-width: 26rem;
  min-width: 0;
  margin-inline: auto;
  justify-items: stretch;
  box-sizing: border-box;
}

body.ab-vc-onboard .ab-dot-onboard-card,
body.ab-vc-onboard .ab-dot-onboard-preview,
body.ab-vc-onboard .ab-vc-intro,
body.ab-vc-onboard .ab-vc-preview-label {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.ab-vc-onboard .ab-dot-onboard-form,
body.ab-vc-onboard .ab-dot-onboard-step {
  min-width: 0;
  max-width: 100%;
}

body.ab-vc-onboard .ab-vc-slug-claim,
body.ab-vc-onboard .ab-dot-onboard-link-claim__box {
  min-width: 0;
  max-width: 100%;
}

body.ab-vc-onboard .ab-dot-onboard-link-claim__box {
  flex-wrap: wrap;
  row-gap: 0.2rem;
  overflow: hidden;
}

body.ab-vc-onboard .ab-dot-onboard-link-claim__host {
  font-size: clamp(0.68rem, 3.2vw, 0.85rem);
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.ab-vc-onboard .ab-dot-onboard-link-claim__box input {
  flex: 1 1 5rem;
  min-width: 0 !important;
}

body.ab-vc-onboard .ab-vc-slug-preview a {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  body.ab-vc-onboard .ab-dot-onboard-link-claim__box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    min-height: 0;
  }

  body.ab-vc-onboard .ab-dot-onboard-link-claim__box input {
    width: 100% !important;
  }
}

/* Page intro — what is this for? */
.ab-vc-intro {
  display: grid;
  gap: 0.65rem;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin 0.3s ease;
  overflow: hidden;
}

.ab-vc-intro.is-collapsed {
  display: none;
}

.ab-vc-intro__title {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0f172a;
}

.ab-vc-intro__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 36rem;
}

.ab-vc-intro__pills {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ab-vc-intro__pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #334155;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.ab-vc-intro__pills i {
  font-size: 0.65rem;
  color: #0066cc;
}

.ab-vc-preview-label {
  margin: 0 0 -0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ab-vc-preview-label.is-hidden {
  display: none;
}

.ab-vc-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.vc-email-pref-wrap {
  margin: -0.25rem 0 0.15rem;
}

/* Photo upload — spaced card row, matches field labels */
.ab-vc-photo-block {
  position: relative;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ab-vc-photo-block__label {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

.ab-vc-photo-block__tap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ab-vc-photo-block__tap:hover {
  border-color: rgba(0, 102, 204, 0.22);
  background: rgba(239, 246, 255, 0.95);
}

.ab-vc-photo-block__tap:active {
  transform: scale(0.99);
}

.ab-vc-photo-block__tap.is-has-photo {
  border-color: rgba(0, 102, 204, 0.18);
  background: rgba(239, 246, 255, 0.85);
}

.ab-vc-photo-block__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 1rem;
}

.ab-vc-photo-block__tap.is-has-photo .ab-vc-photo-block__icon {
  color: #0066cc;
  border-color: rgba(0, 102, 204, 0.15);
  background: #fff;
}

.ab-vc-photo-block__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ab-vc-photo-block__copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.ab-vc-photo-block__copy span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.ab-dot-onboard-photo__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.ab-dot-onboard-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  font: inherit;
  font-size: 1rem;
  color: #0f172a;
  background: #fff;
  resize: vertical;
}

.ab-dot-onboard-field textarea:focus {
  outline: none;
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ab-vc-url-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.ab-vc-url-field > label {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

.ab-vc-url-field .url-control {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.ab-vc-url-field .url-line {
  display: flex;
  align-items: center;
}

.ab-vc-url-field .url-prefix {
  padding: 0 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.ab-vc-url-field .url-input {
  flex: 1;
  min-width: 0;
  border: 0;
  height: 3.25rem;
  padding: 0 1rem 0 0;
  font: inherit;
  font-size: 1rem;
  background: transparent;
}

.ab-vc-url-field .url-input:focus {
  outline: none;
}

.ab-vc-url-field .url-control:focus-within {
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ab-vc-more-link {
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0066cc;
  cursor: pointer;
}

#more-websites {
  display: none;
}

#more-websites.show {
  display: block;
}

.ab-vc-slug-claim .muted,
.muted {
  color: #64748b;
  font-weight: 500;
}

.ab-vc-slug-preview {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.ab-vc-slug-preview a {
  color: #0066cc;
  word-break: break-all;
}

.ab-vc-slug-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ab-vc-slug-pills .pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.ab-vc-pw-wrap {
  position: relative;
}

.ab-vc-pw-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 2.75rem;
}

.ab-vc-pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
}

.ab-vc-pw-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  margin-bottom: 0.15rem;
}

.ab-vc-pw-meter__bar {
  display: flex;
  gap: 3px;
  width: 120px;
}

.ab-vc-pw-meter__bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}

.ab-vc-pw-meter #pwLabel {
  font-size: 0.72rem;
  font-weight: 600;
}

.ab-vc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.ab-vc-overlay[hidden] {
  display: none !important;
}

.ab-vc-overlay__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* iOS Safari zooms focused inputs under 16px — keep tap targets readable */
@media (max-width: 768px) {
  body.ab-vc-onboard .ab-dot-onboard-field input,
  body.ab-vc-onboard .ab-dot-onboard-field textarea,
  body.ab-vc-onboard .ab-vc-pw-wrap input,
  body.ab-vc-onboard .ab-dot-onboard-link-claim__box input,
  body.ab-vc-onboard .ab-vc-url-field .url-input {
    font-size: 16px !important;
  }
}
