/* Single-Sided Business Card (85 x 55 mm), Hero QR, QR Contacts Hub, and Live Editor */
.psy-bcard-theme-teal {
  --bcard-primary: #2d5bd5;
  --bcard-secondary: #2649c2;
  --bcard-accent: #3f84fe;
  --bcard-soft: #eef4ff;
  --bcard-border: #c7d9fe;
  --bcard-text: #0f172a;
  --bcard-qr-bg: linear-gradient(155deg, #3f84fe 0%, #2d5bd5 52%, #2649c2 100%);
}

.psy-bcard-theme-navy {
  --bcard-primary: #093fa1;
  --bcard-secondary: #0b2548;
  --bcard-accent: #38bdf8;
  --bcard-soft: #f0f7ff;
  --bcard-border: #bfdbfe;
  --bcard-text: #0f172a;
  --bcard-qr-bg: linear-gradient(155deg, #0c54cc 0%, #093fa1 55%, #0b2548 100%);
}

.psy-bcard-theme-sand {
  --bcard-primary: #87582c;
  --bcard-secondary: #123e82;
  --bcard-accent: #0c84fc;
  --bcard-soft: #fdf8f3;
  --bcard-border: #e6d3c1;
  --bcard-text: #1c1917;
  --bcard-qr-bg: linear-gradient(155deg, #1e4ea1 0%, #123e82 100%);
}

.psy-bcard-theme-slate {
  --bcard-primary: #08686e;
  --bcard-secondary: #083940;
  --bcard-accent: #0ccccc;
  --bcard-soft: #edfbfb;
  --bcard-border: #bce9e9;
  --bcard-text: #0f172a;
  --bcard-qr-bg: linear-gradient(155deg, #08686e 0%, #083940 100%);
}

/* Hero QR Card and Business Card Action Button */
.psy-profile-redesign .psy-profile-hero:has(> .psy-profile-intro):has(> .psy-hero-qr-card) {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) auto;
  align-items: center;
}

.psy-profile-redesign .psy-profile-hero:not(:has(> .psy-profile-intro)):has(> .psy-hero-qr-card) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.psy-hero-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #c7d9fe;
  box-shadow: 0 6px 18px rgba(38, 73, 194, 0.08);
  align-self: center;
  min-width: 126px;
}

.psy-hero-qr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2649c2;
}

.psy-hero-qr-thumb {
  display: block;
  width: 84px;
  height: 84px;
  padding: 5px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #3f84fe;
  box-shadow: 0 2px 6px rgba(45, 91, 213, 0.14);
}

.psy-hero-qr-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.psy-hero-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.psy-hero-qr-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #c7d9fe;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2649c2;
  text-decoration: none;
  line-height: 1.2;
}

.psy-hero-qr-link:hover {
  background: #dbe8ff;
  text-decoration: none;
}

.psy-profile-redesign .psy-action-bcard {
  background: #eef4ff;
  border-color: #c7d9fe;
  color: #2649c2;
}

.psy-profile-redesign .psy-action-bcard:hover {
  background: #dbe8ff;
  border-color: #93b8fe;
  color: #1e3fa8;
}

/* Single-Sided Card Section */
.psy-bcard-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.psy-bcard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.psy-bcard-section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Single Card Layout: 1:1 match to PDF 240.94 x 155.91 coordinate grid (85 x 55 mm) */
.psy-bcard-single {
  container-type: inline-size;
  --pt: calc(100cqw / 240.94);
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 240.94 / 155.91;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--bcard-border, #c7d9fe);
  box-shadow: 0 12px 28px rgba(38, 73, 194, 0.12);
  background: #ffffff;
  color: var(--bcard-text, #0f172a);
  display: grid;
  grid-template-columns: 67.2367% 32.7633%;
}

.psy-bcard-main-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #ffffff;
  padding-inline-start: calc(6.2 * var(--pt));
}

.psy-bcard-main-col::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(5 * var(--pt));
  background: var(--bcard-primary, #2d5bd5);
}

.psy-bcard-main-col::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(5 * var(--pt));
  width: calc(1.2 * var(--pt));
  background: var(--bcard-accent, #3f84fe);
}

.psy-bcard-front-head {
  height: calc(52.41 * var(--pt));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: calc(5.8 * var(--pt));
  padding: 0 calc(6 * var(--pt)) 0 calc(4.8 * var(--pt));
  background: var(--bcard-soft, #eef4ff);
  border-bottom: calc(0.7 * var(--pt)) solid var(--bcard-border, #c7d9fe);
}

.psy-bcard-avatar {
  width: calc(24.4 * var(--pt));
  height: calc(24.4 * var(--pt));
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: calc(0.85 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  background: var(--bcard-primary, #2d5bd5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: calc(8.8 * var(--pt));
}

.psy-bcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.psy-bcard-identity {
  flex: 1;
  min-width: 0;
}

.psy-bcard-name {
  margin: 0;
  font-size: calc(9.5 * var(--pt));
  font-weight: 800;
  line-height: 1.18;
  color: var(--bcard-text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psy-bcard-title {
  margin: calc(1.8 * var(--pt)) 0 0;
  font-size: calc(6.9 * var(--pt));
  font-weight: 700;
  color: var(--bcard-primary, #2d5bd5);
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psy-bcard-formats,
.psy-bcard-submeta {
  margin: calc(1.8 * var(--pt)) 0 0;
  font-size: calc(5.6 * var(--pt));
  color: #475569;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psy-bcard-front-body {
  padding: calc(7.5 * var(--pt)) calc(6 * var(--pt)) calc(4 * var(--pt)) calc(5.8 * var(--pt));
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--pt));
  flex: 1;
  min-width: 0;
}

.psy-bcard-tagline {
  margin: 0 0 calc(1.5 * var(--pt));
  font-size: calc(5.8 * var(--pt));
  line-height: 1.28;
  color: #475569;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psy-bcard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(3.8 * var(--pt));
}

.psy-bcard-list li {
  display: flex;
  align-items: center;
  gap: calc(3.5 * var(--pt));
  font-size: calc(6.6 * var(--pt));
  line-height: 1.22;
  color: #1e293b;
  min-width: 0;
}

.psy-bcard-tag {
  width: calc(25 * var(--pt));
  min-width: calc(25 * var(--pt));
  height: calc(9.6 * var(--pt));
  padding: 0 calc(1.5 * var(--pt));
  border-radius: 0;
  background: var(--bcard-soft, #eef4ff);
  border: calc(0.5 * var(--pt)) solid var(--bcard-border, #c7d9fe);
  color: var(--bcard-primary, #2d5bd5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(1.6 * var(--pt));
  font-size: calc(4.5 * var(--pt));
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.psy-bcard-tag i {
  font-size: calc(4.4 * var(--pt));
}

.psy-bcard-list li > span:not(.psy-bcard-tag):not(.psy-bcard-wa-tag):not(.psy-bcard-loc-lines),
.psy-bcard-list li > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.psy-bcard-list li[data-bcard-el="mobile-row"] > a,
.psy-bcard-list li[data-bcard-el="mobile-row"] > span[data-bcard-el="mobile"] {
  font-weight: 800;
}

.psy-bcard-list li.psy-bcard-row-loc {
  align-items: flex-start;
}

.psy-bcard-loc-lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.18;
  font-size: calc(6.4 * var(--pt));
}

.psy-bcard-loc-lines > a,
.psy-bcard-loc-lines > span:not(.psy-bcard-loc-landmark) {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psy-bcard-loc-lines > a:hover {
  color: var(--bcard-primary, #2d5bd5);
  text-decoration: underline;
}

.psy-bcard-loc-landmark {
  font-size: calc(5.6 * var(--pt));
  font-style: italic;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psy-bcard-list li > a:hover {
  color: var(--bcard-primary, #2d5bd5);
  text-decoration: underline;
}

.psy-bcard-wa-tag {
  display: inline-flex;
  align-items: center;
  gap: calc(1.5 * var(--pt));
  flex-shrink: 0;
  height: calc(8.2 * var(--pt));
  padding: 0 calc(2.5 * var(--pt));
  border-radius: 0;
  font-size: calc(4.5 * var(--pt));
  font-weight: 800;
  background: var(--bcard-soft, #eef4ff);
  border: calc(0.5 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  color: var(--bcard-primary, #2d5bd5);
}

.psy-bcard-front-foot {
  margin-top: auto;
  padding-top: calc(3.2 * var(--pt));
  border-top: calc(0.5 * var(--pt)) solid var(--bcard-border, #c7d9fe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(4 * var(--pt));
  font-size: calc(5.1 * var(--pt));
  color: var(--bcard-primary, #2d5bd5);
  font-weight: 600;
}

/* Right QR Panel */
.psy-bcard-qr-col {
  background: var(--bcard-secondary, #2649c2);
  color: #ffffff;
  border-inline-start: calc(1.5 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  border-top: calc(3.2 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  padding: calc(7 * var(--pt)) calc(4 * var(--pt)) calc(5.5 * var(--pt));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: calc(2 * var(--pt));
  text-align: center;
  min-width: 0;
}

.psy-bcard-qr-brand {
  font-size: calc(7.4 * var(--pt));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

.psy-bcard-qr-rule {
  display: block;
  width: calc(27 * var(--pt));
  height: calc(0.8 * var(--pt));
  background: #e2e8f0;
  margin-top: calc(-1 * var(--pt));
}

.psy-bcard-qr-sub {
  font-size: calc(4.6 * var(--pt));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
  line-height: 1.1;
}

.psy-bcard-qr-box {
  background: #ffffff;
  border: calc(0.9 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  border-radius: 0;
  padding: calc(3.6 * var(--pt));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(60 * var(--pt));
  height: calc(60 * var(--pt));
  box-shadow: none;
  flex-shrink: 0;
}

.psy-bcard-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.psy-bcard-seal {
  width: calc(40 * var(--pt));
  height: calc(40 * var(--pt));
  border-radius: 50%;
  background: var(--bcard-primary, #2d5bd5);
  border: calc(1.1 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(12.5 * var(--pt));
  font-weight: 800;
  color: #ffffff;
}

.psy-bcard-qr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(58 * var(--pt));
  height: calc(11.5 * var(--pt));
  padding: 0;
  border-radius: 0;
  background: var(--bcard-primary, #2d5bd5);
  border: calc(0.55 * var(--pt)) solid var(--bcard-accent, #3f84fe);
  color: #ffffff;
  font-size: calc(4.9 * var(--pt));
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.psy-bcard-qr-domain {
  font-size: calc(5.5 * var(--pt));
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

/* Action Buttons */
.psy-bcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.psy-bcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.psy-bcard-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: #94a3b8;
  text-decoration: none;
}

.psy-bcard-btn-primary {
  background: #2d5bd5;
  border-color: #2d5bd5;
  color: #ffffff;
}

.psy-bcard-btn-primary:hover {
  background: #2649c2;
  border-color: #2649c2;
  color: #ffffff;
}

.psy-bcard-btn-soft {
  background: #eef4ff;
  border-color: #c7d9fe;
  color: #2649c2;
}

.psy-bcard-btn-soft:hover {
  background: #dbe8ff;
  border-color: #93b8fe;
}

/* Minimal Header & Footer for Dedicated QR Contacts Page */
.psy-qr-min-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
}

.psy-qr-min-header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.psy-qr-min-brand {
  display: inline-flex;
  align-items: center;
}

.psy-qr-min-brand img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.psy-qr-min-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.psy-qr-min-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #c7d9fe;
  color: #2649c2;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.psy-qr-min-profile-link:hover {
  background: #dbe8ff;
  text-decoration: none;
}

.psy-qr-min-langs {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.psy-qr-min-langs a {
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
}

.psy-qr-min-langs a.is-active {
  background: #2d5bd5;
  color: #ffffff;
}

.psy-qr-min-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 0.8rem;
  color: #64748b;
}

.psy-qr-min-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.psy-qr-min-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.psy-qr-min-footer-links a {
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}

.psy-qr-min-footer-links a:hover {
  color: #2d5bd5;
  text-decoration: underline;
}

/* Dedicated QR Contacts Hub Page */
.psy-contacts-hub {
  --profile-blue: #2d5bd5;
  --profile-blue-hover: #2649c2;
  --profile-blue-soft: #eef4ff;
  --profile-blue-line: #c7d9fe;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 14px 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.psy-contacts-hero {
  background: linear-gradient(125deg, #ffffff 45%, #eef4ff 100%);
  border: 1px solid #c7d9fe;
  border-top: 3px solid #2d5bd5;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(38, 73, 194, 0.06);
}

.psy-contacts-hero-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 320px;
}

.psy-contacts-hero-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #3f84fe;
  background: #2d5bd5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
}

.psy-contacts-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.psy-contacts-hero-meta h1 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.psy-contacts-hero-sub {
  margin: 0 0 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #2d5bd5;
}

.psy-contacts-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.psy-contacts-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.psy-contacts-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
}

.psy-contacts-panel-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.psy-contacts-panel-title i {
  color: #2d5bd5;
}

.psy-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.psy-contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.15s ease;
}

.psy-contact-tile:hover {
  background: #eef4ff;
  border-color: #93b8fe;
  transform: translateY(-1px);
  text-decoration: none;
}

.psy-contact-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #c7d9fe;
  color: #2d5bd5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.psy-contact-tile-wa .psy-contact-tile-icon {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.psy-contact-tile-book .psy-contact-tile-icon {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.psy-contact-tile-body {
  min-width: 0;
  flex: 1;
}

.psy-contact-tile-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.psy-contact-tile-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.psy-contact-tile-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #475569;
  overflow-wrap: anywhere;
}

/* Business Card Editor in Admin and Practitioner Dashboard */
.psy-bcard-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.psy-bcard-editor-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.psy-bcard-theme-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.psy-bcard-theme-choice:has(input:checked) {
  border-color: #2d5bd5;
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(45, 91, 213, 0.16);
}

.psy-bcard-theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.psy-bcard-editor-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.psy-bcard-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.psy-bcard-editor-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.psy-bcard-editor-preview {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.psy-bcard-editor-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.psy-bcard-editor-preview-head strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.psy-contacts-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.psy-contacts-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #c7d9fe;
  color: #2649c2;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.psy-contacts-map-btn:hover {
  background: #2d5bd5;
  border-color: #2d5bd5;
  color: #ffffff;
  text-decoration: none;
}

.psy-contacts-map-address {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 12px;
}

.psy-contacts-map-address i {
  color: #2d5bd5;
  margin-top: 3px;
  flex-shrink: 0;
}

.psy-contacts-map-landmark {
  color: #64748b;
  font-size: 0.82rem;
}

.psy-contacts-map-frame {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c7d9fe;
  background: #f1f5f9;
}

.psy-contacts-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 960px) {
  .psy-profile-redesign .psy-profile-hero:has(> .psy-profile-intro):has(> .psy-hero-qr-card),
  .psy-profile-redesign .psy-profile-hero:not(:has(> .psy-profile-intro)):has(> .psy-hero-qr-card) {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-card {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 72px;
    min-width: 0;
    max-width: 72px;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(38, 73, 194, 0.1);
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-eyebrow {
    display: none;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-thumb {
    width: 58px;
    height: 58px;
    padding: 3px;
    border-radius: 7px;
    flex-shrink: 0;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-body {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-link {
    width: 100%;
    justify-content: center;
    padding: 2px 4px;
    font-size: 0.54rem;
    line-height: 1.12;
    white-space: normal;
    text-align: center;
    border-radius: 6px;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-link i {
    display: none;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-header-info {
    padding-inline-end: 82px;
  }
}

@media (max-width: 680px) {
  .profile-detail-design.psy-profile-page {
    padding-inline: 0 !important;
  }
  .profile-detail-design.psy-profile-page .psy-profile-container {
    padding-inline: 0 !important;
  }
  .profile-detail-design.psy-profile-page > .psy-profile-breadcrumbs {
    margin-inline: 10px !important;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero {
    border-radius: 0 !important;
    border-inline: 0 !important;
    padding: 14px 10px !important;
    gap: 14px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-card {
    top: 10px;
    inset-inline-end: 8px;
    width: 62px;
    max-width: 62px;
    padding: 3px;
    gap: 3px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-thumb {
    width: 48px;
    height: 48px;
    padding: 2px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-hero-qr-link {
    font-size: 0.52rem;
    padding: 2px 3px;
    line-height: 1.08;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-extra-specialties {
    gap: 5px;
    margin-top: 10px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-extra-specialties a {
    font-size: 0.72rem;
    padding: 3px 7px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-photo-lg {
    width: 68px;
    height: 68px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-header-wrap {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 4px 10px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-layout,
  .profile-detail-design.psy-profile-page .psy-bcard-section,
  .profile-detail-design.psy-profile-page .psy-claim-notice-banner,
  .profile-detail-design.psy-profile-page .psy-profile-directory-links {
    margin-inline: 6px;
  }
  .psy-contacts-hub {
    padding: 10px 0 88px !important;
    gap: 14px;
  }
  .psy-contacts-hero {
    border-radius: 0;
    border-inline: 0;
    padding: 14px 12px;
    gap: 12px;
  }
  .psy-contacts-hero-id {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px 11px;
    align-items: center;
    flex: 1 1 100%;
    width: 100%;
  }
  .psy-contacts-hero-photo {
    width: 54px;
    height: 54px;
    font-size: 1.05rem;
    grid-column: 1;
    grid-row: 1;
  }
  .psy-contacts-hero-meta {
    display: contents;
  }
  .psy-contacts-hero-heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .psy-contacts-hero-meta h1 {
    font-size: 1.24rem;
    margin: 0 0 2px;
    line-height: 1.2;
  }
  .psy-contacts-hero-sub {
    font-size: 0.84rem;
    margin: 0;
    line-height: 1.3;
  }
  .psy-contacts-hero-pills {
    grid-column: 1 / -1;
    gap: 6px;
  }
  .psy-contacts-pill {
    padding: 3px 9px;
    font-size: 0.74rem;
    gap: 5px;
  }
  .psy-contacts-hero .psy-bcard-actions {
    width: 100%;
    gap: 8px;
  }
  .psy-contacts-hero .psy-bcard-btn {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .psy-contacts-hero .psy-bcard-btn-primary {
    flex: 1 1 100%;
  }
  .psy-contacts-hero .psy-bcard-btn-soft {
    flex: 1 1 calc(50% - 4px);
  }
  .psy-contacts-hero .psy-bcard-btn:last-child {
    flex: 1 1 100%;
  }
  .psy-contacts-panel {
    margin-inline: 6px;
    padding: 16px 12px;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-header-info {
    padding-inline-end: 0;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-eyebrow {
    justify-self: start;
    margin-inline-end: 68px;
  }
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-title-row,
  .psy-profile-redesign .psy-profile-hero:has(> .psy-hero-qr-card) .psy-profile-specialty-line {
    padding-inline-end: 68px;
  }
}
