/* Avive Clinic Online: the "Avive Clinic Online · formerly Cloud Clinic" pill above each page's heading. */
.avvc-badge {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	padding: 6px 16px 6px 8px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.05);
	color: #041e42;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.avvc-badge img {
	width: 26px;
	height: auto;
	flex: none;
}
.avvc-badge strong {
	font-weight: 600;
}

/* Section menu under the hero: rounded tabs, current page in navy, "Existing patients" links on the right. */
.avvc-subnav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}
.avvc-subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.avvc-subnav__label {
	margin-left: auto;
	padding-left: 16px;
	border-left: 1px solid #e3e9f0;
	color: #041e42;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
/* "nav.avvc-subnav" outranks the site's global link colours (teal on hover), which made hovered tabs teal on teal. */
nav.avvc-subnav a {
	display: block;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f0f0f0;
	color: #041e42;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s;
}
nav.avvc-subnav a:hover,
nav.avvc-subnav a:focus-visible {
	border-color: #00c7b1;
	background: #e0f7f4;
	color: #041e42;
}
nav.avvc-subnav a[aria-current="page"],
nav.avvc-subnav a[aria-current="page"]:hover {
	border-color: #041e42;
	background: #041e42;
	color: #fff;
}
/* Phones: one row that scrolls sideways. */
@media (max-width: 767px) {
	.avvc-subnav,
	.avvc-subnav ul {
		flex-wrap: nowrap;
	}
	.avvc-subnav {
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.avvc-subnav::-webkit-scrollbar {
		display: none;
	}
	.avvc-subnav__label {
		margin-left: 0;
	}
	.avvc-subnav ul:last-child {
		padding-right: 20px;
	}
}

/* Telehealth doctor cards ([avive_virtual_care_doctors]): the directory's cards and buttons, without its page padding. */
.avc.avvc-doctor-list {
	padding: 0;
}

/* Attend and Book lists: big full-width buttons (the photo links there too), the profile as a small link underneath. */
.avc.avvc-doctor-list--attend .avc-card__actions,
.avc.avvc-doctor-list--book .avc-card__actions {
	flex-wrap: wrap;
}
.avc.avvc-doctor-list--attend .avc-btn,
.avc.avvc-doctor-list--book .avc-btn {
	flex-basis: 100%;
	gap: 8px;
	min-height: 56px;
	padding: 14px 16px;
	font-size: 17px;
	white-space: nowrap;
}
.avc .avvc-btn-icon {
	flex: none;
	width: 20px;
	height: 20px;
}
/* Desktop: three across (six doctors make two even rows), photos kept to a sensible height in the wider cards.
   Tablets: two across. */
@media (min-width: 768px) {
	.avc.avvc-doctor-list--attend .avc-grid,
	.avc.avvc-doctor-list--book .avc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.avc.avvc-doctor-list--attend .avc-card__photo img,
	.avc.avvc-doctor-list--book .avc-card__photo img {
		height: 280px;
		object-fit: contain;
	}
}
@media (min-width: 1025px) {
	.avc.avvc-doctor-list--attend .avc-grid,
	.avc.avvc-doctor-list--book .avc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.avc .avvc-profile-link {
	flex-basis: 100%;
	color: #041e42;
	font-size: 14px;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Phones, Attend and Book lists: one compact row per doctor (round photo, name, button), so the whole list fits on
   about one screen and a patient finds their doctor without scrolling past big photo cards. */
@media (max-width: 767px) {
	.avc.avvc-doctor-list--attend .avc-grid,
	.avc.avvc-doctor-list--book .avc-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.avc.avvc-doctor-list--attend .avc-card,
	.avc.avvc-doctor-list--book .avc-card {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 12px;
	}
	.avc.avvc-doctor-list--attend .avc-card__photo,
	.avc.avvc-doctor-list--book .avc-card__photo {
		flex: none;
		width: 76px;
		height: 76px;
		overflow: hidden;
		border-radius: 50%;
	}
	.avc.avvc-doctor-list--attend .avc-card__photo img,
	.avc.avvc-doctor-list--book .avc-card__photo img,
	.avc.avvc-doctor-list--attend .avc-photo-placeholder,
	.avc.avvc-doctor-list--book .avc-photo-placeholder {
		display: block;
		width: 100%;
		height: 100%;
		aspect-ratio: 1;
	}
	.avc.avvc-doctor-list--attend .avc-card__body,
	.avc.avvc-doctor-list--book .avc-card__body {
		min-width: 0;
		padding: 0;
	}
	.avc.avvc-doctor-list--attend .avc-card__name,
	.avc.avvc-doctor-list--book .avc-card__name {
		font-size: 18px;
	}
	.avc.avvc-doctor-list--attend .avc-card__job,
	.avc.avvc-doctor-list--book .avc-card__job,
	.avc.avvc-doctor-list--attend .avc-card__location,
	.avc.avvc-doctor-list--book .avc-card__location,
	.avc.avvc-doctor-list--attend .avvc-profile-link,
	.avc.avvc-doctor-list--book .avvc-profile-link {
		display: none;
	}
	.avc.avvc-doctor-list--attend .avc-card__actions,
	.avc.avvc-doctor-list--book .avc-card__actions {
		padding-top: 8px;
	}
	.avc.avvc-doctor-list--attend .avc-btn,
	.avc.avvc-doctor-list--book .avc-btn {
		min-height: 44px;
		padding: 10px 16px;
		font-size: 16px;
	}
}

/* Phones: a big Attend button stays at the bottom of the screen (not on the Attend page itself). */
.avo-dock {
	display: none;
}
@media (max-width: 767px) {
	.avo-dock,
	.avo-dock:hover,
	.avo-dock:focus-visible {
		display: block;
		position: fixed;
		right: 12px;
		bottom: 12px;
		left: 12px;
		z-index: 9990;
		padding: 16px 20px;
		border-radius: 999px;
		background: #00c7b1;
		box-shadow: 0 4px 16px rgba(4, 30, 66, 0.3);
		color: #041e42;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
	}
	body.avo-has-dock {
		padding-bottom: 84px;
	}
}
