/*
 * The Breather: store page, styled to match the product, cart and checkout pages.
 * Loaded only on the store page (body.tbpp-store).
 */

.tbpp-store {
	/* One brand blue. The tint and line colours are the same blue at 8% and 20% on white. */
	--tbp-blue: #006daf;
	--tbp-ink: #25282b;
	--tbp-text: #3a3f44;
	--tbp-muted: #636a71;
	--tbp-tint: #ebf3f9;
	--tbp-line: #cce2ef;
	--tbp-orange: #ff8523;
	--tbp-peach: #fff8f2;
	--tbp-peach-line: #f4e2d3;
	--tbp-radius: 14px;
	--tbp-head: "Poppins", sans-serif;
}

.tbpp-store #main #content-wrap {
	padding-top: 44px;
	padding-bottom: 72px;
}

.tbpp-store .tbs {
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--tbp-text);
}

.tbpp-store .tbs p {
	margin: 0 0 14px;
}

/* Elementor's site settings give every link a fixed size, so links take the size of the text around them here. */

.tbpp-store .tbs a {
	font: inherit;
}

.tbpp-store .tbs a:not(.button) {
	color: var(--tbp-blue);
}

.tbpp-store .tbs p a:not(.button),
.tbpp-store .tbs li:not(.tbs-card) > a:not(.button) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbpp-store .tbs h1,
.tbpp-store .tbs h2,
.tbpp-store .tbs h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--tbp-head);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tbp-blue);
}

/* ---------- Breadcrumb (the theme's own, moved above the heading) ---------- */

.tbpp-store .entry-content > .site-breadcrumbs {
	position: static;
	top: auto;
	right: auto;
	height: auto;
	max-width: none;
	margin: 0 0 22px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	overflow: visible;
	color: var(--tbp-muted);
}

.tbpp-store .entry-content > .site-breadcrumbs .breadcrumb-sep {
	margin: 0 6px;
	color: var(--tbp-muted);
}

.tbpp-store .entry-content > .site-breadcrumbs a {
	color: var(--tbp-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Heading and country links ---------- */

.tbpp-store .tbs-head {
	margin: 0 0 12px;
}

.tbpp-store .tbs .tbs-title {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.18;
}

.tbpp-store .tbs .tbs-intro {
	max-width: 68ch;
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.6;
}

.tbpp-store .tbs-jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.tbpp-store .tbs-jump__label {
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-store .tbs .tbs-jump__link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border: 2px solid var(--tbp-blue);
	border-radius: 999px;
	background: #fff;
	font-family: var(--tbp-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--tbp-blue);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tbpp-store .tbs .tbs-jump__link:hover,
.tbpp-store .tbs .tbs-jump__link:focus-visible {
	background: var(--tbp-blue);
	color: #fff;
}

.tbpp-store .tbs a:focus-visible {
	outline: 3px solid var(--tbp-orange);
	outline-offset: 2px;
}

/* ---------- Country sections ---------- */

.tbpp-store .tbs-region {
	margin-top: 52px;
	scroll-margin-top: 24px;
}

.tbpp-store .tbs-region__head {
	margin: 0 0 22px;
}

.tbpp-store .tbs h2 {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
}

.tbpp-store .tbs .tbs-region__head p {
	margin: 0;
	color: var(--tbp-text);
}

.tbpp-store .tbs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbpp-store .tbs-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	/* Lighter than the usual line colour: the brand blue at 10%. */
	border: 1px solid #e6f0f7;
	border-radius: var(--tbp-radius);
	background: #fff;
	overflow: hidden;
}

.tbpp-store .tbs-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--tbp-tint);
}

.tbpp-store .tbs-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbpp-store .tbs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 18px 20px;
}

.tbpp-store .tbs .tbs-card__title {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.3;
}

.tbpp-store .tbs .tbs-card__title a {
	text-decoration: none;
	color: var(--tbp-blue);
}

.tbpp-store .tbs .tbs-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbpp-store .tbs .tbs-card__text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.55;
}

.tbpp-store .tbs .tbs-card__price {
	margin: auto 0 14px;
	font-family: var(--tbp-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tbp-ink);
}

.tbpp-store .tbs .tbs-card__price .woocommerce-price-suffix {
	margin-left: 4px;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: var(--tbp-muted);
}

.tbpp-store .tbs-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.tbpp-store .tbs .tbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	/* Pill shaped like the rest of the site. The site's custom CSS forces upper case with !important, so sentence case needs it too. */
	border-radius: 999px !important;
	background: var(--tbp-blue) !important;
	color: #fff !important;
	font-family: var(--tbp-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none !important;
	transition: box-shadow 0.15s ease;
}

.tbpp-store .tbs .tbs-btn:hover,
.tbpp-store .tbs .tbs-btn:focus,
.tbpp-store .tbs .tbs-btn:focus-visible {
	background: var(--tbp-blue) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(0, 109, 175, 0.32);
}

.tbpp-store .tbs .tbs-btn.loading {
	opacity: 0.6;
}

.tbpp-store .tbs .tbs-btn.loading::after,
.tbpp-store .tbs .tbs-btn.added::after {
	display: none;
}

.tbpp-store .tbs .tbs-link,
.tbpp-store .tbs .added_to_cart {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--tbp-blue);
}

/* After "Add to cart", the "View cart" link takes the place of "View details". */

.tbpp-store .tbs .tbs-btn.added ~ .tbs-link {
	display: none;
}

.tbpp-store .tbs .added_to_cart::before {
	content: "Added. ";
	display: inline-block;
	margin-right: 4px;
	font-weight: 400;
	text-decoration: none;
	color: var(--tbp-ink);
}

.tbpp-store .tbs-card__out {
	font-weight: 600;
	color: var(--tbp-muted);
}

/* ---------- Which device ---------- */

.tbpp-store .tbs-help {
	margin-top: 56px;
	padding: 32px 36px;
	border-radius: var(--tbp-radius);
	background: var(--tbp-tint);
}

.tbpp-store .tbs-help__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 16px 0 18px;
}

.tbpp-store .tbs-help__choice {
	padding: 18px 20px;
	border: 0;
	border-radius: 12px;
	background: #fff;
}

.tbpp-store .tbs .tbs-help__choice h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.tbpp-store .tbs .tbs-help__choice p,
.tbpp-store .tbs .tbs-help > p:last-child {
	margin: 0;
}

.tbpp-store .tbs .tbs-help > p {
	max-width: 78ch;
}

/* ---------- Delivery and buying for others ---------- */

.tbpp-store .tbs-split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px 56px;
	align-items: start;
	margin-top: 56px;
}

.tbpp-store .tbs-table {
	width: 100%;
	max-width: 520px;
	margin: 8px 0 0;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
}

.tbpp-store .tbs-table th,
.tbpp-store .tbs-table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--tbp-line);
	background: none;
	text-align: right;
	vertical-align: top;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tbp-text);
}

.tbpp-store .tbs-table th:first-child {
	text-align: left;
}

.tbpp-store .tbs-table thead th {
	border-bottom: 2px solid var(--tbp-blue);
	font-size: 15px;
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-store .tbs-table tbody th {
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-store .tbs-others {
	padding: 28px 30px;
	border: 0;
	border-radius: var(--tbp-radius);
	background: var(--tbp-peach);
}

.tbpp-store .tbs-others ul {
	margin: 12px 0 14px;
	padding: 0;
	list-style: none;
}

.tbpp-store .tbs-others li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 18px;
}

.tbpp-store .tbs-others li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tbp-orange);
}

.tbpp-store .tbs-others strong {
	color: var(--tbp-ink);
}

.tbpp-store .tbs .tbs-others p {
	margin: 0;
}

.tbpp-store .tbs .tbs-seller {
	max-width: 78ch;
	margin: 40px 0 0;
	font-size: 15px;
	color: var(--tbp-muted);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
	.tbpp-store .tbs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.tbpp-store .tbs-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.tbpp-store #main #content-wrap {
		padding-top: 28px;
		padding-bottom: 48px;
	}

	.tbpp-store .tbs-grid,
	.tbpp-store .tbs-help__choices {
		grid-template-columns: minmax(0, 1fr);
	}

	.tbpp-store .tbs .tbs-intro {
		font-size: 17px;
	}

	.tbpp-store .tbs-region {
		margin-top: 40px;
	}

	.tbpp-store .tbs-help,
	.tbpp-store .tbs-others {
		padding: 24px 20px;
	}

	.tbpp-store .tbs-help,
	.tbpp-store .tbs-split {
		margin-top: 40px;
	}
}
