/*
 * Summersdale Pharmacy – content styles.
 * Loaded on the website and inside the WordPress editor, so pages look the
 * same while you edit them.
 */

:root {
	--sd-brand: #e11a22; /* logo red: buttons, red bands, icons */
	--sd-red: #b5121b; /* darker red for small text, so it stays readable */
	--sd-red-dark: #8f0d14;
	--sd-red-deep: #5e0a10;
	--sd-ink: #241314;
	--sd-text: #33292a;
	--sd-muted: #5c4f50;
	--sd-line: #ece3e3;
	--sd-line-strong: #e2c6c8;
	--sd-blush: #fbefef;
	--sd-cream: #faf6f5;
	--sd-yellow: #f2b705;
	--sd-yellow-soft: #fdf1c7;
	--sd-on-red: #fbe3e4;
	--sd-wide: 1200px;
	--sd-narrow: 760px;
	--sd-gutter: clamp(16px, 4vw, 24px);
	--sd-radius: 20px;
	--sd-shadow: 0 12px 32px rgba(94, 10, 16, 0.1);
	--sd-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sd-check-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--sd-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5121b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--sd-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241314' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

/* ---------- Base type ---------- */

body {
	font-family: var(--sd-font);
	color: var(--sd-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
	font-family: var(--sd-font);
	color: var(--sd-ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--sd-red); text-underline-offset: 3px; }
a:hover { color: var(--sd-red-dark); }

.sd-eyebrow {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sd-red);
	line-height: 1.4;
}

.sd-lead {
	font-size: clamp(18px, 1.6vw, 20px);
	line-height: 1.6;
	color: var(--sd-muted);
}

.sd-note {
	font-size: 15px;
	color: var(--sd-muted);
}

.sd-strong {
	font-weight: 800;
	color: var(--sd-ink);
}

.sd-big {
	font-size: clamp(40px, 5vw, 52px);
	font-weight: 800;
	color: var(--sd-ink);
	line-height: 1;
	letter-spacing: -0.03em;
}

/* ---------- Full-width bands ---------- */

.sd-band {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(56px, 7vw, 88px);
	background: #fff;
}

.sd-band > * {
	max-width: var(--sd-wide);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--sd-gutter);
	padding-right: var(--sd-gutter);
	box-sizing: border-box;
}

.sd-band > * { margin-top: 0; margin-bottom: 0; }
.sd-band > * + * { margin-top: 20px; }
.sd-band > .sd-eyebrow + * { margin-top: 10px; }
.sd-band > .sd-grid,
.sd-band > .wp-block-table,
.sd-band > .wp-block-columns { margin-top: 40px; }
.sd-band > .wp-block-columns:first-child,
.sd-band > .sd-grid:first-child { margin-top: 0; }

.sd-band--narrow > * { max-width: calc(var(--sd-narrow) + 2 * var(--sd-gutter)); }
.sd-band--tight { padding-top: 32px; padding-bottom: 32px; }
.sd-band--blush { background: var(--sd-blush); }
.sd-band--cream { background: var(--sd-cream); }
.sd-band--lined { border-top: 1px solid var(--sd-line); border-bottom: 1px solid var(--sd-line); }

.sd-band--red { background: var(--sd-brand); color: #fff; }
.sd-band--red h1, .sd-band--red h2, .sd-band--red h3, .sd-band--red h4 { color: #fff; }
.sd-band--red .sd-eyebrow { color: #fff; }
.sd-band--red .sd-lead, .sd-band--red .sd-note, .sd-band--red p { color: #fff; }
.sd-band--red a { color: #fff; }

/* Section intro: eyebrow + heading + short paragraph */
.sd-intro > * { max-width: 720px; margin-top: 0; margin-bottom: 0; }
.sd-intro > * + * { margin-top: 14px; }
.sd-intro > .sd-eyebrow + * { margin-top: 10px; }
.sd-intro--center { text-align: center; }
.sd-intro--center > * { margin-left: auto; margin-right: auto; }

/* ---------- Columns ---------- */

.sd-band .wp-block-columns,
.sd-content .wp-block-columns { gap: clamp(28px, 4vw, 56px); }
.sd-split { align-items: center !important; }
.wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.wp-block-column > * + * { margin-top: 20px; }
.wp-block-column > .sd-eyebrow + * { margin-top: 10px; }

/* ---------- Hero ---------- */

.sd-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.sd-hero .wp-block-columns { align-items: center !important; }
.sd-hero h1 { font-size: clamp(38px, 5.2vw, 58px); margin: 0; }
.sd-hero .sd-lead { max-width: 600px; }
.sd-hero .wp-block-column.sd-hero__main { flex-grow: 1.45; }
.sd-hero--compact { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.sd-hero--compact h1 { font-size: clamp(34px, 4.6vw, 50px); }

/* ---------- Buttons ---------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-intro--center + .wp-block-buttons,
.sd-cta .wp-block-buttons { justify-content: center; }

body .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 26px;
	border-radius: 999px;
	border: 2px solid var(--sd-brand);
	background: var(--sd-brand);
	color: #fff;
	font-family: var(--sd-font);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

body .wp-block-button__link:hover,
body .wp-block-button__link:focus-visible {
	background: var(--sd-red);
	border-color: var(--sd-red);
	color: #fff;
}

body .wp-block-button.is-style-outline { color: var(--sd-red); }
body .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--sd-red);
	border: 2px solid currentColor;
	padding: 13px 26px;
}
body .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--sd-blush);
	color: var(--sd-red-dark);
}

body .sd-band--red .wp-block-button__link {
	background: #fff;
	border-color: #fff;
	color: var(--sd-red);
}
body .sd-band--red .wp-block-button__link:hover {
	background: var(--sd-on-red);
	border-color: var(--sd-on-red);
	color: var(--sd-red-deep);
}
body .sd-band--red .wp-block-button.is-style-outline { color: #fff; }
body .sd-band--red .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; }
body .sd-band--red .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Panels ---------- */

.sd-panel {
	position: relative;
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	padding: 28px;
}
.sd-panel > * { margin-top: 0; margin-bottom: 0; }
.sd-panel > * + * { margin-top: 14px; }
.sd-panel h2, .sd-panel h3 { font-size: 22px; }

.sd-panel--yf { padding-top: 96px; }
.sd-panel--yf::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 28px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sd-yellow) var(--sd-shield) center / 26px no-repeat;
}

.sd-panel--dark {
	background: var(--sd-red-dark);
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: none;
	color: #fff;
}
.sd-panel--dark h2, .sd-panel--dark h3 { color: #fff; }
.sd-panel--dark p, .sd-panel--dark li { color: var(--sd-on-red); }

/* ---------- Lists ---------- */

.sd-checklist { list-style: none; margin: 0; padding: 0; }
.sd-checklist li { position: relative; padding-left: 34px; margin: 10px 0; line-height: 1.5; }
.sd-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--sd-brand) var(--sd-check-red) center / 13px no-repeat;
}
.sd-band--red .sd-checklist li::before,
.sd-panel--dark .sd-checklist li::before { background: #fff var(--sd-check-white) center / 13px no-repeat; }

.sd-timeline { list-style: none; margin: 0; padding: 0; }
.sd-timeline li { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); line-height: 1.5; }
.sd-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-timeline li:first-child { padding-top: 4px; }
.sd-timeline strong { display: block; color: var(--sd-yellow); font-size: 18px; font-weight: 800; margin-bottom: 2px; }

.sd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-chips li {
	margin: 0;
	padding: 5px 11px;
	border-radius: 8px;
	background: var(--sd-blush);
	color: var(--sd-red-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}
.sd-chips li.sd-chip--yf { background: var(--sd-yellow-soft); color: #4a3800; }

/* ---------- Grids and cards ---------- */

.sd-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.sd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.sd-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }
.sd-grid > * { margin: 0 !important; }

.sd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sd-card > * { margin: 0 !important; }
.sd-card:hover { border-color: var(--sd-line-strong); box-shadow: var(--sd-shadow); transform: translateY(-2px); }
.sd-card:focus-within { outline: 3px solid var(--sd-yellow); outline-offset: 2px; }
.sd-card h2, .sd-card h3 { font-size: 20px; line-height: 1.25; }
.sd-card h2 a, .sd-card h3 a { color: var(--sd-ink); text-decoration: none; }
.sd-card h2 a:focus-visible, .sd-card h3 a:focus-visible { outline: none; }
.sd-card h2 a::after, .sd-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sd-card p { font-size: 15px; line-height: 1.55; color: var(--sd-muted); }
.sd-card .sd-price { margin-top: auto !important; padding-top: 6px; font-size: 16px; font-weight: 800; color: var(--sd-ink); }
.sd-card .sd-price::after { content: "\00a0\2192"; color: var(--sd-red); }

.sd-tag {
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sd-red) !important;
	line-height: 1.4 !important;
}

.sd-band--red .sd-card { background: var(--sd-red); border-color: rgba(255, 255, 255, 0.25); }
.sd-band--red .sd-card:hover { border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
.sd-band--red .sd-card h3 a { color: #fff; }
.sd-band--red .sd-card p { color: #fff; }

/* Plain feature items (no border) */
.sd-feature > * { margin: 0 !important; }
.sd-feature > * + * { margin-top: 6px !important; }
.sd-feature .sd-strong { font-size: 17px; }
.sd-feature p:not(.sd-strong) { font-size: 15px; color: var(--sd-muted); line-height: 1.5; }

/* Numbered steps */
.sd-steps { counter-reset: sd-step; }
.sd-step { counter-increment: sd-step; }
.sd-step > * { margin: 0 !important; }
.sd-step > * + * { margin-top: 8px !important; }
.sd-step h3 { font-size: 20px; }
.sd-step h3::before {
	content: counter(sd-step);
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--sd-blush);
	color: var(--sd-red);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
}
.sd-step p { color: var(--sd-muted); }

/* ---------- Tables ---------- */

.wp-block-table.sd-table {
	margin: 0;
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
}
.wp-block-table.sd-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table.sd-table thead { border-bottom: 0; }
.wp-block-table.sd-table th,
.wp-block-table.sd-table td {
	padding: 15px 22px;
	border: 0;
	border-bottom: 1px solid var(--sd-line);
	text-align: left;
	vertical-align: top;
}
.wp-block-table.sd-table thead th {
	background: var(--sd-cream);
	color: var(--sd-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wp-block-table.sd-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.sd-table td:last-child,
.wp-block-table.sd-table th:last-child { text-align: right; white-space: nowrap; }
.wp-block-table.sd-table td:last-child { font-weight: 800; color: var(--sd-ink); }

.sd-panel .wp-block-table.sd-table { border: 0; border-radius: 0; box-shadow: none; }

/* ---------- FAQs ---------- */

.wp-block-details.sd-faq {
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: 16px;
	padding: 0;
}
.sd-band > .sd-faq + .sd-faq { margin-top: 12px; }
.sd-band--narrow > .wp-block-details.sd-faq { max-width: var(--sd-narrow); }
.sd-faq summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	padding: 20px 60px 20px 24px;
	font-weight: 800;
	font-size: 17px;
	color: var(--sd-ink);
	line-height: 1.4;
}
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	font-weight: 500;
	color: var(--sd-red);
	line-height: 1;
}
.sd-faq[open] summary::after { content: "\2013"; }
.sd-faq > :not(summary) { margin: 0; padding: 0 24px 20px; color: var(--sd-muted); }

/* ---------- Call-to-action band ---------- */

.sd-cta { text-align: center; }
.sd-cta > p { max-width: calc(640px + 2 * var(--sd-gutter)); }

/* ---------- Opening hours (shortcode) ---------- */

.sd-hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.sd-hours th, .sd-hours td { padding: 10px 0; border-bottom: 1px solid var(--sd-line); text-align: left; vertical-align: top; }
.sd-hours td { text-align: right; font-weight: 700; color: var(--sd-ink); }
.sd-hours th { font-weight: 600; }
.sd-hours tr:last-child th, .sd-hours tr:last-child td { border-bottom: 0; }

/* ---------- Embedded booking ---------- */

.sd-embed iframe { width: 100%; min-height: 760px; border: 0; border-radius: 16px; background: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.sd-hero .wp-block-columns { gap: 36px; }
	.sd-panel { padding: 24px; }
	.sd-panel--yf { padding-top: 92px; }
	.sd-panel--yf::before { left: 24px; top: 24px; }
	.wp-block-table.sd-table th, .wp-block-table.sd-table td { padding: 13px 16px; font-size: 15px; }
	.sd-card { padding: 22px; }
}

/* Headings followed by tables (price lists) */
.sd-band > h2 + .wp-block-table { margin-top: 16px; }
.sd-band > .wp-block-table + h2 { margin-top: 56px; }
.sd-band > .wp-block-table + .sd-note { margin-top: 24px; }
.sd-reviews__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
a[href^="tel:"] { white-space: nowrap; }

/* Links inside small labels */
.sd-eyebrow a { color: inherit; text-decoration: none; }
.sd-eyebrow a:hover { text-decoration: underline; }

/* "At a glance" panel on destination pages */
.sd-glance { list-style: none; margin: 0; padding: 0; }
.sd-glance li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--sd-line); line-height: 1.45; color: var(--sd-ink); font-weight: 600; }
.sd-glance li:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-glance li:first-child { padding-top: 4px; }
.sd-glance strong { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-red); }

/* Middle column of three-column tables stays light */
.wp-block-table.sd-table td:nth-child(2):not(:last-child) { color: var(--sd-muted); font-size: 15px; }

/* Illustrations */
.wp-block-image.sd-illus { margin: 0; text-align: center; }
.wp-block-image.sd-illus img { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }

/* Hero illustrations: decorative, so they step aside on phones */
.sd-hero .wp-block-column.sd-hero__art { flex-grow: 1; }
.sd-hero--compact .wp-block-image.sd-illus img { max-width: 340px; }
@media (max-width: 781px) {
	.sd-hero .wp-block-column.sd-hero__art { display: none; }
}

/* Destination vaccine tables: Vaccine | Who it's for | Price */
.wp-block-table.sd-table--who th:nth-child(2),
.wp-block-table.sd-table--who td:nth-child(2) { white-space: nowrap; }
@media (max-width: 1000px) {
	.wp-block-table.sd-table--who table,
	.wp-block-table.sd-table--who thead,
	.wp-block-table.sd-table--who tbody { display: block; }
	.wp-block-table.sd-table--who tr {
		display: grid;
		grid-template-columns: 1fr auto;
		column-gap: 16px;
		padding: 14px 18px;
		border-bottom: 1px solid var(--sd-line);
	}
	.wp-block-table.sd-table--who thead tr { background: var(--sd-cream); padding-top: 12px; padding-bottom: 12px; }
	.wp-block-table.sd-table--who tbody tr:last-child { border-bottom: 0; }
	.wp-block-table.sd-table--who th,
	.wp-block-table.sd-table--who td { padding: 0; border: 0; background: none; }
	.wp-block-table.sd-table--who th:nth-child(2) { display: none; }
	.wp-block-table.sd-table--who td:nth-child(1) { grid-column: 1; grid-row: 1; }
	.wp-block-table.sd-table--who td:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 3px; font-size: 14px; white-space: normal; }
	.wp-block-table.sd-table--who td:nth-child(3),
	.wp-block-table.sd-table--who th:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Photos ---------- */

.wp-block-image.sd-photo { margin: 0; }
.wp-block-image.sd-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 40%;
	border-radius: var(--sd-radius);
	box-shadow: 0 18px 40px rgba(60, 4, 8, 0.28);
}
.sd-hero .wp-block-column.sd-hero__photo { flex-grow: 1; }
.sd-hero .wp-block-image.sd-photo img { aspect-ratio: 1 / 1; }

/* "When to book" strip under the travel hero */
.sd-band--deep { background: var(--sd-red-deep); color: #fff; }
.sd-when { padding-top: 36px; padding-bottom: 40px; }
.sd-when > .sd-when__title {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sd-on-red);
}
.sd-when > .sd-when__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 40px;
	margin-top: 16px;
	list-style: none;
}
.sd-when__list li {
	margin: 0;
	padding-left: 16px;
	border-left: 2px solid rgba(255, 255, 255, 0.25);
	color: var(--sd-on-red);
	font-size: 15px;
	line-height: 1.5;
}
.sd-when__list li strong { display: block; margin-bottom: 2px; color: #fff; font-size: 17px; }

/* Booking band with a photo (destination pages) */
.sd-cta--photo { text-align: left; }
.sd-cta--photo .wp-block-buttons { justify-content: flex-start; }
.sd-cta--photo .wp-block-column.sd-cta__photo { flex-grow: 0.85; }
.sd-cta--photo .wp-block-column.sd-cta__text { flex-grow: 1.15; }
.sd-cta--photo .wp-block-image.sd-photo img { aspect-ratio: 4 / 3; object-position: 50% 45%; }

@media (max-width: 781px) {
	.sd-hero .wp-block-image.sd-photo img { aspect-ratio: 4 / 3; }
	.sd-cta--photo .wp-block-image.sd-photo img { aspect-ratio: 3 / 2; object-position: 50% 40%; }
	.sd-when > .sd-when__list { grid-template-columns: 1fr; gap: 16px; }
}

/* "Book your next dose" buttons on the travel page */
.sd-band > .sd-dose-buttons { margin-top: 28px; gap: 10px; }
.sd-dose-buttons .wp-block-button__link { min-height: 44px; padding: 9px 20px; font-size: 15px; background: #fff; }
.sd-dose-buttons .wp-block-button__link:hover { background: var(--sd-brand); color: #fff; }
.sd-band > .sd-dose-buttons + .sd-note { margin-top: 24px; }
.sd-band > .sd-note + h2 { margin-top: 56px; }

/* Photos in the shorter page banners */
.sd-hero--compact .wp-block-image.sd-photo img { aspect-ratio: 4 / 3; object-position: 55% 50%; }

/* "Reviewed by" pharmacist line */
.sd-reviewed { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--sd-muted); }
.sd-reviewed__icon { flex: none; margin-top: 1px; color: var(--sd-red); }
.sd-reviewed strong { color: var(--sd-ink); font-weight: 700; }
.sd-band--red .sd-reviewed, .sd-band--red .sd-reviewed strong, .sd-band--red .sd-reviewed__icon { color: #fff; }
.sd-hero .wp-block-column > .sd-reviewed { margin-top: 24px; }
.sd-meta strong { font-weight: 700; }

/* "Quick answer" box at the start of articles */
.sd-answer { padding: 20px 24px; background: var(--sd-blush); border-left: 4px solid var(--sd-brand); border-radius: 12px; }
.sd-answer > * { margin: 0; }
.sd-answer > * + * { margin-top: 8px; }
.sd-answer__label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sd-red); }

/* Text tables in articles (two columns of sentences) */
.wp-block-table.sd-table--text td:last-child,
.wp-block-table.sd-table--text th:last-child { text-align: left; white-space: normal; font-weight: 400; color: var(--sd-text); }
.wp-block-table.sd-table--text td:first-child { font-weight: 700; color: var(--sd-ink); min-width: 9em; }
@media (max-width: 560px) {
	.wp-block-table.sd-table--text table,
	.wp-block-table.sd-table--text tbody,
	.wp-block-table.sd-table--text tr,
	.wp-block-table.sd-table--text td { display: block; }
	.wp-block-table.sd-table--text thead { display: none; }
	.wp-block-table.sd-table--text tr { padding: 14px 18px; border-bottom: 1px solid var(--sd-line); }
	.wp-block-table.sd-table--text tbody tr:last-child { border-bottom: 0; }
	.wp-block-table.sd-table--text td { padding: 0; border: 0; }
	.wp-block-table.sd-table--text td + td { margin-top: 4px; }
}
.sd-content .sd-answer + * { margin-top: 28px; }

/* "Book a Pharmacy First appointment" buttons on the NHS services page */
.sd-band > .sd-book-title { margin-top: 48px; font-size: 20px; }
.sd-band > .sd-book-title + .sd-dose-buttons { margin-top: 16px; }

/* ---------- Videos ---------- */

.sd-video { position: relative; }
.sd-video__media { display: block; width: 100%; height: auto; background: var(--sd-blush); }
.sd-videoband { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.sd-video--feature .sd-video__media { aspect-ratio: 16 / 9; border-radius: var(--sd-radius); box-shadow: var(--sd-shadow); }
.sd-photo--video .sd-video__media {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: var(--sd-radius);
	box-shadow: 0 18px 40px rgba(60, 4, 8, 0.28);
}
@media (max-width: 781px) {
	.sd-hero .sd-photo--video .sd-video__media { aspect-ratio: 4 / 3; }
}

.sd-video__btn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sd-red-deep);
	box-shadow: 0 6px 18px rgba(60, 4, 8, 0.18);
	cursor: pointer;
}
.sd-video__btn[hidden] { display: none; }
.sd-video__btn:hover { background: #fff; color: var(--sd-brand); }
.sd-video .sd-ico-pause { display: none; }
.sd-video.is-playing .sd-ico-pause { display: block; }
.sd-video.is-playing .sd-ico-play { display: none; }
/* Before it has played (phones): a "Watch the video" button. */
.sd-video__label { display: none; }
.sd-video.is-idle .sd-video__btn {
	right: auto;
	left: 50%;
	bottom: 7%;
	transform: translateX(-50%);
	grid-auto-flow: column;
	gap: 8px;
	width: auto;
	height: 48px;
	padding: 0 22px 0 16px;
	border-radius: 999px;
	background: var(--sd-brand);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.sd-video.is-idle .sd-video__label { display: inline; }
