/**
 * Twist Tea Club front-end styles (handle 'twtc').
 *
 * Used by My Account > Tea Club, the Join and Gift product pages and the one-tap link pages.
 * Everything is scoped under .twtc (or a .twtc-* class) so the theme is never affected: wrap each
 * Tea Club area in an element with the class "twtc".
 *
 * Site style: Helvetica/Arial 15px; buttons and choice tiles 1px solid #111, square corners (Twist rule: no border-radius), 50px min height,
 * white with #111 text, black with white text when chosen or primary; section titles 20px bold #3a3a3a;
 * help text 14px #666.
 *
 * Generic classes for other pages:
 *   .twtc-btn, .twtc-btn--primary      buttons and button-like links
 *   .twtc-panel                        bordered section
 *   .twtc-notice (--info, --warning, --success, --error)
 *   .twtc-field                        label + input/select/textarea (.twtc-help below, .twtc-optional in the label)
 *   .twtc-choices > .twtc-choice > input + .twtc-choice__text     text radio tiles
 *   .twtc-actions                      row of buttons
 *
 * Tea picker markup (TWTC_Account::render_picker() prints exactly this):
 *   <div class="twtc-picker" data-twtc-picker>
 *     <div class="twtc-types" role="group" aria-label="Show teas by type" hidden>
 *       <button type="button" class="twtc-type is-active" data-twtc-type="" aria-pressed="true">All teas</button>
 *       <button type="button" class="twtc-type" data-twtc-type="classics" aria-pressed="false">Classics</button>
 *     </div>
 *     <fieldset class="twtc-teas">
 *       <legend class="twtc-legend">Choose a tea</legend>
 *       <div class="twtc-teas__group" data-twtc-group="classics">
 *         <p class="twtc-teas__title">Classics</p>
 *         <div class="twtc-teas__grid">
 *           <label class="twtc-tea" data-twtc-groups="classics black-tea">   (use "*" to show under every type)
 *             <input class="twtc-tea__input" type="radio" name="twtc_tea" value="123">
 *             <span class="twtc-tea__card">
 *               <span class="twtc-tea__img"><img src="..." alt=""></span>
 *               <span class="twtc-tea__body">
 *                 <span class="twtc-tea__name">English Breakfast</span>
 *                 <span class="twtc-tea__caf">Contains caffeine</span>
 *               </span>
 *             </span>
 *           </label>
 *         </div>
 *       </div>
 *     </fieldset>
 *     <p class="twtc-picker__chosen" aria-live="polite"></p>
 *   </div>
 * The type tiles may be <span role="button" tabindex="0"> instead of <button> where a page needs it.
 */

.twtc,
.twtc-picker {
	--twtc-font: helvetica, Arial, sans-serif;
	--twtc-ink: #111;
	--twtc-text: #3a3a3a;
	--twtc-muted: #666;
	--twtc-line: #d9d9d9;
	--twtc-line-soft: #ececec;
	--twtc-soft: #f6f6f6;
	--twtc-hover: #f4f4f4;
	font-family: var(--twtc-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--twtc-text);
}

.twtc *,
.twtc *::before,
.twtc *::after,
.twtc-picker *,
.twtc-picker *::before,
.twtc-picker *::after {
	box-sizing: border-box;
}

/* Themes often set display on labels and buttons, which would beat the browser's [hidden] rule. */
.twtc [hidden],
.twtc-picker [hidden],
.twtc-types[hidden] {
	display: none !important;
}

.twtc h2,
.twtc h3,
.twtc h4,
.twtc p,
.twtc dl,
.twtc dd,
.twtc blockquote,
.twtc-picker p {
	margin: 0 0 12px;
	font-family: var(--twtc-font);
	letter-spacing: 0;
	text-transform: none;
}

.twtc a {
	color: var(--twtc-ink);
}

.twtc a:focus-visible,
.twtc button:focus-visible,
.twtc summary:focus-visible,
.twtc-picker a:focus-visible,
.twtc-picker button:focus-visible {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 3px;
}

/* Screen reader only */
.twtc .twtc-sr,
.twtc-picker .twtc-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;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Type */
.twtc .twtc-title,
.twtc .twtc-section-title {
	font-family: var(--twtc-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 26px;
	color: var(--twtc-text);
}

.twtc .twtc-section-title {
	margin: 0 0 12px;
	padding: 0;
}

.twtc .twtc-help,
.twtc-picker .twtc-help {
	font-size: 14px;
	line-height: 21px;
	color: var(--twtc-muted);
}

.twtc .twtc-lead {
	font-size: 15px;
	color: var(--twtc-ink);
}

.twtc .twtc-back {
	margin: 0 0 12px;
	font-size: 14px;
}

.twtc .twtc-back a::before {
	content: "\2190\00a0";
}

.twtc .twtc-link {
	color: var(--twtc-ink);
	text-decoration: underline;
}

.twtc .twtc-code {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed var(--twtc-ink);
	border-radius: 0;
	letter-spacing: 0.04em;
	color: var(--twtc-ink);
}

.twtc .twtc-message {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 3px solid var(--twtc-ink);
	background: var(--twtc-soft);
	font-style: normal;
	color: var(--twtc-ink);
}

/* Head: title and badge */
.twtc .twtc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.twtc .twtc-head .twtc-title {
	margin: 0;
}

/* Badges */
.twtc .twtc-badge {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--twtc-ink);
	white-space: nowrap;
}

.twtc .twtc-badge--active,
.twtc .twtc-badge--box {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc .twtc-badge--paused,
.twtc .twtc-badge--skipped,
.twtc .twtc-badge--on-hold,
.twtc .twtc-badge--pending-cancel,
.twtc .twtc-badge--pending {
	border-style: dashed;
}

.twtc .twtc-badge--cancelled,
.twtc .twtc-badge--expired {
	border-color: var(--twtc-line);
	color: var(--twtc-muted);
}

.twtc .twtc-badge--locked {
	background: var(--twtc-soft);
}

/* Panels */
.twtc .twtc-panel {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--twtc-line);
	border-radius: 0;
	background: #fff;
}

.twtc .twtc-panel > :last-child {
	margin-bottom: 0;
}

.twtc .twtc-cards {
	display: grid;
	gap: 16px;
	margin: 0 0 20px;
}

.twtc .twtc-cards .twtc-panel {
	margin: 0;
}

/* Notices */
.twtc .twtc-notice,
.twtc-picker .twtc-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid var(--twtc-ink);
	border-left-width: 4px;
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	color: var(--twtc-ink);
}

.twtc .twtc-notice > :last-child {
	margin-bottom: 0;
}

.twtc .twtc-notice--warning {
	border-color: #8a5a00;
	background: #fff8e8;
}

.twtc .twtc-notice--success {
	border-color: #2e6b30;
	background: #f2f8f2;
}

.twtc .twtc-notice--error {
	border-color: #a4262c;
	background: #fdf3f3;
}

.twtc .twtc-status {
	margin: 12px 0;
	padding: 10px 14px;
	border-radius: 0;
	background: var(--twtc-soft);
	color: var(--twtc-ink);
}

.twtc .twtc-status p {
	margin: 0 0 4px;
}

.twtc .twtc-address-summary {
	font-style: normal;
	line-height: 1.5;
}

/* Buttons */
.twtc .twtc-btn,
.twtc-picker .twtc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 50px;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: var(--twtc-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	color: var(--twtc-ink);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.twtc .twtc-btn:hover,
.twtc .twtc-btn:focus,
.twtc-picker .twtc-btn:hover {
	background: var(--twtc-hover);
	color: var(--twtc-ink);
	text-decoration: none;
}

.twtc .twtc-btn--primary,
.twtc .twtc-btn--primary:focus,
.twtc-picker .twtc-btn--primary {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc .twtc-btn--primary:hover,
.twtc-picker .twtc-btn--primary:hover {
	border-color: #333;
	background: #333;
	color: #fff;
}

.twtc .twtc-btn[disabled],
.twtc .twtc-btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
}

.twtc .twtc-btn:focus-visible,
.twtc-picker .twtc-btn:focus-visible {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 3px;
}

/* Rows of actions: full width on phones, side by side from 600px. */
.twtc .twtc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
}

.twtc .twtc-actions > *,
.twtc .twtc-actions > .twtc-btn,
.twtc .twtc-actions > form .twtc-btn,
.twtc .twtc-actions > details > summary {
	flex: 1 1 100%;
	width: 100%;
}

.twtc .twtc-inline-form {
	margin: 0;
}

/* Expanding forms (Move date, Send this box somewhere else) */
.twtc .twtc-more {
	margin: 0;
}

.twtc .twtc-more > summary {
	list-style: none;
}

.twtc .twtc-more > summary::-webkit-details-marker {
	display: none;
}

.twtc .twtc-more > summary::marker {
	content: "";
}

.twtc .twtc-more[open] > summary {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc .twtc-more__body {
	margin: 8px 0 0;
	padding: 16px;
	border: 1px solid var(--twtc-line);
	border-radius: 0;
	background: #fff;
}

.twtc .twtc-more__body .twtc-actions > * {
	flex: 1 1 100%;
}

/* Fields */
.twtc .twtc-field {
	margin: 0 0 14px;
}

.twtc .twtc-field label,
.twtc .twtc-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--twtc-text);
}

.twtc .twtc-optional {
	font-weight: 400;
	color: var(--twtc-muted);
}

.twtc .twtc-field input[type="text"],
.twtc .twtc-field input[type="email"],
.twtc .twtc-field input[type="tel"],
.twtc .twtc-field input[type="date"],
.twtc .twtc-field input[type="number"],
.twtc .twtc-field select,
.twtc .twtc-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: var(--twtc-font);
	font-size: 15px;
	line-height: 1.4;
	color: var(--twtc-ink);
}

.twtc .twtc-field textarea {
	min-height: 110px;
	resize: vertical;
}

.twtc .twtc-field input:focus-visible,
.twtc .twtc-field select:focus-visible,
.twtc .twtc-field textarea:focus-visible {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 2px;
}

.twtc .twtc-field .twtc-help {
	margin: 6px 0 0;
}

.twtc .twtc-count {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--twtc-muted);
}

.twtc .twtc-count.is-low {
	color: var(--twtc-ink);
	font-weight: 700;
}

.twtc .twtc-static {
	margin: 0;
	padding: 12px 0;
}

.twtc .twtc-fields-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 12px;
}

.twtc .twtc-check {
	margin: 4px 0 0;
}

.twtc .twtc-check label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 15px;
	color: var(--twtc-ink);
	cursor: pointer;
}

.twtc .twtc-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--twtc-ink);
}

/* Text radio tiles */
.twtc .twtc-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.twtc .twtc-choices > legend {
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
}

.twtc .twtc-choices > legend + * {
	clear: left;
}

.twtc .twtc-choices--stack {
	grid-template-columns: minmax(0, 1fr);
}

.twtc .twtc-choice {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	font-weight: 400;
	cursor: pointer;
}

.twtc .twtc-choice input {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.twtc .twtc-choice__text {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 10px 14px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	color: var(--twtc-ink);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.twtc .twtc-choices--stack .twtc-choice__text {
	justify-content: flex-start;
	text-align: left;
}

.twtc .twtc-choice:hover .twtc-choice__text {
	background: var(--twtc-hover);
}

.twtc .twtc-choice input:checked + .twtc-choice__text {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc .twtc-choice input:checked + .twtc-choice__text::after {
	content: "\00a0\2713";
}

.twtc .twtc-choice input:focus-visible + .twtc-choice__text {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 3px;
}

/* Facts list */
.twtc .twtc-facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 16px;
	margin: 0 0 4px;
}

.twtc .twtc-facts dt {
	margin: 0;
	font-weight: 700;
	color: var(--twtc-text);
}

.twtc .twtc-facts dd {
	margin: 0;
	color: var(--twtc-ink);
}

/* Tea shown as a card (display only) */
.twtc .twtc-teacard {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
}

.twtc .twtc-teacard__img {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	overflow: hidden;
	border: 1px solid var(--twtc-line-soft);
	border-radius: 0;
	background: var(--twtc-soft);
}

.twtc .twtc-teacard__img img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	object-fit: cover;
	border-radius: 0 !important;
}

.twtc .twtc-teacard__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.twtc .twtc-teacard__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--twtc-ink);
}

.twtc .twtc-teacard__meta {
	font-size: 14px;
	line-height: 20px;
	color: var(--twtc-muted);
}

.twtc .twtc-next__date {
	font-size: 17px;
	font-weight: 700;
	color: var(--twtc-ink);
}

/* Upcoming boxes */
.twtc .twtc-boxes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.twtc .twtc-boxes > li {
	margin: 0;
	list-style: none;
}

.twtc .twtc-boxes > li::before {
	content: none;
	display: none;
}

.twtc .twtc-boxes .twtc-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 12px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--twtc-line-soft);
}

.twtc .twtc-boxes .twtc-box:first-child {
	padding-top: 0;
	border-top: 0;
}

.twtc .twtc-boxes .twtc-box:last-child {
	padding-bottom: 0;
}

/* Phones: month and status on one line, then the tea, then the buttons. */
.twtc .twtc-boxes .twtc-box__month {
	grid-column: 1;
	grid-row: 1;
	font-weight: 700;
	color: var(--twtc-text);
}

.twtc .twtc-boxes .twtc-box__status {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}

.twtc .twtc-boxes .twtc-box__tea {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-direction: column;
}

.twtc .twtc-boxes .twtc-box__name {
	color: var(--twtc-ink);
}

.twtc .twtc-boxes .twtc-box__meta {
	font-size: 14px;
	line-height: 20px;
	color: var(--twtc-muted);
}

.twtc .twtc-boxes .twtc-box__actions {
	grid-column: 1 / -1;
	grid-row: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.twtc .twtc-boxes .twtc-box__actions > *,
.twtc .twtc-boxes .twtc-box__actions .twtc-btn {
	flex: 1 1 0;
}

.twtc .twtc-boxes .twtc-box--skipped .twtc-box__month,
.twtc .twtc-boxes .twtc-box--paused .twtc-box__month {
	color: var(--twtc-muted);
}

/* Past boxes */
.twtc .twtc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.twtc .twtc-table th,
.twtc .twtc-table td {
	padding: 10px 8px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--twtc-line-soft);
	background: none;
	font-size: 15px;
	text-align: left;
	vertical-align: top;
	color: var(--twtc-ink);
}

.twtc .twtc-table th {
	font-size: 14px;
	font-weight: 700;
	color: var(--twtc-text);
}

.twtc .twtc-table__meta {
	display: block;
	font-size: 13px;
	color: var(--twtc-muted);
}

/* Cancel and save */
.twtc .twtc-offers {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.twtc .twtc-offer {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
}

.twtc .twtc-offer__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--twtc-ink);
}

.twtc .twtc-offer__text {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 21px;
	color: var(--twtc-muted);
}

.twtc .twtc-offer .twtc-actions {
	margin-top: auto;
}

.twtc .twtc-foot {
	margin: 8px 0 0;
	font-size: 14px;
}

.twtc .twtc-foot p {
	margin: 0 0 8px;
}

/* "Who is it for?" switch above the Join and Gift forms (TWTC_Product::render_switch()). */
.twtc.twtc-switch {
	margin: 0 0 20px;
}

.twtc .twtc-switch__label {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--twtc-text);
}

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

.twtc .twtc-switch__opt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	color: var(--twtc-ink);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.twtc .twtc-switch__opt + .twtc-switch__opt {
	border-left: 0;
}

.twtc .twtc-switch__opt span {
	font-size: 13px;
	font-weight: 400;
	color: var(--twtc-muted);
}

.twtc .twtc-switch__opt:hover,
.twtc .twtc-switch__opt:focus {
	background: var(--twtc-hover);
	color: var(--twtc-ink);
	text-decoration: none;
}

.twtc .twtc-switch__opt.is-active,
.twtc .twtc-switch__opt.is-active:hover,
.twtc .twtc-switch__opt.is-active:focus {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc .twtc-switch__opt.is-active span {
	color: #ddd;
}

/* Porto removes outlines on every link (body a { outline: none !important }), so this one needs !important. */
.twtc .twtc-switch__opt:focus-visible {
	outline: 2px solid var(--twtc-ink) !important;
	outline-offset: -5px;
}

.twtc .twtc-switch__opt.is-active:focus-visible {
	outline-color: #fff !important;
}

/* Tea picker: compact rows in a short scrolling box, so 50 teas no longer make a very long page. */
.twtc-picker {
	margin: 0 0 16px;
}

.twtc-picker .twtc-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.twtc-picker .twtc-type {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: var(--twtc-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	color: var(--twtc-ink);
	cursor: pointer;
	user-select: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.twtc-picker .twtc-type:hover {
	background: var(--twtc-hover);
	color: var(--twtc-ink);
}

.twtc-picker .twtc-type.is-active,
.twtc-picker .twtc-type.is-active:hover {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc-picker .twtc-type:focus-visible {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 3px;
}

.twtc-picker .twtc-find {
	margin: 0 0 12px;
}

.twtc-picker .twtc-find__input,
.twtc-picker .twtc-find__input[type="search"] {
	display: block;
	width: 100%;
	max-width: none;
	height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: var(--twtc-font);
	font-size: 16px; /* 16px stops phones zooming in on focus */
	line-height: 1.3;
	color: var(--twtc-ink);
	-webkit-appearance: none;
	appearance: none;
}

.twtc-picker .twtc-find__input::placeholder {
	color: var(--twtc-muted);
	opacity: 1;
}

.twtc-picker .twtc-find__input:focus {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 1px;
}

.twtc-picker .twtc-teas {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.twtc-picker .twtc-legend {
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--twtc-text);
}

.twtc-picker .twtc-legend + * {
	clear: left;
}

.twtc-picker .twtc-teas__group {
	margin: 0 0 12px;
}

.twtc-picker .twtc-teas__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--twtc-text);
}

/* While a type or a search is active the teas show as one list, so group headings would mislead. */
.twtc-picker.is-filtered .twtc-teas__title {
	display: none;
}

.twtc-picker.is-filtered .twtc-teas__group {
	margin-bottom: 6px;
}

/* The scrolling box. Only once twtc.js has run: without it every tea is listed in full. */
.twtc-picker.is-enhanced .twtc-teas__list {
	max-height: 430px;
	max-height: min(430px, 62vh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 10px 0;
	border: 1px solid var(--twtc-line);
	background: var(--twtc-soft);
}

.twtc-picker .twtc-teas__none {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--twtc-muted);
}

.twtc-picker .twtc-teas__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 6px;
}

.twtc-picker .twtc-tea {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-weight: 400;
	cursor: pointer;
}

.twtc-picker .twtc-tea__input {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.twtc-picker .twtc-tea__card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--twtc-ink);
	border-radius: 0;
	background: #fff;
	color: var(--twtc-ink);
	transition: box-shadow 0.15s ease;
}

.twtc-picker .twtc-tea__img {
	display: block;
	flex: 0 0 54px;
	width: 54px;
	min-height: 54px;
	border-right: 1px solid var(--twtc-line-soft);
	background: var(--twtc-soft);
}

.twtc-picker .twtc-tea__img img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	object-fit: cover;
	border-radius: 0 !important;
}

.twtc-picker .twtc-tea__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 54px;
	padding: 6px 10px;
	background: #fff;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.twtc-picker .twtc-tea__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	color: inherit;
	overflow-wrap: anywhere;
}

.twtc-picker .twtc-tea__caf {
	font-size: 13px;
	line-height: 17px;
	color: var(--twtc-muted);
}

.twtc-picker .twtc-tea:hover .twtc-tea__body {
	background: var(--twtc-hover);
}

.twtc-picker .twtc-tea__input:checked + .twtc-tea__card {
	box-shadow: 0 0 0 1px var(--twtc-ink);
}

.twtc-picker .twtc-tea__input:checked + .twtc-tea__card .twtc-tea__body {
	background: var(--twtc-ink);
	color: #fff;
}

.twtc-picker .twtc-tea__input:checked + .twtc-tea__card .twtc-tea__caf {
	color: #ddd;
}

.twtc-picker .twtc-tea__input:checked + .twtc-tea__card .twtc-tea__name::after {
	content: "\00a0\2713";
}

.twtc-picker .twtc-tea__input:focus-visible + .twtc-tea__card {
	outline: 2px solid var(--twtc-ink);
	outline-offset: 2px;
}

.twtc-picker .twtc-teas__group--twist {
	margin-bottom: 12px;
}

.twtc-picker .twtc-tea--twist .twtc-tea__body {
	min-height: 54px;
	padding: 8px 12px;
	text-align: left;
}

.twtc-picker .twtc-teas__group--twist .twtc-teas__grid {
	grid-template-columns: minmax(0, 1fr);
}

.twtc-picker .twtc-picker__chosen {
	min-height: 22px;
	margin: 8px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--twtc-ink);
}

/* Larger screens */
@media (min-width: 600px) {
	.twtc .twtc-panel {
		padding: 24px;
	}

	.twtc .twtc-actions > *,
	.twtc .twtc-actions > .twtc-btn,
	.twtc .twtc-actions > form .twtc-btn,
	.twtc .twtc-actions > details > summary {
		flex: 0 0 auto;
		width: auto;
	}

	/* An open expanding form takes the full row so its fields have room. */
	.twtc .twtc-actions > details[open] {
		flex: 1 1 100%;
	}

	.twtc .twtc-actions > details[open] > summary {
		width: auto;
	}

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

	.twtc .twtc-field--full {
		grid-column: 1 / -1;
	}

	.twtc .twtc-offers {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}

	.twtc .twtc-more__body .twtc-actions > * {
		flex: 0 0 auto;
	}
}

@media (min-width: 768px) {
	.twtc .twtc-boxes .twtc-box {
		grid-template-columns: 140px minmax(0, 1fr) auto auto;
	}

	.twtc .twtc-boxes .twtc-box__month,
	.twtc .twtc-boxes .twtc-box__tea,
	.twtc .twtc-boxes .twtc-box__status,
	.twtc .twtc-boxes .twtc-box__actions {
		grid-column: auto;
		grid-row: auto;
	}

	.twtc .twtc-boxes .twtc-box__actions {
		justify-content: flex-end;
	}

	.twtc .twtc-boxes .twtc-box__actions > *,
	.twtc .twtc-boxes .twtc-box__actions .twtc-btn {
		flex: 0 0 auto;
	}

	.twtc .twtc-boxes .twtc-box__status {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twtc *,
	.twtc *::before,
	.twtc *::after,
	.twtc-picker *,
	.twtc-picker *::before,
	.twtc-picker *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
