/* ==========================================================================
   Bristol University Press WooCommerce theme
   Design source: project/Bristol University Press Home Page.dc.html (1a) and
   project/Bristol University Press Product Page.dc.html, ProductCard.dc.html
   ========================================================================== */

:root {
	--bristol-text: #444;
	--bristol-heading: #494949;
	/*--bristol-muted: #8b959b;*/
	--bristol-muted: #444;
	--bristol-border: #e6e9eb;
	--bristol-border-strong: #d6dbde;
	--bristol-surface: #f1f1f1;
	--bristol-surface-alt: #f6f7f8;
	--bristol-green: #494949;
	--bristol-green-dark: #333;
	--bristol-green-text: /*#494949;*/ #fff;
	--bristol-green-text-hover: #333;
	--bristol-green-tint: #f0f0f0;
	--bristol-green-tint-strong: #e8e8e8;
	--bristol-green-tint-border: #d0d0d0;
	--bristol-dark: #313a40;
	--bristol-dark-border: #4a555c;
	--bristol-dark-surface: #3a444b;
	--bristol-dark-muted: #aeb6bb;
	--font: 'Poppins', system-ui, sans-serif;
	--font-heading: 'Poppins', system-ui, sans-serif;
}

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

body {
	margin: 0;
	background: #fff;
	font-family: var(--font);
	color: var(--bristol-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
}

.bristol-site * {
	box-sizing: border-box;
}

.bristol-site img {
	max-width: 100%;
	display: block;
}

.bristol-site a {
	color: #aa182c;
}

.bristol-site a:hover {
	color: #494949;
}

.bristol-site a.bristol-nav-link {
	color: var(--bristol-heading);
}

.bristol-site a.bristol-nav-link:hover {
	color: #aa182c;
	text-decoration: none;
}

.bristol-site a.bristol-sidebar__icon {
	color: #fff;
}

.bristol-site a.bristol-sidebar__icon:hover {
	color: #fff;
}

.bristol-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.bristol-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	font-weight: 600;
	font-size: 17px;
	padding: 13px 26px;
	border-radius: 2px;
	font-family: var(--font-heading);
	cursor: pointer;
	border: none;
	line-height: 1.3;
}

/*
 * `a.bristol-btn--primary` (not just `.bristol-btn--primary`) matches the base
 * `.bristol-site a { color: ... }` rule's specificity exactly, and this rule
 * is declared later in the cascade — so it wins for the many primary
 * buttons that are actual <a> tags (View publication, Proceed to checkout,
 * etc.) rather than <button> elements, which don't need the extra selector.
 */
.bristol-btn--primary,
a.bristol-btn--primary {
	background: #aa182c;
	color: #fff;
}

.bristol-btn--primary:hover,
a.bristol-btn--primary:hover {
	background: #494949;
	color: #fff;
}

.bristol-btn--outline {
	color: var(--bristol-text);
	border: 1.5px solid var(--bristol-border-strong);
	background: transparent;
	padding: 13px 22px;
}

.bristol-btn--outline:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

.bristol-link-strong {
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	color: var(--bristol-green-text);
}

/* ---- Sidebar layout ---------------------------------------------------- */

.bristol-site--with-sidebar {
	margin-left: 90px;
}

/* ---- Sidebar ------------------------------------------------------------ */

.bristol-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 90px;
	background: #494949;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 0 8px;
}

.bristol-sidebar__hamburger {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 16px 8px;
	font-family: var(--font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	width: 100%;
	text-align: center;
}

.bristol-sidebar__hamburger:hover {
	background: rgba(255, 255, 255, .12);
}

.bristol-sidebar__brand-link {
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 0;
}

.bristol-sidebar__brand-icon {
	width: 35px;
	height: auto;
}

.bristol-sidebar__icon,
.bristol-site a.bristol-sidebar__icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	padding: 16px 8px;
	width: 100%;
	position: relative;
}

.bristol-sidebar__icon:hover,
.bristol-site a.bristol-sidebar__icon:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.bristol-basket-count {
	position: absolute;
	top: 10px;
	right: 14px;
	background: #aa182c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 999px;
	min-width: 17px;
	height: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

/* ---- Nav overlay -------------------------------------------------------- */

.bristol-nav-overlay {
	position: fixed;
	inset: 0 0 0 90px;
	background: rgba(0, 0, 0, .45);
	z-index: 210;
}

/* ---- Nav panel ---------------------------------------------------------- */

.bristol-nav-panel {
	position: fixed;
	left: 90px;
	top: 0;
	bottom: 0;
	width: 300px;
	background: #fff;
	z-index: 220;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .25s ease, visibility .25s;
}

.bristol-nav-panel.is-open {
	transform: translateX(0);
	visibility: visible;
}

.bristol-nav-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 14px;
	border-bottom: 1px solid var(--bristol-border);
	flex: none;
}

.bristol-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex: none;
}

/*
 * Nested selector (2 classes) beats WooCommerce's own
 * ".woocommerce img, .woocommerce-page img { height: auto }" from
 * woocommerce-layout.css, which has higher specificity than a single class
 * and otherwise wins on any page where WooCommerce adds those body classes
 * (e.g. single product) but not on the home page.
 */
.bristol-logo .bristol-logo__img {
	height: 52px;
	width: auto;
}

.bristol-nav-panel__close {
	background: none;
	border: none;
	color: var(--bristol-muted);
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.bristol-nav-panel__close:hover {
	color: #aa182c;
}

/* ---- Main header bar (logo) + sub-bar ----------------------------------- */

.bristol-header-bar {
	background: #fff;
	padding: 20px 20px 20px 30px;
	display: flex;
	align-items: center;
	min-height: 80px;
}

.bristol-header-bar .bristol-logo__img {
	height: 80px;
	width: auto;
}

.bristol-nav-bar {
	background: #f1f1f1;
	height: 50px;
}

/* ---- CMS content page --------------------------------------------------- */

.bristol-cms-body {
	max-width: 820px;
	margin: 0 auto;
	padding: 48px 50px 64px;
	font-family: var(--font);
	font-size: 19px;
	line-height: 1.7;
	color: var(--bristol-text);
}

.bristol-cms-body h1,
.bristol-cms-body h2,
.bristol-cms-body h3 {
	font-family: var(--font-heading);
	color: var(--bristol-heading);
}

.bristol-cms-body a {
	color: var(--bristol-green-text);
	text-decoration: underline;
}

.bristol-cms-body img {
	max-width: 100%;
	height: auto;
	margin: 24px 0;
}

/* ---- Primary nav (vertical, inside panel) ------------------------------- */

.bristol-nav-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
}

.bristol-nav-item {
	position: relative;
}

.bristol-nav-row {
	display: flex;
	align-items: center;
}

.bristol-nav-link,
.bristol-site a.bristol-nav-link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--bristol-heading);
	font-size: 15.5px;
	font-weight: 600;
	padding: 11px 16px;
}

.bristol-nav-link:hover,
.bristol-site a.bristol-nav-link:hover {
	color: #aa182c;
	background: var(--bristol-surface);
	text-decoration: none;
}

.bristol-nav-badge {
	background: #aa182c;
	color: #fff;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 999px;
}

/*
 * The toggle button (and its caret) only exists once nav.js finds a
 * .sub-menu and inserts it — see assets/js/nav.js. Nothing renders here
 * with JS disabled, which is fine: the item's own link still works, it
 * just won't reveal a dropdown/accordion without JS.
 */
.bristol-nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 8px 14px;
	color: var(--bristol-muted);
	cursor: pointer;
	font: inherit;
}

.bristol-nav-toggle:hover {
	color: #aa182c;
}

.bristol-nav-caret {
	flex: none;
	transition: transform .15s ease;
}

.bristol-nav-item.is-open > .bristol-nav-row .bristol-nav-toggle .bristol-nav-caret {
	transform: rotate(180deg);
}

.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 4px;
	background: var(--bristol-surface);
	display: none;
	flex-direction: column;
}

.bristol-nav-item.is-open > .sub-menu,
.bristol-nav-item--has-children:focus-within > .sub-menu {
	display: flex;
}

.sub-menu .bristol-nav-item {
	width: 100%;
}

.sub-menu .bristol-nav-row {
	width: 100%;
}

.sub-menu .bristol-nav-link,
.bristol-site a.sub-menu .bristol-nav-link {
	flex: 1;
	padding: 9px 16px 9px 28px;
	font-weight: 400;
	font-size: 15px;
}

.sub-menu .bristol-nav-link:hover {
	background: var(--bristol-green-tint-strong);
	color: #aa182c;
}

.sub-menu .sub-menu .bristol-nav-link {
	padding-left: 40px;
}

.bristol-nav-hamburger {
	display: none;
}

/* ---- Mobile: sidebar collapses to a top bar ----------------------------- */

@media (max-width: 900px) {
	.bristol-site--with-sidebar {
		margin-left: 0;
		margin-top: 60px;
	}

	.bristol-sidebar {
		bottom: auto;
		right: 0;
		width: 100%;
		height: 60px;
		flex-direction: row;
		justify-content: flex-end;
		padding: 0;
	}

	.bristol-sidebar__brand-link {
		margin-top: 0;
		padding: 16px 14px;
	}

	.bristol-sidebar__hamburger {
		flex-direction: row;
		gap: 8px;
		padding: 0 16px;
		height: 100%;
		width: auto;
		font-size: 13px;
		font-weight: 600;
		text-transform: none;
		letter-spacing: 0;
	}

	.bristol-sidebar__icon,
	.bristol-site a.bristol-sidebar__icon {
		width: auto;
		height: 100%;
		padding: 0 14px;
		flex-direction: row;
	}

	.bristol-basket-count {
		top: 10px;
		right: 6px;
	}

	.bristol-nav-overlay {
		inset: 60px 0 0 0;
	}

	.bristol-nav-panel {
		left: 0;
		top: 60px;
		width: min(300px, 85vw);
	}
	
	.bristol-header-bar {
		padding: 15px 20px;
	}
}

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

.bristol-hero {
	background: var(--bristol-surface);
	border-bottom: 1px solid var(--bristol-border);
}

.bristol-hero__inner {
	padding: 62px 50px;
	display: flex;
	gap: 60px;
	align-items: center;
}

.bristol-hero__copy {
	flex: 1.15;
}

.bristol-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 20px;
	color: var(--bristol-green-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
}

.bristol-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--bristol-green);
	display: inline-block;
}

.bristol-hero__title {
	margin: 0 0 18px;
	font-size: 48px;
	line-height: 1.08;
	font-weight: 700;
	color: var(--bristol-heading);
	letter-spacing: -.01em;
	text-wrap: balance;
}

.bristol-hero__desc {
	margin: 0 0 22px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--bristol-text);
	max-width: 520px;
}

.bristol-hero__meta {
	margin-bottom: 28px;
	font-size: 15px;
	color: var(--bristol-muted);
}

.bristol-hero__buy {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.bristol-hero__price {
	font-size: 32px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-right: 4px;
}

.bristol-hero__price .bristol-from,
.bristol-card__price .bristol-from {
	font-size: 16px;
	font-weight: 400;
	color: var(--bristol-muted);
}

.bristol-hero__note {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--bristol-muted);
}

.bristol-hero__cover {
	flex: .85;
	display: flex;
	justify-content: center;
	position: relative;
}

.bristol-hero__cover-frame {
	position: relative;
	width: 300px;
	aspect-ratio: 768 / 1124;
	border-radius: 2px;
	box-shadow: 0 18px 44px rgba(49, 58, 64, .22);
	overflow: hidden;
	background: #eef1f2;
}

.bristol-hero__cover-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bristol-hero__ribbon {
	position: absolute;
	top: -12px;
	left: -12px;
	background: var(--bristol-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 7px 13px;
	border-radius: 2px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

/* ---- Generic sections ------------------------------------------------ */

.bristol-section {
	background: #fff;
	padding: 56px 0;
	border-bottom: 1px solid var(--bristol-border);
}

.bristol-section--muted {
	background: var(--bristol-surface-alt);
}

.bristol-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 26px;
	gap: 20px;
	flex-wrap: wrap;
}

.bristol-section__eyebrow {
	color: var(--bristol-green-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 6px;
}

.bristol-section__title {
	margin: 0 0 18px 0;
	font-size: 30px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-section__sub {
	margin: 6px 0 0;
	font-size: 16.5px;
	color: var(--bristol-muted);
}

.bristol-section__controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bristol-section__footer {
	display: flex;
	justify-content: center;
	margin-top: 38px;
}

.bristol-carousel-nav {
	display: flex;
	gap: 8px;
}

.bristol-carousel-btn {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1.5px solid var(--bristol-border-strong);
	background: #fff;
	color: var(--bristol-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bristol-carousel-btn:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

.bristol-carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2px 0 6px;
	scrollbar-width: none;
}

.bristol-carousel::-webkit-scrollbar {
	display: none;
}

.bristol-carousel__item {
	flex: 0 0 216px;
	scroll-snap-align: start;
}

/* ---- Browse by subject ----------------------------------------------- */

.bristol-subjects {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.bristol-subject-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--bristol-border);
	border-radius: 2px;
	text-decoration: none;
	transition: all .16s ease;
	color: var(--bristol-green);
}

.bristol-subject-card:hover {
	border-color: var(--bristol-green);
	background: #f7fbf0;
}

.bristol-subject-card__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 3px;
}

.bristol-subject-card__count {
	font-size: 14.5px;
	color: var(--bristol-muted);
}

/* ---- Latest publications grid ---------------------------------------- */

.bristol-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* ---- Product card ------------------------------------------------------ */

.bristol-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--bristol-border);
	border-radius: 2px;
	overflow: hidden;
}

.bristol-card__cover {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 768 / 1124;
	background: #eef1f2;
	border-bottom: 1px solid var(--bristol-border);
}

.bristol-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bristol-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--bristol-green);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 2px;
	letter-spacing: .02em;
}

.bristol-card__info {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 14px 14px 15px;
	flex: 1;
	background: var(--bristol-surface);
	border-top: 1px solid var(--bristol-border);
}

.bristol-card__title {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bristol-heading);
	text-decoration: none;
	text-wrap: pretty;
}

.bristol-card__title:hover {
	color: #aa182c;
}

.bristol-card__ref {
	font-size: 14px;
	color: var(--bristol-muted);
	font-weight: 600;
	letter-spacing: .02em;
}

.bristol-card__formats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bristol-pill {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bristol-text);
	background: #fff;
	border: 1px solid var(--bristol-border);
	padding: 3px 8px;
	border-radius: 999px;
}

.bristol-card__price {
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-top: auto;
}

.bristol-card__cta {
	width: 100%;
	text-align: center;
	font-family: var(--font-heading);
	font-size: 14.5px;
	font-weight: 700;
	color: #fff;
	background: var(--bristol-green);
	border: 1.5px solid var(--bristol-green);
	border-radius: 2px;
	padding: 9px 12px;
	cursor: pointer;
	transition: all .16s ease;
	text-decoration: none;
	box-sizing: border-box;
}

.bristol-card__cta:hover {
	background: var(--bristol-green-dark);
	border-color: var(--bristol-green-dark);
	color: #fff;
}

/* ---- Footer upper ------------------------------------------------------- */

.bristol-footer-upper {
	background: #f1f1f1;
	width: 100%;
	padding-bottom: 25px;
	color: #494949;
	font-weight: 700;
	font-size: 22px;
}

.bristol-footer-upper img {
	margin-top: 15px;
	padding-left: 20px;
	float: right;
}

.bristol-footer-upper .bristol-wrap {
	padding-block: 2rem;
}

/* ---- Footer ------------------------------------------------------------ */

.bristol-footer {
	background: #fff;
	color: #2a2a2a;
}

.bristol-footer__cols {
	padding: 50px 20px 30px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 44px;
}

/* Same specificity fix as .bristol-logo__img — see comment above it. */
.bristol-footer .bristol-footer__logo {
	height: 80px;
	width: auto;
	margin-bottom: 16px;
}

.bristol-footer__col.bristol-footer__brand {
	font-size: 14px;
}

.bristol-footer__brand p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
	max-width: 300px;
}

.bristol-footer__heading {
	font-size: 1.25rem;
	font-weight: 500;
	color: #2a2a2a;
	margin-bottom: 14px;
}

.bristol-footer__col a {
	display: block;
	color: #aa182c;
	text-decoration: none;
	font-size: 15.5px;
	margin-bottom: 10px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-weight: 600;
}

/*
 * Widget content in the footer columns (e.g. a Navigation Menu or Custom
 * HTML widget added via Appearance > Widgets) — reset list markup so it
 * matches the plain link-stack look, and space out multiple widgets
 * dropped into the same column.
 */
.bristol-footer__widget {
	margin-bottom: 20px;
}

.bristol-footer__widget:last-child {
	margin-bottom: 0;
}

.bristol-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bristol-footer__col p {
	font-size: 15.5px;
	line-height: 1.65;
}

.bristol-footer__col a:hover {
	color: #aa182c;
	text-decoration: underline;
}

.bristol-footer__newsletter p {
	margin: 0 0 12px;
	font-size: 15.5px;
	line-height: 1.6;
}

.bristol-newsletter {
	display: flex;
	border: 1px solid var(--bristol-dark-border);
	border-radius: 2px;
	overflow: hidden;
	background: var(--bristol-dark-surface);
}

.bristol-newsletter input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	padding: 10px 12px;
	font-family: var(--font-heading);
	font-size: 15px;
	color: #fff;
}

.bristol-newsletter button {
	background: var(--bristol-green);
	color: #fff;
	border: none;
	padding: 10px 16px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.bristol-newsletter button:hover {
	background: var(--bristol-green-dark);
}

.bristol-footer__legal {
	background: #f1f1f1;
	color: #2a2a2a;
}

.bristol-footer__legal-inner {
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 14.5px;
	color: #2a2a2a;
	flex-wrap: wrap;
}

.bristol-footer__legal-links {
	display: flex;
	gap: 20px;
}

.bristol-footer__legal-links a {
	color: var(--bristol-muted);
	text-decoration: none;
}

.bristol-footer__legal-links a:hover {
	color: #fff;
}

.bristol-footer__social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bristol-footer__social .bristol-footer__social-link {
	display: flex;
	align-items: center;
	color: #aa182c;
	border: 2px solid #aa182c;
	border-radius: 50%;
	padding: 8px;
	transition: color .15s ease, border-color .15s ease;
}

.bristol-footer__social .bristol-footer__social-link:hover {
	color: #494949;
	border-color: #494949;
}

.bristol-social-links {
	display: flex;
	gap: 14px;
	align-items: center;
}

.bristol-social-link {
	display: inline-flex;
	color: var(--bristol-dark-muted);
	text-decoration: none;
	transition: color .15s ease;
}

.bristol-social-link:hover {
	color: #fff;
}

.bristol-social-link svg {
	width: 28px;
	height: auto;
	display: block;
}

/* ---- Breadcrumb (single product) -------------------------------------- */

.bristol-breadcrumb {
	background: #fff;
	border-bottom: 1px solid #f0f2f3;
}

.woocommerce-breadcrumb {
	margin: 1em 0;
	padding: 14px 0;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	color: var(--bristol-muted);
	flex-wrap: wrap;
}

.woocommerce .woocommerce-breadcrumb {
	margin: 1em 0 1em;
}

.woocommerce-breadcrumb a {
	color: var(--bristol-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: #aa182c;
}

.bristol-breadcrumb__sep {
	margin: 0 2px;
}

/* ---- Single product ---------------------------------------------------- */

.bristol-product {
	background: #fff;
}

.bristol-product__inner {
	padding: 44px 50px 52px;
	display: flex;
	gap: 56px;
	align-items: flex-start;
}

.bristol-product__cover {
	flex: 0 0 290px;
	position: sticky;
	top: 24px;
}

.bristol-product__cover-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 768 / 1124;
	background: #eef1f2;
	border: 1px solid var(--bristol-border);
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(49, 58, 64, .16);
}

.bristol-product__cover-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bristol-product__buy {
	flex: 1;
	min-width: 0;
}

.bristol-product__cat {
	display: inline-block;
	color: var(--bristol-green-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	text-decoration: none;
	margin-bottom: 12px;
}

.bristol-product__title {
	margin: 30px 0 30px;
	font-size: 36px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--bristol-heading);
	letter-spacing: -.01em;
	text-wrap: balance;
}

.bristol-product__subtitle {
	font-size: 20px;
	color: var(--bristol-muted);
	margin: -18px 0 18px;
	line-height: 1.4;
}

.bristol-product__author {
	font-size: 17.5px;
	color: var(--bristol-text);
	font-weight: 600;
	margin-bottom: 18px;
}

.bristol-product__meta {
	margin-bottom: 28px;
	font-size: 15.5px;
	color: var(--bristol-muted);
}

/* ---- Grouped buy box ----------------------------------------------------- */

.bristol-buybox {
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-surface);
	border-radius: 0px;
	padding: 22px 24px 24px;
}

.bristol-buybox__label {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--bristol-muted);
	margin-bottom: 6px;
}

.bristol-buybox__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 0;
	flex-wrap: wrap;
}

.bristol-buybox__row:last-of-type {
	border-bottom: none;
}

.bristol-buybox__icon {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #aa182c;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bristol-green-text);
	flex: none;
}

.bristol-buybox__info {
	flex: 1;
	min-width: 180px;
}

.bristol-buybox__format {
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-buybox__sub {
	font-size: 14.5px;
	color: var(--bristol-muted);
}

.bristol-buybox__sub a {
	color: var(--bristol-muted);
	text-decoration: underline;
}

.bristol-buybox__sub a:hover {
	color: #aa182c;
}

.bristol-buybox__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--bristol-heading);
	flex: none;
}

.bristol-buybox__price del {
	font-size: 15px;
	opacity: .6;
	margin-right: 4px;
}

.bristol-buybox__qty,
.bristol-qty {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	flex: none;
}

.bristol-qty__btn {
	width: 34px;
	height: 38px;
	border: none;
	background: #fff;
	color: var(--bristol-text);
	font-size: 20px;
	cursor: pointer;
	font-family: inherit;
}

.bristol-qty__btn:hover {
	color: #aa182c;
}

.bristol-qty__input {
	min-width: 30px;
	width: 44px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--bristol-heading);
	border: none;
	font-family: inherit;
	-moz-appearance: textfield;
}

.bristol-qty__input::-webkit-outer-spin-button,
.bristol-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bristol-buybox__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--bristol-border);
	padding-top: 18px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.bristol-buybox__subtotal-label {
	font-size: 14.5px;
	color: var(--bristol-muted);
}

.bristol-buybox__subtotal {
	font-size: 28px;
	font-weight: 700;
	color: var(--bristol-heading);
	min-height: 1.4em;
}

.bristol-buybox__submit {
	margin-left: auto;
}

.bristol-product__reassurance {
	display: flex;
	gap: 28px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.bristol-reassurance-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	color: var(--bristol-muted);
}

.bristol-reassurance-item svg {
	color: #aa182c;
	flex: none;
}

/* ---- Description ---------------------------------------------------------- */

.bristol-product-description {
	background: #fff;
	border-top: 1px solid var(--bristol-border);
	padding: 44px 0 52px;
}

.bristol-product-description__inner {
	display: flex;
	gap: 56px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.bristol-product-description__body {
	flex: 1;
	min-width: 320px;
	max-width: none;
	font-size: 18px;
	line-height: 1.7;
	color: var(--bristol-text);
}

.bristol-product-description__body p {
	margin: 0 0 18px;
}

.bristol-product-description__aside {
	flex: 0 0 300px;
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-surface);
	border-radius: 2px;
	padding: 22px 24px;
}

.bristol-product-description__aside-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 12px;
}

.bristol-product-description__aside p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--bristol-text);
}

/* ---- Basic fallback pages (not part of the supplied designs) -------------- */

.bristol-basic {
	padding: 44px 50px 60px;
	max-width: 760px;
}

.bristol-basic__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin: 0 0 18px;
}

.bristol-basic__content,
.bristol-basic__content p {
	font-size: 18px;
	line-height: 1.7;
	color: var(--bristol-text);
}

.bristol-basic__post + .bristol-basic__post {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--bristol-border);
}

/* ---- Shared: checkbox-styled filter/form links ----------------------------- */

.bristol-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 11px;
	font-size: 16px;
	color: var(--bristol-text);
	cursor: pointer;
	text-decoration: none;
}

.bristol-checkbox:last-child {
	margin-bottom: 0;
}

.bristol-checkbox:hover {
	color: var(--bristol-text);
}

.bristol-checkbox__box {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bristol-checkbox.is-checked .bristol-checkbox__box {
	border-color: var(--bristol-green);
	background: var(--bristol-green);
}

.bristol-checkbox--form .bristol-checkbox__native {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

/* ---- Category view (shop / category archive) ------------------------------- */

.bristol-category-header {
	background: var(--bristol-surface);
	border-bottom: 1px solid var(--bristol-surface);
	padding: 40px 0;
}

.bristol-category-header .woocommerce-breadcrumb {
	margin: 0;
	padding: 0 0 20px;
}

.bristol-category-header__title {
	margin: 0 0 12px;
	font-size: 38px;
	font-weight: 700;
	color: var(--bristol-heading);
	letter-spacing: -.01em;
}

.bristol-category-header__desc {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--bristol-text);
	max-width: 660px;
}

.bristol-category-header__desc p {
	margin: 0;
}

.bristol-category-body {
	background: #fff;
	padding: 34px 0 52px;
}

.bristol-category-body__inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.bristol-filters {
	flex: 0 0 240px;
	position: sticky;
	top: 24px;
}

.bristol-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.bristol-filters__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-filter-group {
	border-top: 1px solid var(--bristol-border);
	padding: 18px 0;
}

.bristol-filter-group__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 13px;
}

.bristol-category-grid {
	flex: 1;
	min-width: 0;
}

.bristol-grid-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	gap: 16px;
	flex-wrap: wrap;
}

.bristol-grid-toolbar__count {
	font-size: 16px;
	color: var(--bristol-muted);
}

.bristol-grid-toolbar__count strong {
	color: var(--bristol-heading);
}

.bristol-sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bristol-sort label {
	font-size: 15.5px;
	color: var(--bristol-muted);
}

.bristol-sort select {
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 9px 13px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--bristol-text);
	background: #fff;
	font-family: inherit;
	cursor: pointer;
}

.bristol-grid--3up {
	grid-template-columns: repeat(3, 1fr);
}

.bristol-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
}

.bristol-pagination .woocommerce-pagination ul {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bristol-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 2px;
	border: 1.5px solid var(--bristol-border-strong);
	background: #fff;
	color: var(--bristol-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bristol-pagination .page-numbers.dots {
	border: none;
	color: var(--bristol-muted);
}

.bristol-pagination a.page-numbers:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

.bristol-pagination .page-numbers.current {
	border-color: var(--bristol-green);
	background: var(--bristol-green);
	color: #fff;
	font-weight: 700;
}

/* ---- Basket ------------------------------------------------------------------ */

.bristol-basket {
	padding: 40px 20px 56px;
}

.bristol-basket__title {
	margin: 0 0 28px;
	font-size: 34px;
	font-weight: 700;
	color: var(--bristol-heading);
	letter-spacing: -.01em;
}

.bristol-basket__cols {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.bristol-basket__items {
	flex: 1;
	min-width: 420px;
}

.bristol-line-header {
	display: grid;
	grid-template-columns: 1fr 130px 150px 40px;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--bristol-border);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--bristol-muted);
}

.bristol-line-header__qty,
.bristol-line-item__qty {
	text-align: center;
}

.bristol-line-header__price,
.bristol-line-item__price {
	text-align: right;
}

.bristol-line-item {
	display: grid;
	grid-template-columns: 1fr 130px 150px 40px;
	gap: 16px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--bristol-faint-divider, #f0f2f3);
}

.bristol-line-item__product {
	display: flex;
	gap: 16px;
	align-items: center;
	min-width: 0;
}

.bristol-line-item__cover {
	width: 60px;
	height: 84px;
	border-radius: 2px;
	background: #eef1f2;
	border: 1px solid var(--bristol-border);
	flex: none;
	overflow: hidden;
	display: block;
}

.bristol-line-item__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bristol-line-item__meta {
	min-width: 0;
}

.bristol-line-item__title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--bristol-heading);
	line-height: 1.2;
	margin-bottom: 5px;
	text-decoration: none;
}

.bristol-line-item__title:hover {
	color: #aa182c;
}

.bristol-line-item__subtitle {
	font-size: 13px;
	color: var(--bristol-muted);
	margin-top: 0;
	margin-bottom: 5px;
	font-weight: 400;
	line-height: 1.2;
}

.bristol-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--bristol-green-text);
	background: var(--bristol-green-tint);
	border: 1px solid #aa182c;
	padding: 3px 9px;
	white-space: nowrap;
}

.bristol-chip.hardback,
.bristol-chip.paperback {
	background: #494949;
	border-color: #494949;
	color: #fff;
}

.bristol-chip.ebook {
	background: #00AEDD;
	border-color: #00AEDD;
	color: #fff;
}

.woocommerce-order-details .bristol-chip {
	display: block;
	background: transparent;
	color: #444;
	border: 0;
	padding: 0;
}

.bristol-line-item__code {
	font-size: 13px;
	color: var(--bristol-muted);
	margin-top: 6px;
}

.bristol-line-item__virtual-notice {
	font-size: 13px;
	color: var(--bristol-muted);
	margin-top: 5px;
}

.bristol-line-item__virtual-notice a {
	color: #aa182c;
	font-weight: 600;
	text-decoration: underline;
}

.bristol-line-item__price {
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-line-item__remove {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: none;
	color: #b3bbc0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Two-class specificity (0,2,0) beats WooCommerce's .woocommerce a.remove
   (0,1,1) so display:flex, font-size, line-height and color all apply
   correctly. padding-right nudges the SVG 1px left inside the circle. */
.remove.bristol-line-item__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b3bbc0 !important;
}

.bristol-line-item__remove:hover,
.remove.bristol-line-item__remove:hover {
	color: #fff !important;
}

.bristol-basket__form-actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.bristol-coupon {
	flex: 1;
	min-width: 260px;
}

.bristol-coupon__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 10px;
}

.bristol-coupon__row {
	display: flex;
	gap: 8px;
	max-width: 340px;
}

.bristol-coupon__input {
	flex: 1;
	min-width: 0;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 15.5px;
	color: var(--bristol-text);
	background: #fff;
	outline: none;
}

.bristol-coupon__input:focus {
	border-color: var(--bristol-green);
}

.bristol-coupon__apply {
	background: #fff;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 10px 16px;
	font-family: var(--font-heading);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--bristol-text);
	cursor: pointer;
}

.bristol-coupon__apply:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

.bristol-cart-update {
	flex: none;
	background: #fff;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 10px 18px;
	font-family: var(--font-heading);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--bristol-text);
	cursor: pointer;
	align-self: flex-end;
}

.bristol-cart-update:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

.bristol-continue-shopping {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	color: var(--bristol-green-text);
}

/* ---- Order summary panel (basket + checkout share this) --------------------- */

.bristol-order-summary {
	flex: 0 0 340px;
	position: sticky;
	top: 24px;
}

.bristol-order-summary__panel {
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-surface);
	border-radius: 0;
	padding: 26px 26px 28px;
}

.bristol-order-summary__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 20px;
}

.bristol-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 16.5px;
	margin-bottom: 13px;
	gap: 12px;
}

.bristol-summary-row__label {
	color: var(--bristol-text);
}

.bristol-summary-row__value {
	font-weight: 700;
	color: var(--bristol-heading);
	text-align: right;
}

.bristol-summary-row--shipping .bristol-summary-row__value {
	font-weight: 400;
}

.bristol-summary-row--shipping ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
}

.bristol-summary-row--shipping ul#shipping_method li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 3px 0;
}

.bristol-summary-row--shipping ul#shipping_method li input[type="radio"] {
	width: auto;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.bristol-summary-row--shipping ul#shipping_method li label {
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	margin: 0;
	text-align: right;
}

.bristol-summary-row--shipping .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-summary-row--total {
	border-top: 1px solid var(--bristol-border);
	padding-top: 16px;
	margin-top: 4px;
	margin-bottom: 22px;
}

.bristol-summary-row--total .bristol-summary-row__label {
	font-size: 18px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-summary-row--total .bristol-summary-row__value {
	font-size: 26px;
}

.bristol-order-summary__checkout,
.bristol-order-summary__pay {
	width: 100%;
	justify-content: center;
	margin-bottom: 14px;
}

.bristol-order-summary__quote-note {
	font-size: 13px;
	color: var(--bristol-muted);
	text-align: center;
	margin: 10px 0 15px;
	padding: 10px;
	line-height: 1.4;
	border: 1px solid var(--bristol-border);
}

.bristol-order-summary__secure {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	font-size: 14.5px;
	color: var(--bristol-muted);
	line-height: 1.3;
}

.return-to-shop {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.shipping-calculator-form .select2-selection__rendered {
	padding-right: 1.5em!important;
}

.shipping-calculator-form label,
.shipping-calculator-form .select2-selection__rendered,
.shipping-calculator-form input[type="text"],
.shipping-calculator-form input[type="number"],
.shipping-calculator-form select {
	font-size: 14px !important;
}

.shipping-calculator-form button[name="calc_shipping"] {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 17px;
	padding: 13px 26px;
	border-radius: 2px;
	font-family: var(--font-heading);
	cursor: pointer;
	border: none;
	line-height: 1.3;
	background: #aa182c;
	color: #fff;
	text-decoration: none;
}

.shipping-calculator-form button[name="calc_shipping"]:hover {
	background: #494949;
	color: #fff;
}

a.button.wc-backward,
a.button.wc-forward {
	background: #aa182c;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 17px;
	padding: 13px 26px;
	border-radius: 2px;
	font-family: var(--font-heading);
	cursor: pointer;
	border: none;
	line-height: 1.3;
}

a.button.wc-backward:hover,
a.button.wc-forward:hover {
	background: #494949;
	color: #fff;
}


/* ---- Checkout ------------------------------------------------------------------ */

.bristol-header--checkout {
	background: #fff;
}

.bristol-header--checkout .bristol-checkout-header__row {
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.bristol-logo__img--checkout {
	height: 85px !important;
}

.bristol-checkout-steps {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: var(--bristol-muted);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bristol-checkout-steps__step {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #9C9C9C;
	font-weight: 700;
}

.bristol-checkout-steps__step.is-done,
.bristol-checkout-steps__step.is-current {
	color: #494949;
}

.bristol-checkout-steps__badge {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--bristol-border);
	color: var(--bristol-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.bristol-checkout-steps__step.is-done .bristol-checkout-steps__badge,
.bristol-checkout-steps__step.is-current .bristol-checkout-steps__badge {
	background: #aa182c;
	color: #fff;
}

.bristol-checkout-steps__sep {
	width: 24px;
	height: 1.5px;
	background: var(--bristol-border);
}

.bristol-checkout-steps__sep.is-done {
	background: #aa182c;
}

.bristol-checkout-header__secure {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	color: #494949;
	flex: none;
}

.bristol-checkout {
	padding: 38px 24px 56px;
}

.bristol-checkout__title {
	margin: 0 0 28px;
	font-size: 34px;
	font-weight: 700;
	color: var(--bristol-heading);
	letter-spacing: -.01em;
}

.bristol-checkout__cols {
	display: flex;
	gap: 44px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.bristol-checkout__form-col {
	flex: 1;
	min-width: 460px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.bristol-checkout__summary-col {
	flex: 0 0 450px;
}

#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
	background-color: var(--bristol-surface);
	padding: 10px 5px;
	border-radius: 4px;
}

#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
	border: 1em solid var(--bristol-surface);
	border-right-color: transparent;
	border-left-color: transparent;
	border-top-color: transparent;
}

#add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 0;
}



.wc_payment_methods fieldset {
	border: 0;
	margin: 0;
}

.bristol-checkout-section {
	border-top: 1px solid var(--bristol-border);
	padding-top: 28px;
}

.bristol-checkout__form-col > .bristol-checkout-section:first-child {
	border-top: none;
	padding-top: 0;
}

.bristol-checkout-section__head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 18px;
}

.bristol-checkout-section__head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--bristol-heading);
}

.bristol-step-badge {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: #aa182c;
	color: var(--bristol-green-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	flex: none;
}

.bristol-checkout-section__note {
	margin: 0 0 18px 37px;
	font-size: 15px;
	color: var(--bristol-muted);
}

.bristol-billing-mini {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--bristol-border);
}

.bristol-billing-mini__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 12px;
}

.bristol-checkout-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.bristol-checkout-item {
	display: flex;
	gap: 13px;
	align-items: flex-start;
}

.bristol-checkout-item__cover {
	width: 44px;
	height: 60px;
	border-radius: 2px;
	background: #eef1f2;
	border: 1px solid var(--bristol-border);
	flex: none;
	overflow: hidden;
}

.bristol-checkout-item__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bristol-checkout-item__meta {
	flex: 1;
	min-width: 0;
}

.bristol-checkout-item__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	line-height: 1.2;
	margin-bottom: 5px;
}

.bristol-checkout-item__subtitle {
	font-size: 13px;
	color: var(--bristol-muted);
	margin-top: 0;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 5px;
}

.bristol-checkout-item__sub {
	font-size: 13px;
	color: var(--bristol-muted);
	margin-top: 3px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.bristol-checkout-item__price {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--bristol-heading);
	flex: none;
}

.bristol-order-summary__totals {
	border-top: 1px solid var(--bristol-border);
	padding-top: 16px;
}

.bristol-order-summary__terms {
	margin-top: 14px;
	margin-bottom: 14px;
	font-size: 15px;
}

.woocommerce form .form-row label {
	line-height: 1.3;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
	border-radius: 0;
	padding: .8em;
}

.bristol-order-summary__fineprint {
	margin: 20px 0 20px 0;
	font-size: 14px;
	line-height: 1.3;
	color: var(--bristol-muted);
	text-align: left;
}

#add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
}

/* Checkout form fields — WooCommerce renders these via woocommerce_form_field(),
   so we restyle its existing .form-row/.woocommerce-input-wrapper markup rather
   than replace it, to keep validation/select2/country-state JS working as-is. */

.bristol-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bristol-field-grid .form-row {
	margin: 0;
	grid-column: span 1;
}

.bristol-field-grid .form-row-wide,
.bristol-field-grid .form-row-first.form-row-last {
	grid-column: 1 / -1;
}

.bristol-field-grid label {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--bristol-text);
	margin-bottom: 6px;
}

.bristol-field-grid .required {
	color: var(--bristol-green-text);
	text-decoration: none;
}

.bristol-field-grid input.input-text,
.bristol-field-grid select,
.bristol-field-grid .select2-selection {
	width: 100%;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 16px;
	color: var(--bristol-heading);
	background: #fff;
	outline: none;
	box-sizing: border-box;
	height: auto;
}

.bristol-field-grid input.input-text:focus,
.bristol-field-grid select:focus {
	border-color: var(--bristol-green);
}

.bristol-field-grid input.input-text::placeholder {
	color: #aab3b8;
}

.bristol-field-grid .woocommerce-input-wrapper {
	display: block;
}

.bristol-field-grid .form-row.woocommerce-invalid input.input-text,
.bristol-field-grid .form-row.woocommerce-invalid select {
	border-color: #e0625b;
}

.bristol-payment-methods ul.wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bristol-payment-methods li.wc_payment_method {
	border: 0;
	border-radius: 2px;
	padding: 14px 16px;
}

.bristol-payment-methods .payment_box {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--bristol-border);
	font-size: 15.5px;
	color: var(--bristol-text);
}


element {
}
#add_payment_method #payment ul.payment_methods li img, .woocommerce-cart #payment ul.payment_methods li img, .woocommerce-checkout #payment ul.payment_methods li img {
	margin: 4px 0 0 0;
	float: left;
}

/* ---- WooCommerce notices (validation errors, coupon messages, etc.) --------- */

/*
 * These notices print via wc_print_notices() on hooks (woocommerce_before_cart,
 * woocommerce_before_checkout_form, etc.) that fire before our own .bristol-wrap
 * container opens, so without their own width/centring they stretch the full
 * browser width edge-to-edge. Capping and centring them here — rather than
 * moving where those hooks fire — keeps them correct on every WooCommerce
 * page that can print a notice, including stock templates we haven't
 * rebuilt (my-account, order-pay, etc.), not just cart/checkout.
 */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	max-width: 1280px;
	margin: 30px auto 0;
	padding: 14px 50px;
	border-radius: 0px;
	font-size: 16px;
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-surface);
	color: var(--bristol-text);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 16px;
	line-height: 1.3;
}

.woocommerce-info a.button {
	float: none;
	flex-shrink: 0;
	margin-left: auto;
	order: 2;
}

.woocommerce-error {
	background: #fdf2f1;
	border-color: #f4cfcb;
	color: #a8362d;
}

.woocommerce-message {
	background: var(--bristol-green-tint);
	border-color: var(--bristol-green-tint-border);
	color: var(--bristol-green-text-hover);
	display: flex;
	align-items: center;
	gap: 16px;
	outline: none;
}

.woocommerce-message a.button {
	float: none;
	flex-shrink: 0;
	margin-left: auto;
}

.woocommerce-message::before {
	color: #aa182c;
	top: 50%;
	transform: translateY(-50%);
}

/*
 * Stock WooCommerce forms we haven't rebuilt with our own markup — the
 * checkout's built-in "Have a coupon?" toggle form, and the my-account
 * login/register forms — get the same width-capping plus the theme's usual
 * input styling, so they read as part of the site rather than bare
 * default WooCommerce markup.
 */
.woocommerce form.checkout_coupon,
.woocommerce-account form.login,
.woocommerce-account form.register {
	max-width: 1280px;
	margin: 2em auto;
	padding: 0 50px;
	box-sizing: border-box;
}

/* Returning-customer login on the checkout page — add horizontal padding to
   match the page layout without overriding WooCommerce's own top/bottom padding. */
.woocommerce form.login {
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.woocommerce form.checkout_coupon {
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-border);
	border-radius: 0px;
	padding: 22px 50px;
}

.woocommerce form.checkout_coupon p,
.woocommerce-account form.login p,
.woocommerce-account form.register p {
	margin: 0 0 14px;
}

.woocommerce form.checkout_coupon input.input-text,
.woocommerce-account form.login input.input-text,
.woocommerce-account form.register input.input-text {
	width: 100%;
	max-width: 340px;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 16px;
	color: var(--bristol-heading);
	box-sizing: border-box;
}

.woocommerce form.checkout_coupon input.input-text:focus,
.woocommerce-account form.login input.input-text:focus,
.woocommerce-account form.register input.input-text:focus {
	border-color: var(--bristol-green);
	outline: none;
}

.woocommerce form.checkout_coupon .button,
.woocommerce-account form.login .button,
.woocommerce-account form.register .button {
	background: var(--bristol-green);
	color: #fff;
	border: none;
	border-radius: 2px;
	padding: 10px 20px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15.5px;
	cursor: pointer;
}

.woocommerce form.checkout_coupon .button:hover,
.woocommerce-account form.login .button:hover,
.woocommerce-account form.register .button:hover {
	background: var(--bristol-green-dark);
}

.woocommerce a.remove {
	font-size: 1.4em;
}

.woocommerce a.remove:hover {
	background: #aa182c;
}

/*
 * ---- My Account ---------------------------------------------------------
 * Deliberately keeps WooCommerce's own account templates and layout
 * mechanism untouched (no woocommerce/myaccount/*.php overrides) — this is
 * a restyle of its existing markup/classes only, per request. The nav +
 * content columns are switched from WooCommerce's default float layout to
 * flex (resetting the float rules), matching how every other two-column
 * layout on the site (basket, checkout, category filters) already works.
 */

/*
 * Float-based rather than flex — flex on this wrapper wasn't taking visual
 * effect in testing (unclear why; the equivalent float rules below are
 * simpler and don't depend on this parent's own display mode at all, only
 * on the two children floating the same direction, which is a much smaller
 * surface for something to go wrong on).
 */
.bristol-account {
	padding: 40px 0 60px;
}

.bristol-thankyou {
	padding: 40px 0 60px;
}

.bristol-account::after {
	content: "";
	display: table;
	clear: both;
}

.bristol-account .woocommerce-MyAccount-navigation,
.bristol-account .woocommerce-MyAccount-content {
	float: left;
}

.bristol-account .woocommerce-MyAccount-navigation {
	width: 220px;
	margin: 0 40px 0 0;
}

.bristol-account .woocommerce-MyAccount-content {
	width: calc(100% - 260px);
	margin: 0;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
	display: block;
	padding: 11px 16px;
	border-radius: 2px;
	color: #494949;
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
}

.woocommerce-MyAccount-navigation-link a:hover {
	background: var(--bristol-surface);
	color: #aa182c;
}

.woocommerce-MyAccount-navigation-link.is-active a {
	background: #aa182c;
	color: #fff;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #a8362d;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fdf2f1;
}

.woocommerce-MyAccount-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--bristol-text);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	color: var(--bristol-heading);
	font-weight: 700;
}

.woocommerce-MyAccount-content mark {
	background: none;
	color: var(--bristol-heading);
	font-weight: 700;
}

/* Order-history / downloads tables */

.bristol-account table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px;
	font-size: 16px;
}

.bristol-account table.shop_table thead th {
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--bristol-muted);
	padding: 12px 14px;
	border-bottom: 1px solid var(--bristol-border);
}

.bristol-account table.shop_table td {
	padding: 14px;
	border-bottom: 1px solid var(--bristol-border);
	color: var(--bristol-text);
}

.bristol-account table.shop_table tr:last-child td {
	border-bottom: none;
}

/* Address book */

.woocommerce-Addresses.u-columns,
.u-columns {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.woocommerce-Address.u-column1,
.woocommerce-Address.u-column2,
.u-columns .u-column1,
.u-columns .u-column2 {
	float: none;
	width: auto;
}

.woocommerce-Address {
	flex: 1;
	min-width: 240px;
	background: var(--bristol-surface);
	border: 1px solid var(--bristol-border);
	border-radius: 2px;
	padding: 22px 24px;
}

.woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	text-align: left;
}

.woocommerce-Address-title::before,
.woocommerce-Address-title::after {
	display: none!important;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--bristol-heading);
	text-align: left;
}

.woocommerce-Address-title a {
	font-size: 15px;
	font-weight: 700;
	color: #aa182c;
	text-decoration: none;
	flex: none;
}

.woocommerce-Address address {
	font-style: normal;
	font-size: 16px;
	line-height: 1.7;
	color: var(--bristol-text);
}

/* Account details / edit address forms */

.bristol-account fieldset {
	border: 1px solid var(--bristol-border);
	border-radius: 2px;
	padding: 20px 24px;
	margin: 0 0 20px;
}

.bristol-account fieldset legend {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	padding: 0 8px;
}

.bristol-account .form-row {
	margin: 0 0 16px;
}

.bristol-account .form-row label {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--bristol-text);
	margin-bottom: 6px;
}

.bristol-account .form-row input.input-text,
.bristol-account .form-row select,
.bristol-account .form-row textarea {
	width: 100%;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 16px;
	color: var(--bristol-heading);
	background: #fff;
	box-sizing: border-box;
}

.bristol-account .form-row input.input-text:focus,
.bristol-account .form-row select:focus,
.bristol-account .form-row textarea:focus {
	border-color: var(--bristol-green);
	outline: none;
}

/* Generic buttons used throughout account pages (Save, Cancel, Download...) */

.bristol-account .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1.5px solid var(--bristol-border-strong);
	border-radius: 2px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--bristol-text);
	text-decoration: none;
	cursor: pointer;
}

.bristol-account .button:hover {
	border-color: var(--bristol-green);
	color: #aa182c;
}

/* Primary order actions (Pay, View) get the black treatment. */
.bristol-account .button.pay,
.bristol-account .button.view,
.bristol-account button.button[name="save_account_details"] {
	background: var(--bristol-green);
	border-color: var(--bristol-green);
	color: #fff;
}

.bristol-account .button.pay:hover,
.bristol-account .button.view:hover,
.bristol-account button.button[name="save_account_details"]:hover {
	background: var(--bristol-green-dark);
	border-color: var(--bristol-green-dark);
	color: #fff;
}

/*
 * ---- Optional widget areas -------------------------------------------------
 * account-dashboard, basket-additional-content, basket-checkout-footer.
 * All three render nothing at all when empty (see the is_active_sidebar()
 * checks in functions.php/cart.php/footer.php), so there's no empty box to
 * accidentally style into visibility — this only affects what shows once
 * something's actually added via Appearance > Widgets.
 */

.bristol-widget-area__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--bristol-heading);
	margin-bottom: 10px;
}

.bristol-widget-area__widget + .bristol-widget-area__widget {
	margin-top: 16px;
}

.bristol-account-dashboard-widgets {
	margin-top: 24px;
}

.bristol-basket-additional-content {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--bristol-border);
	font-size: 15.5px;
}

.bristol-basket-checkout-footer {
	padding: 8px 50px 40px;
	text-align: center;
	color: var(--bristol-muted);
	font-size: 15.5px;
}

.bristol-basket-checkout-footer .bristol-widget-area__title {
	text-align: center;
}


.woocommerce-info::before {
	color: #aa182c;
	top: 50%;
	transform: translateY(-50%);
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 1080px) {
	.bristol-grid,
	.bristol-subjects {
		grid-template-columns: repeat(3, 1fr);
	}

	.bristol-grid--3up {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.bristol-wrap,
	.bristol-header__row,
	.bristol-nav__inner,
	.bristol-hero__inner,
	.bristol-section .bristol-wrap,
	.bristol-product__inner,
	.bristol-footer__cols,
	.bristol-footer__legal-inner,
	.bristol-category-body__inner,
	.bristol-checkout-header__row {
		padding-left: 24px;
		padding-right: 24px;
	}

	.bristol-account .woocommerce-MyAccount-navigation,
	.bristol-account .woocommerce-MyAccount-content {
		float: none;
		width: 100%;
		margin: 0 0 24px;
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.bristol-header__row {
		flex-wrap: wrap;
	}

	.bristol-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.bristol-hero__cover {
		align-self: center;
	}

	.bristol-product__inner {
		flex-direction: column;
	}

	.bristol-product__cover {
		position: static;
		flex: none;
		width: 260px;
	}

	.bristol-footer__cols {
		grid-template-columns: 1fr 1fr;
	}

	.bristol-category-body__inner {
		flex-direction: column;
	}

	.bristol-filters {
		position: static;
		flex: none;
		width: 100%;
	}

	.bristol-basket__cols,
	.bristol-checkout__cols {
		flex-direction: column;
	}

	.bristol-basket__items,
	.bristol-checkout__form-col {
		min-width: 0;
		width: 100%;
	}

	.bristol-order-summary,
	.bristol-checkout__summary-col {
		position: static;
		flex: none;
		width: 100%;
	}

	.bristol-checkout-steps {
		display: none;
	}

	/* Primary nav becomes a hamburger-triggered accordion panel. */
	.bristol-nav-hamburger {
		display: flex;
	}

	.bristol-nav-list {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		min-height: 0;
		padding-bottom: 14px;
	}

	.bristol-nav.is-mobile-open .bristol-nav-list {
		display: flex;
	}

	.bristol-nav-item {
		width: 100%;
		border-top: 1px solid var(--bristol-border);
	}

	.bristol-nav-row {
		width: 100%;
		justify-content: space-between;
		padding: 12px 0;
	}

	.bristol-nav-toggle {
		padding: 8px;
		margin-left: 0;
	}

	/* Accordion, not a floating dropdown, at this breakpoint. */
	.sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: var(--bristol-surface);
		margin: 0 0 8px;
		display: none;
	}

	.bristol-nav-item.is-open > .sub-menu {
		display: flex;
	}

	.bristol-nav-item--has-children:hover > .sub-menu,
	.bristol-nav-item--has-children:focus-within > .sub-menu {
		display: none;
	}

	.bristol-nav-item--has-children.is-open:hover > .sub-menu,
	.bristol-nav-item--has-children.is-open:focus-within > .sub-menu {
		display: flex;
	}
}

@media (max-width: 640px) {
	.woocommerce-column--shipping-address {
		margin-top: 24px;
	}

	.bristol-product__cover {
		width: 100%;
	}

	.bristol-product__inner {
		gap: 24px;
	}
	
	.bristol-line-item__virtual-notice {
		font-size: 11px;
		line-height: 1.3;
	}

	.bristol-buybox__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.bristol-buybox__submit {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.woocommerce-message,
	.woocommerce-info,
	.return-to-shop {
		margin-left: 16px;
		margin-right: 16px;
	}

	.woocommerce-message {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-message a.button {
		order: 2;
		margin-left: 0;
		text-align: center;
	}

	.woocommerce-message::before {
		top: 14px;
		transform: none;
	}

	.bristol-grid,
	.bristol-subjects,
	.bristol-grid--3up {
		grid-template-columns: repeat(2, 1fr);
	}

	.bristol-hero__title {
		font-size: 34px;
	}

	.bristol-footer__cols {
		grid-template-columns: 1fr;
	}

	.bristol-line-header {
		display: none;
	}

	.bristol-line-item {
		grid-template-columns: 1fr;
		gap: 10px;
		position: relative;
	}

	.bristol-line-item__qty,
	.bristol-line-item__price {
		text-align: left;
	}

	.bristol-line-item__remove {
		position: absolute;
		top: 20px;
		right: 0;
	}

	.bristol-field-grid {
		grid-template-columns: 1fr;
	}

	.bristol-field-grid .form-row {
		grid-column: 1 / -1;
	}
	
	.bristol-footer-upper img {
		padding-left: 0;
		float: none;
	}
}
