/* Twist VIP 0.2.0: the membership product page, the redeem page and My Account > Membership.
   The site's language (Twist Gifting's landing pages, the blend pages): blue spaced capitals above light headings,
   a hero with the picture on the right, pale blue cards, a closing banner, black or white buttons with an arrow.
   Square corners everywhere (Twist rule). Everything is scoped to .twv, so nothing else on the site changes.
   Layouts follow the width of the box they are in (the full page, or the My Account content column). */

.twv {
	--twv-ink: #111;
	--twv-text: #3a3a3a;
	--twv-muted: #666;
	--twv-blue: #4dbbe6;
	--twv-pale: #e9f3fc;
	--twv-line: #d5dadd;
	--twv-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	container-type: inline-size;
	container-name: twv;
	font-family: var(--twv-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--twv-text);
	text-align: left;
}

.twv *,
.twv *::before,
.twv *::after {
	box-sizing: border-box;
	border-radius: 0 !important;
}

.twv.twv-inline {
	container-type: normal;
	display: inline-block;
}

/* The full-width pages: the theme's boxed container is opened up so the hero reaches the edges. */
body.twvip-page #main > .container {
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.twvip-page #main > .container > .main-content-wrap {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.twvip-page #main .main-content {
	padding: 0 !important;
}

.twv .twv-wrap {
	width: min(1280px, calc(100% - 112px));
	margin-left: auto;
	margin-right: auto;
}

.twv .twv-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Type ---------- */

html body .twv p {
	font-family: var(--twv-font);
}

html body .twv .twv-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--twv-blue);
}

html body .twv .twv-label--step {
	margin-top: 24px;
}

html body .twv .twv-h2,
html body .twv .twv-hero__title,
html body .twv .twv-title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--twv-font);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--twv-ink);
	text-wrap: balance;
}

html body .twv .twv-h2 {
	font-size: clamp(26px, 2.6vw, 34px);
}

html body .twv .twv-lead {
	margin: 0 0 24px;
	max-width: 46em;
	font-size: 16px;
	line-height: 1.55;
	color: var(--twv-text);
}

html body .twv a {
	color: var(--twv-ink);
}

.twv a:focus-visible,
.twv button:focus-visible,
.twv input:focus-visible,
.twv select:focus-visible,
.twv textarea:focus-visible,
.twv summary:focus-visible {
	/* !important: the theme removes outlines from links. */
	outline: 3px solid #2483a6 !important;
	outline-offset: 3px !important;
}

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

html body .twv .twv-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
}

html body .twv .twv-btns--centre {
	justify-content: center;
	margin-top: 28px;
}

html body .twv .twv-btns--end {
	margin: 32px 0 20px;
}

html body .twv .twv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 50px;
	margin: 0;
	padding: 13px 24px;
	border: 1px solid var(--twv-ink);
	background: var(--twv-ink);
	color: #fff;
	font-family: var(--twv-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

html body .twv .twv-btn:hover {
	background: #2a363b;
	border-color: #2a363b;
	color: #fff;
}

html body .twv .twv-btn--light {
	background: #fff;
	color: var(--twv-ink);
}

html body .twv .twv-btn--light:hover {
	background: var(--twv-pale);
	border-color: var(--twv-ink);
	color: var(--twv-ink);
}

html body .twv .twv-btn--off,
html body .twv .twv-btn--off:hover {
	background: #fff;
	border-color: #b3bcc3;
	color: var(--twv-muted);
	cursor: default;
}

html body .twv .twv-btn--block {
	display: flex;
	width: 100%;
	margin-top: 18px;
}

html body .twv .twv-btn--small {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
}

html body .twv .twv-btn--narrow {
	min-width: 200px;
}

.twv .twv-arrow {
	display: inline-block;
	font-family: Arial, sans-serif;
	font-size: 1.1em;
	line-height: 1;
}

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

.twv .twv-hero {
	background: linear-gradient(90deg, #e9f3fc 0%, #f1f7fd 55%, #fff 100%);
}

.twv .twv-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 48px;
	align-items: center;
	width: min(1280px, calc(100% - 112px));
	margin: 0 auto;
	padding: 56px 0;
}

.twv .twv-hero--plain .twv-hero__inner {
	grid-template-columns: minmax(0, 1fr);
}

.twv .twv-hero--plain .twv-hero__text {
	max-width: 640px;
}

.twv.twv-redeem-page .twv-hero__inner {
	align-items: start;
}

html body .twv .twv-hero__title {
	font-size: clamp(32px, 3.6vw, 48px);
}

html body .twv .twv-hero__price {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--twv-ink);
}

html body .twv .twv-hero__copy {
	margin: 0 0 24px;
	max-width: 34em;
	font-size: 16px;
	line-height: 1.55;
	color: var(--twv-text);
}

/* The hero picture fills a 16:9 box. The Pollards Farm drawing has wide white margins, so it is shown larger
   (the "Hero picture size" setting) and its white is blended into the pale blue behind it. */
.twv .twv-hero__media {
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.twv .twv-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	mix-blend-mode: multiply;
	transform: scale(var(--twv-hero-zoom, 1));
}

/* In My Account the hero is a panel in the content column. */
.twv.twv--account .twv-hero__inner {
	width: auto;
	gap: 24px;
	padding: 36px 32px;
}

html body .twv.twv--account .twv-hero__title {
	font-size: clamp(26px, 5cqw, 36px);
}

/* ---------- Sections ---------- */

.twv .twv-sec {
	padding: 52px 0 8px;
}

.twv.twv--account .twv-sec {
	padding: 40px 0 0;
}

/* Overview cards: pale blue. */
.twv .twv-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.twv .twv-card {
	padding: 20px 20px 22px;
	background: var(--twv-pale);
}

html body .twv .twv-card__label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #1f7ea3; /* The label blue, darkened so it reads on the pale blue card. */
}

html body .twv .twv-card__line {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--twv-ink);
}

html body .twv .twv-card__small {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--twv-text);
}

html body .twv .twv-card__action {
	margin: 12px 0 4px;
}

html body .twv .twv-card__set {
	margin-top: 10px;
	font-size: 15px;
	color: var(--twv-ink);
}

html body .twv .twv-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--twv-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The six benefits. */
.twv .twv-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 24px;
	margin-top: 26px;
}

.twv .twv-benefit__media {
	aspect-ratio: 3 / 2;
	margin: 0 0 16px;
	background: var(--twv-pale);
	overflow: hidden;
}

.twv .twv-benefit__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/*
 * 0.2.2: "Complimentary UK Delivery", Tom's "Letter Box Friendly A5" photo (media 302856, portrait). Twist asked for it
 * "zoomed in without the blurry side part of image" (Membership answers, 24 Nov 2026). The photo file is untouched: the
 * frame shows it a fifth larger from its left edge, so the blurred brick down its right edge falls outside the frame
 * and the letterbox stays in the middle band. The same rule as the Tea Club's panel 06 (twtc-club.css), for the same
 * photo.
 */
.twv .twv-benefit--delivery .twv-benefit__img {
	object-position: 0 55%;
	transform: scale(1.2);
	transform-origin: 0 55%;
}

html body .twv .twv-benefit__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--twv-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--twv-ink);
}

html body .twv .twv-benefit__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--twv-text);
}

/* The numbered steps. */
html body .twv .twv-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

html body .twv .twv-step {
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .twv .twv-step::before {
	content: none;
}

.twv .twv-step__num {
	display: block;
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	color: var(--twv-blue);
}

html body .twv .twv-step__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--twv-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--twv-ink);
}

html body .twv .twv-step__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--twv-text);
}

html body .twv .twv-note {
	margin: 24px 0 0;
	font-size: 13px;
	color: var(--twv-muted);
}

/* The closing banner. */
.twv .twv-closing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin: 52px 0 56px;
	padding: 40px 36px;
	background: linear-gradient(90deg, #e9f3fc 0%, #f1f7fd 55%, #fff 100%);
}

.twv .twv-closing__text {
	flex: 1 1 320px;
	min-width: 0;
}

html body .twv .twv-closing .twv-h2,
html body .twv .twv-closing .twv-lead {
	margin-bottom: 0;
}

html body .twv .twv-closing .twv-lead {
	margin-top: 10px;
}

.twv.twv--account .twv-closing {
	margin: 40px 0 8px;
	padding: 32px;
}

/* ---------- The membership product page ---------- */

/* 0.2.3: the purchase section sits under "Blends With Benefits" (Tom's "Memberships Feedback 25/11/26"). The buttons
   higher up bring it into view (#twv-buy). From 1000px wide the site's header stays at the top of the window (73px
   once the page is scrolled), so the section stops just below it; narrower, the header scrolls away. */
.twv .twv-buyband {
	scroll-margin-top: 8px;
}

@media (min-width: 1000px) {
	.twv .twv-buyband {
		scroll-margin-top: 80px;
	}
}

.twv .twv-buy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.twv .twv-buy__media {
	aspect-ratio: 4 / 3;
	background: var(--twv-pale);
	overflow: hidden;
}

.twv .twv-buy__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

html body .twv .twv-title {
	font-size: clamp(32px, 3.4vw, 46px);
	margin-bottom: 10px;
}

html body .twv .twv-price {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--twv-ink);
}

html body .twv .twv-term {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--twv-muted);
}

html body .twv .twv-copy {
	margin: 0 0 6px;
	max-width: 36em;
	font-size: 16px;
	line-height: 1.6;
	color: var(--twv-text);
}

html body .twv .twv-form {
	margin: 0;
	padding: 0;
	border: 0;
}

html body .twv .twv-set {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

html body .twv .twv-q {
	display: block;
	width: 100%;
	margin: 22px 0 10px;
	padding: 0;
	border: 0;
	font-family: var(--twv-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--twv-ink);
}

html body .twv .twv-q--sub {
	margin-top: 16px;
}

.twv .twv-tiles {
	display: grid;
	gap: 8px;
}

.twv .twv-tiles--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.twv .twv-tiles--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body .twv .twv-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--twv-line);
	background: #fff;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

html body .twv .twv-tile--left {
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
}

html body .twv .twv-tile input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	border-radius: 0 !important;
	opacity: 0;
	-webkit-appearance: none;
	appearance: none;
}

.twv .twv-tile:hover {
	border-color: var(--twv-ink);
}

.twv .twv-tile.is-on {
	border-color: var(--twv-ink);
	background: var(--twv-pale);
}

.twv .twv-tile:has(input:checked) {
	border-color: var(--twv-ink);
	background: var(--twv-pale);
}

.twv .twv-tile:has(input:focus-visible) {
	outline: 3px solid #2483a6;
	outline-offset: 3px;
}

.twv .twv-tile.is-off {
	opacity: 0.5;
	cursor: not-allowed;
}

.twv .twv-tile__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--twv-ink);
}

.twv .twv-tile__sub {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--twv-muted);
}

/* The gift details show for "As a gift"; the address or the email box for the way it is sent. */
.twv .twv-gift,
.twv .twv-send {
	display: none;
}

.twv .twv-form.is-gift .twv-gift,
.twv .twv-send.is-on {
	display: block;
}

.twv .twv-form:has(input[name="twvip_for"][value="gift"]:checked) .twv-gift {
	display: block;
}

.twv .twv-form:has(input[name="twvip_send"][value="email"]:checked) .twv-send--email {
	display: block;
}

.twv .twv-form:has(input[name="twvip_send"][value="post"]:checked) .twv-send--post {
	display: block;
}

.twv .twv-gift {
	margin-top: 6px;
	padding-top: 2px;
	border-top: 1px solid #e9ecee;
}

/* Fields. */
.twv .twv-fields--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
}

html body .twv .twv-field {
	margin: 0 0 12px;
	padding: 0;
}

html body .twv .twv-field label,
html body .twv .twv-code__label {
	display: block;
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--twv-text);
}

html body .twv .twv-input {
	display: block;
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--twv-line);
	background: #fff;
	box-shadow: none;
	font-family: var(--twv-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--twv-ink);
}

html body .twv .twv-input:focus {
	border-color: var(--twv-ink);
}

html body .twv .twv-input[readonly] {
	background: #f6f8f9;
	color: var(--twv-text);
}

html body .twv .twv-textarea {
	min-height: 86px;
	resize: vertical;
}

html body .twv .twv-field--narrow {
	max-width: 320px;
}

.twv .twv-bday {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html body .twv .twv-select {
	width: auto;
	min-width: 92px;
	padding-right: 30px;
}

html body .twv .twv-bday .twv-select + label + .twv-select {
	min-width: 150px;
}

html body .twv .twv-error {
	margin: 12px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #b3261e;
}

html body .twv .twv-error[hidden] {
	display: none;
}

html body .twv .twv-ok {
	margin: 18px 0 0;
	padding-top: 18px;
	border-top: 1px solid #d9e6f0;
	font-size: 14px;
	color: #1a7f37;
}

html body .twv .twv-msg {
	margin: 14px 0;
	padding: 10px 12px;
	background: var(--twv-pale);
	font-size: 14px;
	line-height: 1.5;
	color: var(--twv-ink);
}

html body .twv .twv-help {
	margin: 10px 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--twv-muted);
}

html body .twv .twv-help a,
html body .twv .twv-signin a {
	color: var(--twv-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body .twv .twv-signin {
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
	color: var(--twv-muted);
}

/* ---------- The redeem page ---------- */

html body .twv .twv-code {
	margin: 0;
	padding: 0;
}

html body .twv .twv-code__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--twv-ink);
}

.twv .twv-code__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 540px;
}

html body .twv .twv-code__input {
	flex: 1 1 220px;
	width: auto;
	min-height: 50px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

html body .twv .twv-code__input::placeholder {
	color: #8a949a;
	letter-spacing: 0.06em;
}

.twv .twv-activate {
	max-width: 540px;
}

.twv .twv-mode {
	margin-bottom: 14px;
}

.twv .twv-panel--have {
	display: none;
}

.twv .twv-activate.is-have .twv-panel--have {
	display: block;
}

.twv .twv-activate.is-have .twv-panel--new {
	display: none;
}

.twv .twv-activate:has(input[name="twvip_mode_pick"][value="have"]:checked) .twv-panel--have {
	display: block;
}

.twv .twv-activate:has(input[name="twvip_mode_pick"][value="have"]:checked) .twv-panel--new {
	display: none;
}

/* ---------- My Account: the birthday box ---------- */

html body .twv .twv-bdaybox {
	margin-top: 10px;
}

html body .twv .twv-bdaybox summary {
	font-size: 14px;
	font-weight: 600;
	color: var(--twv-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

html body .twv .twv-bdayform {
	display: grid;
	gap: 10px;
	justify-items: start;
	margin: 12px 0 0;
}

html body .twv .twv-bdayform .twv-select {
	min-width: 0;
	min-height: 42px;
	font-size: 15px;
}

/* The birthday box on the order confirmation. */
.twv.twv-thanks {
	max-width: 520px;
	margin: 0 0 28px;
}

/* ---------- Narrower boxes: by the width of .twv itself, and by the screen for older browsers ---------- */

@container twv (max-width: 900px) {
	.twv .twv-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.twv .twv-buy {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.twv .twv-hero__inner {
		gap: 28px;
	}
}

@container twv (max-width: 700px) {
	.twv .twv-wrap,
	.twv .twv-hero__inner {
		width: calc(100% - 48px);
	}

	.twv.twv--account .twv-hero__inner {
		width: auto;
		padding: 28px 20px;
	}

	.twv .twv-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 36px 0;
	}

	.twv .twv-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	html body .twv .twv-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.twv .twv-sec {
		padding-top: 40px;
	}

	.twv .twv-closing {
		margin: 40px 0;
		padding: 28px 20px;
	}
}

@container twv (max-width: 480px) {
	.twv .twv-cards,
	.twv .twv-grid,
	.twv .twv-fields--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.twv .twv-tiles--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	html body .twv .twv-tile--left {
		min-height: 0;
	}

	html body .twv .twv-btns .twv-btn {
		flex: 1 1 auto;
	}

	html body .twv .twv-code__row .twv-btn {
		flex: 1 1 100%;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 991px) {
		.twv .twv-cards {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		.twv .twv-buy {
			grid-template-columns: minmax(0, 1fr);
			gap: 24px;
		}
	}

	@media (max-width: 767px) {
		.twv .twv-wrap,
		.twv .twv-hero__inner {
			width: calc(100% - 48px);
		}

		.twv.twv--account .twv-hero__inner {
			width: auto;
			padding: 28px 20px;
		}

		.twv .twv-hero__inner {
			grid-template-columns: minmax(0, 1fr);
			padding: 36px 0;
		}

		.twv .twv-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		html body .twv .twv-steps {
			grid-template-columns: minmax(0, 1fr);
		}
	}

	@media (max-width: 480px) {
		.twv .twv-cards,
		.twv .twv-grid,
		.twv .twv-fields--2,
		.twv .twv-tiles--3 {
			grid-template-columns: minmax(0, 1fr);
		}
	}
}
