/*
 * Hemp Trading Post Classic: version 2 design for ordinary pages, the blog, search results,
 * the page-not-found page, the account, the cart and the checkout.
 *
 * Loaded on top of v2.css on every version 2 page except the home page and the shop,
 * category, product and store pages (see htp_classic_v2_needs_page_styles() in
 * inc/v2-pages.php). It uses the colours, type and controls defined in v2.css and adds
 * nothing new to them.
 *
 * Contents: 1 page frame  2 long text  3 forms  4 blog  5 search results  6 empty and
 *           not-found pages  7 store lists  8 account  9 tables, cart  10 checkout
 */

/* 1. Page frame -------------------------------------------------------------------------- */

/* Text pages and single posts read in a column of about 70 characters (75 at most), in the middle of the page. */
.htp-page--text > article,
.htp-post > .htp-postnav,
.htp-post > .comments-area {
	margin-left: auto;
	margin-right: auto;
	max-width: 550px;
}

.htp-v2 .htp-page__title {
	margin-bottom: 0.55em;
	overflow-wrap: break-word;
}

.htp-page--wide .htp-page__title {
	margin-bottom: 28px;
}

.htp-v2 .htp-pagelinks {
	font-weight: 600;
	margin: 1.5em 0 0;
}

/* 2. Long text ----------------------------------------------------------------------------- */

.htp-prose {
	line-height: 1.7;
	overflow-wrap: break-word;
}

.htp-prose > :first-child {
	margin-top: 0;
}

.htp-prose > :last-child {
	margin-bottom: 0;
}

.htp-prose p,
.htp-prose ul,
.htp-prose ol,
.htp-prose dl,
.htp-prose table,
.htp-prose blockquote,
.htp-prose figure,
.htp-prose pre {
	margin: 0 0 1.15em;
}

.htp-v2 .htp-prose h2 {
	font-size: 1.45rem;
	margin: 2em 0 0.55em;
}

.htp-v2 .htp-prose h3 {
	font-size: 1.2rem;
	margin: 1.8em 0 0.5em;
}

.htp-v2 .htp-prose h4,
.htp-v2 .htp-prose h5,
.htp-v2 .htp-prose h6 {
	color: var(--htp-ink);
	font-family: var(--htp-font);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 1.6em 0 0.4em;
}

.htp-prose a {
	text-decoration: underline;
}

.htp-prose strong,
.htp-prose b {
	color: var(--htp-ink);
}

.htp-prose ul,
.htp-prose ol {
	padding-left: 1.4em;
}

.htp-prose li {
	margin: 0 0 0.5em;
	padding-left: 0.2em;
}

.htp-prose li::marker {
	color: var(--htp-green);
}

.htp-prose li > ul,
.htp-prose li > ol {
	margin: 0.5em 0 0;
}

.htp-prose blockquote {
	border-left: 4px solid var(--htp-sage);
	color: var(--htp-ink);
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 20px;
}

.htp-prose blockquote p:last-child {
	margin-bottom: 0;
}

.htp-prose hr {
	border: 0;
	border-top: 1px solid var(--htp-line);
	margin: 2em 0;
}

.htp-prose table {
	border-collapse: collapse;
	font-size: 0.95em;
	width: 100%;
}

.htp-prose th,
.htp-prose td {
	border-bottom: 1px solid var(--htp-line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.htp-prose thead th {
	background: var(--htp-tint);
	border-bottom: 0;
	color: var(--htp-ink);
	font-weight: 700;
}

.htp-prose tbody th {
	color: var(--htp-ink);
	font-weight: 700;
}

.htp-prose pre,
.htp-prose code {
	background: var(--htp-cream);
	border-radius: 4px;
	font-size: 0.9em;
}

.htp-prose code {
	padding: 2px 5px;
}

.htp-prose pre {
	overflow-x: auto;
	padding: 14px 16px;
}

.htp-v2 .htp-prose img {
	border-radius: var(--htp-radius);
}

.htp-prose .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.htp-prose .alignleft {
	float: left;
	margin: 6px 24px 12px 0;
	max-width: 50%;
}

.htp-prose .alignright {
	float: right;
	margin: 6px 0 12px 24px;
	max-width: 50%;
}

.htp-prose .wp-caption {
	max-width: 100%;
}

.htp-prose .wp-caption-text,
.htp-prose figcaption {
	color: var(--htp-muted);
	font-size: 0.9em;
	margin: 8px 0 0;
}

/* A button placed in the text with the editor's Button block. */
.htp-prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.6em 0;
}

.htp-v2 .htp-prose .wp-block-button__link {
	align-items: center;
	background: var(--htp-green);
	border: 2px solid var(--htp-green);
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: 10px 22px;
	text-decoration: none;
}

.htp-v2 .htp-prose .wp-block-button__link:hover {
	background: var(--htp-green-dark);
	border-color: var(--htp-green-dark);
	color: #fff;
}

/* Older pages centre whole blocks of text; they read as ordinary paragraphs here. */
.htp-prose center {
	display: block;
	text-align: left;
}

.htp-prose center > br:first-child,
.htp-prose center > br:last-child {
	display: none;
}

@media (max-width: 640px) {

	/* A wide table scrolls sideways inside its own box instead of pushing the page wider. */
	.htp-prose table {
		display: block;
		overflow-x: auto;
	}

	.htp-prose .alignleft,
	.htp-prose .alignright {
		float: none;
		margin: 0 0 1.15em;
		max-width: 100%;
	}
}

/* 3. Forms ----------------------------------------------------------------------------------- */

.htp-contact {
	margin-top: 28px;
	scroll-margin-top: 120px;
}

.htp-form {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	padding: 28px;
}

.htp-form .htp-form__row {
	margin: 0 0 18px;
}

.htp-v2 .htp-form label,
.htp-v2 .htp-sitesearch label,
.htp-v2 .htp-prose .mc4wp-form label,
.htp-v2 .comment-form label {
	color: var(--htp-ink);
	display: block;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 6px;
}

.htp-v2 .htp-form textarea,
.htp-v2 .comment-form textarea {
	display: block;
	line-height: 1.5;
	min-height: 170px;
	resize: vertical;
}

.htp-form .htp-form__actions {
	margin: 24px 0 0;
}

.htp-v2 .htp-sitesearch input[type="search"] {
	appearance: none;
	background: #fff;
	border: 1px solid rgba(29, 42, 33, 0.45);
	border-radius: 6px;
	color: var(--htp-ink);
	flex: 1 1 auto;
	font-family: var(--htp-font);
	font-size: 1rem;
	min-height: 48px;
	min-width: 0;
	padding: 10px 14px;
}

.htp-sitesearch {
	max-width: 560px;
}

.htp-sitesearch__row {
	display: flex;
	gap: 8px;
}

/* The newsletter form on its own page (the footer copy is styled in v2.css). */
.htp-prose .mc4wp-form-fields .table {
	align-items: flex-end;
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.htp-prose .mc4wp-form-fields p {
	margin: 0;
}

.htp-prose .mc4wp-form-fields p:first-child {
	flex: 1 1 auto;
}

.htp-v2 .htp-prose .mc4wp-form button,
.htp-v2 .comment-form .submit {
	background: var(--htp-green);
	border: 2px solid var(--htp-green);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-family: var(--htp-font);
	font-size: 1rem;
	font-weight: 600;
	min-height: 48px;
	padding: 10px 22px;
}

.htp-v2 .htp-prose .mc4wp-form button:hover,
.htp-v2 .comment-form .submit:hover {
	background: var(--htp-green-dark);
	border-color: var(--htp-green-dark);
}

.htp-prose .mc4wp-response {
	margin-top: 16px;
}

/* Marks on fields: required and optional. */
.htp-v2 .required,
.htp-v2 abbr.required {
	border: 0;
	color: #a12a1e;
	text-decoration: none;
}

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

@media (max-width: 640px) {

	.htp-form {
		padding: 20px;
	}

	.htp-form .htp-button {
		width: 100%;
	}

	.htp-sitesearch__row,
	.htp-prose .mc4wp-form-fields .table {
		align-items: stretch;
		flex-direction: column;
	}
}

/* 4. Blog ------------------------------------------------------------------------------------ */

.htp-list__head {
	margin: 0 0 28px;
	max-width: 760px;
}

.htp-list__head .htp-page__title {
	margin-bottom: 20px;
}

.htp-posts {
	display: grid;
	gap: 32px 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.htp-postcard article {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px;
}

.htp-postcard__media {
	display: block;
	margin: 0 0 16px;
}

.htp-v2 .htp-postcard__media img {
	aspect-ratio: 3 / 2;
	border-radius: 6px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.htp-v2 .htp-postcard__date {
	color: var(--htp-muted);
	font-size: 0.86rem;
	margin: 0 0 6px;
}

.htp-v2 .htp-postcard__title {
	font-size: 1.25rem;
	margin: 0 0 8px;
}

.htp-v2 .htp-postcard__title a,
.htp-v2 .htp-result__title a {
	color: var(--htp-ink);
	display: inline-block;
	padding: 10px 0;
	text-decoration: none;
}

.htp-v2 .htp-postcard__title a:hover,
.htp-v2 .htp-result__title a:hover {
	color: var(--htp-green-dark);
	text-decoration: underline;
}

.htp-v2 .htp-postcard__summary {
	margin: 0 0 12px;
}

.htp-postcard .htp-link {
	align-self: flex-start;
	margin-top: auto;
}

/* Single post. */
.htp-v2 .htp-post__meta {
	color: var(--htp-muted);
	margin-bottom: 1em;
}

.htp-v2 .htp-post__meta a {
	display: inline-block;
	min-width: 44px;
	padding: 12px 0;
	text-decoration: none;
}

.htp-post__media {
	margin: 0 0 28px;
}

.htp-v2 .htp-post__media img {
	border-radius: var(--htp-radius);
	display: block;
	width: 100%;
}

.htp-postnav {
	border-top: 1px solid var(--htp-line);
	margin-top: 48px;
	padding-top: 20px;
}

.htp-postnav .nav-links {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.htp-postnav .nav-next {
	grid-column: 2;
	text-align: right;
}

.htp-v2 .htp-postnav a {
	display: block;
	padding: 8px 0;
	text-decoration: none;
}

.htp-postnav__label {
	color: var(--htp-muted);
	display: block;
	font-size: 0.86rem;
}

.htp-postnav__title {
	color: var(--htp-ink);
	display: block;
	font-weight: 700;
}

.htp-postnav a:hover .htp-postnav__title {
	text-decoration: underline;
}

/* Comments. */
.htp-v2 .comments-area {
	border-top: 1px solid var(--htp-line);
	margin-top: 48px;
	padding-top: 32px;
}

.htp-v2 .comments-title,
.htp-v2 .comment-reply-title {
	font-size: 1.45rem;
}

.htp-v2 .commentlist,
.htp-v2 .commentlist .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.htp-v2 .commentlist .children {
	padding-left: 24px;
}

.htp-v2 .commentlist .comment-body {
	border-bottom: 1px solid var(--htp-line);
	padding: 18px 0;
}

.htp-v2 .commentlist .avatar {
	border-radius: 50%;
	float: left;
	margin: 2px 14px 0 0;
}

.htp-v2 .comment-meta,
.htp-v2 .comment-metadata,
.htp-v2 .comment-notes,
.htp-v2 .logged-in-as {
	color: var(--htp-muted);
	font-size: 0.9rem;
}

.htp-v2 .comment-meta a,
.htp-v2 .comment-metadata a {
	color: var(--htp-muted);
}

.htp-v2 .comment-respond {
	margin-top: 32px;
}

.htp-v2 .comment-form p {
	margin: 0 0 16px;
}

.htp-v2 .comment-form-cookies-consent {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.htp-v2 .comment-form-cookies-consent label {
	font-weight: 400;
	margin: 0;
}

/* Page links below lists of posts and search results. */
.htp-pagination {
	margin: 44px 0 0;
}

.htp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.htp-v2 .htp-pagination .page-numbers {
	align-items: center;
	background: #fff;
	border: 1px solid var(--htp-line);
	border-radius: 6px;
	color: var(--htp-ink);
	display: inline-flex;
	font-weight: 600;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0 8px;
	text-decoration: none;
}

.htp-v2 .htp-pagination .page-numbers.current,
.htp-v2 .htp-pagination a.page-numbers:hover {
	background: var(--htp-green);
	border-color: var(--htp-green);
	color: #fff;
}

.htp-v2 .htp-pagination .page-numbers.dots {
	border-color: transparent;
}

@media (max-width: 1000px) {

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

@media (max-width: 640px) {

	.htp-posts,
	.htp-postnav .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.htp-postnav .nav-next {
		grid-column: 1;
		text-align: left;
	}
}

/* 5. Search results ---------------------------------------------------------------------------- */

.htp-v2 .htp-results__count {
	color: var(--htp-muted);
	font-size: 0.95rem;
	margin: 16px 0 0;
}

.htp-results {
	list-style: none;
	margin: 0;
	max-width: 860px;
	padding: 0;
}

.htp-result {
	border-bottom: 1px solid var(--htp-line);
	column-gap: 20px;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	padding: 18px 0;
}

.htp-result:first-child {
	border-top: 1px solid var(--htp-line);
}

.htp-result__media {
	grid-column: 1;
}

.htp-v2 .htp-result__media img {
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	display: block;
	object-fit: contain;
	padding: 4px;
	width: 96px;
}

.htp-result__text {
	grid-column: 2;
	min-width: 0;
}

/* A result without a picture uses the whole row. */
.htp-result__text:first-child {
	grid-column: 1 / -1;
}

.htp-v2 .htp-result__type {
	color: var(--htp-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.htp-v2 .htp-result__title {
	font-family: var(--htp-font);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.htp-v2 .htp-result__summary {
	margin: 0;
}

.htp-v2 .htp-result__price {
	color: var(--htp-green);
	font-weight: 700;
	margin: 6px 0 0;
}

.htp-result__price del {
	color: var(--htp-muted);
	font-weight: 400;
}

.htp-result__price ins {
	text-decoration: none;
}

@media (max-width: 640px) {

	.htp-result {
		column-gap: 14px;
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.htp-v2 .htp-result__media img {
		width: 72px;
	}
}

/* 6. Empty and not-found pages ------------------------------------------------------------------ */

.htp-empty {
	background: var(--htp-cream);
	border-radius: var(--htp-radius);
	max-width: 720px;
	padding: 28px;
}

.htp-empty p:first-child {
	margin-top: 0;
}

.htp-v2 .htp-empty__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 1.4em 0 0;
}

.htp-notfound__text {
	max-width: 640px;
	padding-top: 16px;
}

.htp-notfound__text .htp-page__title {
	margin-bottom: 0.4em;
}

.htp-notfound__text .htp-sitesearch {
	margin: 28px 0 0;
}

.htp-v2 .htp-notfound__text .htp-empty__actions {
	margin-top: 24px;
}

.htp-notfound__more {
	margin-top: 64px;
}

/* 7. Store lists ---------------------------------------------------------------------------------- */

.htp-sitesearch--stores {
	margin: 0 0 28px;
}

.htp-v2 .htp-page .htp-results__count {
	margin: 0 0 24px;
}

.htp-page .htp-stores {
	margin: 0;
}

/* 8. Account ---------------------------------------------------------------------------------------- */

/* Signing in and asking for a new password: one narrow column. */
.htp-v2.woocommerce-account:not(.logged-in) .htp-page > article {
	margin: 0 auto;
	max-width: 480px;
}

.htp-v2.woocommerce-account .woocommerce > h2,
.htp-v2.woocommerce-account .woocommerce .u-column1 > h2,
.htp-v2.woocommerce-account .woocommerce .u-column2 > h2 {
	font-size: 1.3rem;
	margin: 0 0 14px;
}

.htp-v2 .woocommerce form.login,
.htp-v2 .woocommerce form.register,
.htp-v2 .woocommerce form.lost_reset_password,
.htp-v2 .woocommerce form.checkout_coupon {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	margin: 0 0 24px;
	padding: 24px;
	text-align: left;
}

.htp-v2 .woocommerce form .form-row .input-text,
.htp-v2 .woocommerce form .form-row select,
.htp-v2 .woocommerce form .form-row textarea {
	border: 1px solid rgba(29, 42, 33, 0.45);
	border-radius: 6px;
	min-height: 48px;
	padding: 10px 14px;
	width: 100%;
}

/* The forms in the account do not stretch across the whole page. */
.htp-v2 .woocommerce-MyAccount-content form {
	max-width: 680px;
}

.htp-v2 .woocommerce-MyAccount-content form .button {
	margin-top: 8px;
}

.htp-v2 .woocommerce form .form-row label.woocommerce-form__label-for-checkbox,
.htp-v2 .woocommerce form .form-row label.checkbox,
.htp-v2 .woocommerce form label.checkbox {
	align-items: flex-start;
	display: flex;
	font-weight: 400;
	gap: 10px;
	line-height: 1.5;
}

.htp-v2 .woocommerce form.login .woocommerce-form-login__rememberme {
	margin: 0 0 18px;
	min-height: 44px;
	padding: 10px 0;
}

.htp-v2 .woocommerce form.login .woocommerce-form-login__submit,
.htp-v2 .woocommerce form.lost_reset_password .button {
	float: none;
	margin: 0;
	width: 100%;
}

.htp-v2 .woocommerce form.login .lost_password {
	margin: 12px 0 0;
}

/* Below the sign-in box: where sellers apply. */
.htp-v2 .htp-account-note {
	color: var(--htp-muted);
	margin: 0;
}

.htp-v2 .htp-account-note a {
	font-weight: 600;
}

.htp-v2 .woocommerce form.login .lost_password a,
.htp-v2 .woocommerce-Address-title a {
	display: inline-block;
	padding: 10px 0;
}

.htp-v2 .woocommerce form.lost_reset_password .form-row-first {
	float: none;
	width: auto;
}

/* The eye button that shows the typed password sits inside the field. */
.htp-v2 .woocommerce form .password-input {
	display: block;
	position: relative;
}

.htp-v2 .woocommerce form .show-password-input {
	align-items: center;
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	right: 4px;
	top: 2px;
	transform: none;
	width: 44px;
}

.htp-v2 .woocommerce form .show-password-input::before {
	display: block;
}

/* Signed in: the account menu beside the content. */
.htp-v2.woocommerce-account.logged-in .htp-page__content > .woocommerce {
	align-items: start;
	display: grid;
	gap: 24px 40px;
	grid-template-columns: 250px minmax(0, 1fr);
}

.htp-v2.woocommerce-account.logged-in .htp-page__content > .woocommerce::before,
.htp-v2.woocommerce-account.logged-in .htp-page__content > .woocommerce::after {
	display: none;
}

.htp-v2.woocommerce-account .woocommerce-MyAccount-navigation,
.htp-v2.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.htp-v2 .woocommerce-MyAccount-navigation ul {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	list-style: none;
	margin: 0;
	padding: 8px;
}

.htp-v2 .woocommerce-MyAccount-navigation li a {
	align-items: center;
	border-radius: 6px;
	color: var(--htp-ink);
	display: flex;
	font-weight: 600;
	min-height: 48px;
	padding: 8px 14px;
	text-decoration: none;
}

.htp-v2 .woocommerce-MyAccount-navigation li a:hover {
	background: var(--htp-tint);
}

.htp-v2 .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--htp-tint);
	color: var(--htp-green-dark);
}

.htp-v2 .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.htp-v2 .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty + * {
	margin-top: 0;
}

.htp-v2 .woocommerce-MyAccount-content h2,
.htp-v2 .woocommerce-MyAccount-content h3 {
	font-size: 1.3rem;
}

.htp-v2 .woocommerce-MyAccount-content mark {
	background: none;
	color: var(--htp-ink);
	font-weight: 700;
}

.htp-v2 .woocommerce-MyAccount-content fieldset {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	margin: 28px 0 20px;
	padding: 8px 20px 4px;
}

.htp-v2 .woocommerce-MyAccount-content legend {
	color: var(--htp-ink);
	font-weight: 700;
	padding: 0 8px;
}

.htp-v2 .woocommerce-MyAccount-content .form-row em,
.htp-v2 .woocommerce-MyAccount-content .form-row > span > em {
	color: var(--htp-muted);
	display: block;
	font-size: 0.9rem;
	margin-top: 6px;
}

/* Two boxes side by side: the addresses in the account and on a finished order. */
.htp-v2 .woocommerce .col2-set.addresses,
.htp-v2 .woocommerce .woocommerce-Addresses {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.htp-v2 .woocommerce .col2-set::before,
.htp-v2 .woocommerce .col2-set::after {
	display: none;
}

.htp-v2 .woocommerce .col2-set .col-1,
.htp-v2 .woocommerce .col2-set .col-2 {
	float: none;
	max-width: none;
	width: auto;
}

.htp-v2 .woocommerce .woocommerce-Address,
.htp-v2 .woocommerce .woocommerce-customer-details .woocommerce-column {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	padding: 20px;
}

.htp-v2 .woocommerce-Address-title {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
	justify-content: space-between;
}

.htp-v2.woocommerce-account .woocommerce .addresses .title::before,
.htp-v2.woocommerce-account .woocommerce .addresses .title::after {
	display: none;
}

.htp-v2.woocommerce-account .woocommerce .addresses .title h2,
.htp-v2.woocommerce-account .woocommerce .addresses .title h3 {
	float: none;
	margin: 0;
}

.htp-v2.woocommerce-account .woocommerce .addresses .title .edit {
	float: none;
	font-weight: 600;
}

.htp-v2 .woocommerce address {
	border: 0;
	font-style: normal;
	padding: 0;
}

/* The country and state pickers, in the look of the other fields. */
.htp-v2 .select2-container .select2-selection--single {
	border: 1px solid rgba(29, 42, 33, 0.45);
	border-radius: 6px;
	height: 48px;
	margin: 0;
}

.htp-v2 .select2-container .select2-selection--single .select2-selection__rendered {
	color: var(--htp-ink);
	line-height: 46px;
	padding: 0 36px 0 14px;
}

.htp-v2 .select2-container .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 8px;
}

.htp-v2 .select2-dropdown {
	border-color: rgba(29, 42, 33, 0.45);
}

.htp-v2 .select2-container--default .select2-results__option--highlighted[aria-selected],
.htp-v2 .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--htp-green);
	color: #fff;
}

.htp-v2 .select2-search--dropdown .select2-search__field {
	min-height: 40px;
}

@media (max-width: 900px) {

	.htp-v2.woocommerce-account.logged-in .htp-page__content > .woocommerce,
	.htp-v2 .woocommerce .col2-set.addresses,
	.htp-v2 .woocommerce .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 9. Tables and the cart ------------------------------------------------------------------------------ */

.htp-v2 .woocommerce table.shop_table {
	border: 1px solid var(--htp-line);
	border-collapse: separate;
	border-radius: var(--htp-radius);
	margin: 0 0 24px;
	width: 100%;
}

.htp-v2 .woocommerce table.shop_table th {
	color: var(--htp-ink);
	font-weight: 700;
	padding: 12px 14px;
	text-align: left;
}

.htp-v2 .woocommerce table.shop_table td {
	border-top: 1px solid var(--htp-line);
	padding: 12px 14px;
}

.htp-v2 .woocommerce table.shop_table tbody th,
.htp-v2 .woocommerce table.shop_table tfoot td,
.htp-v2 .woocommerce table.shop_table tfoot th {
	border-top: 1px solid var(--htp-line);
}

.htp-v2 .woocommerce table.shop_table td a:not(.button):not(.remove) {
	color: var(--htp-ink);
	font-weight: 600;
}

.htp-v2 .woocommerce table.shop_table .button {
	min-height: 44px;
	padding: 8px 16px;
}

.htp-v2 .woocommerce table.my_account_orders .button {
	margin: 2px 4px 2px 0;
}

/* The small print below a product in an order ("Sold by" and chosen options). */
.htp-v2 .woocommerce ul.wc-item-meta {
	color: var(--htp-muted);
	font-size: 0.86rem;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.htp-v2 .woocommerce ul.wc-item-meta li,
.htp-v2 .woocommerce ul.wc-item-meta li p,
.htp-v2 .woocommerce ul.wc-item-meta .wc-item-meta-label {
	display: inline;
	float: none;
	font-weight: 400;
	margin: 0;
}

.htp-v2 .woocommerce-customer-details address p {
	margin: 0;
}

/* Cart: the products on the left, the totals in a box on the right. */
.htp-v2.woocommerce-cart .htp-page__content > .woocommerce {
	align-items: start;
	display: grid;
	gap: 24px 40px;
	grid-template-columns: minmax(0, 1fr) 380px;
}

.htp-v2.woocommerce-cart .htp-page__content > .woocommerce > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.htp-v2.woocommerce-cart .htp-page__content > .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

.htp-v2.woocommerce-cart .htp-page__content > .woocommerce > .woocommerce-cart-form {
	grid-column: 1;
}

.htp-v2.woocommerce-cart .htp-page__content > .woocommerce > .cart-collaterals {
	grid-column: 2;
}

.htp-v2.woocommerce-cart .cart-collaterals::before,
.htp-v2.woocommerce-cart .cart-collaterals::after {
	display: none;
}

.htp-v2.woocommerce-cart .cart-collaterals .cart_totals,
.htp-v2.woocommerce-cart .cart-collaterals .cross-sells {
	float: none;
	width: auto;
}

.htp-v2.woocommerce-cart .cart_totals {
	background: var(--htp-cream);
	border-radius: var(--htp-radius);
	padding: 24px;
}

.htp-v2.woocommerce-cart .cart_totals > h2 {
	font-size: 1.4rem;
	margin: 0 0 8px;
}

.htp-v2.woocommerce-cart .cart_totals table.shop_table,
.htp-v2 #order_review table.shop_table {
	border: 0;
	border-radius: 0;
	margin: 0 0 16px;
}

.htp-v2.woocommerce-cart .cart_totals table.shop_table th,
.htp-v2.woocommerce-cart .cart_totals table.shop_table td,
.htp-v2 #order_review table.shop_table th,
.htp-v2 #order_review table.shop_table td {
	border-top: 1px solid rgba(29, 42, 33, 0.14);
	padding: 12px 0;
	vertical-align: top;
}

.htp-v2.woocommerce-cart .cart_totals table.shop_table tr:first-child th,
.htp-v2.woocommerce-cart .cart_totals table.shop_table tr:first-child td,
.htp-v2 #order_review table.shop_table thead th {
	border-top: 0;
}

.htp-v2.woocommerce-cart .cart_totals table.shop_table td,
.htp-v2 #order_review table.shop_table td:last-child,
.htp-v2 #order_review table.shop_table th:last-child {
	text-align: right;
}

.htp-v2 .woocommerce .order-total th,
.htp-v2 .woocommerce .order-total td {
	color: var(--htp-ink);
	font-size: 1.1rem;
}

.htp-v2 .woocommerce ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
}

.htp-v2 .woocommerce ul#shipping_method li {
	margin: 0 0 8px;
	white-space: nowrap;
}

.htp-v2 .woocommerce ul#shipping_method label {
	display: inline;
	font-weight: 400;
}

.htp-v2 .woocommerce ul#shipping_method input {
	accent-color: var(--htp-green);
	height: 20px;
	margin: 0 6px 0 0;
	vertical-align: -4px;
	width: 20px;
}

.htp-v2 .woocommerce .shipping-calculator-button {
	display: inline-block;
	font-weight: 600;
	padding: 10px 0;
}

.htp-v2 .woocommerce .shipping-calculator-form {
	text-align: left;
}

.htp-v2 .woocommerce .woocommerce-shipping-destination,
.htp-v2 .woocommerce .woocommerce-shipping-calculator {
	font-size: 0.92rem;
	margin: 6px 0 0;
}

.htp-v2 .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

.htp-v2 .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	font-size: 1.05rem;
	margin: 0;
	min-height: 52px;
	padding: 12px 22px;
	width: 100%;
}

.htp-v2 .woocommerce table.cart td.product-remove {
	padding-right: 0;
	width: 48px;
}

.htp-v2 .woocommerce table.cart a.remove {
	align-items: center;
	border-radius: 50%;
	color: #a12a1e !important;
	display: flex;
	font-size: 1.6rem;
	font-weight: 400;
	height: 44px;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 44px;
}

.htp-v2 .woocommerce table.cart a.remove:hover {
	background: #fbeeec;
	color: #a12a1e !important;
}

.htp-v2 .woocommerce table.cart td.product-thumbnail {
	width: 96px;
}

.htp-v2 .woocommerce table.cart td.product-thumbnail img {
	background: #fff;
	border: 1px solid var(--htp-line);
	border-radius: 6px;
	display: block;
	width: 72px;
}

.htp-v2 .woocommerce table.cart td.product-name dl.variation,
.htp-v2 #order_review dl.variation {
	color: var(--htp-muted);
	font-size: 0.86rem;
	margin: 4px 0 0;
}

.htp-v2 .woocommerce dl.variation dt,
.htp-v2 .woocommerce dl.variation dd,
.htp-v2 .woocommerce dl.variation dd p {
	display: inline;
	float: none;
	font-weight: 400;
	margin: 0;
}

.htp-v2 .woocommerce dl.variation dd::after {
	content: "";
	display: block;
}

.htp-v2 .woocommerce table.cart td.actions {
	padding: 16px 14px;
}

.htp-v2 .woocommerce table.cart td.actions .coupon {
	display: flex;
	float: left;
	gap: 8px;
}

.htp-v2 .woocommerce table.cart td.actions .coupon .input-text {
	border: 1px solid rgba(29, 42, 33, 0.45);
	float: none;
	margin: 0;
	min-height: 48px;
	padding: 10px 14px;
	width: 190px;
}

.htp-v2 .woocommerce table.cart td.actions .button {
	background: #fff;
	color: var(--htp-green);
	min-height: 48px;
}

.htp-v2 .woocommerce table.cart td.actions .button:hover {
	background: var(--htp-green);
	color: #fff;
}

.htp-v2 .woocommerce table.cart td.actions .button:disabled,
.htp-v2 .woocommerce table.cart td.actions .button[disabled] {
	background: #fff;
	border-color: var(--htp-line);
	color: var(--htp-muted);
	cursor: default;
	opacity: 1;
	padding: 8px 16px;
}

.htp-v2 .woocommerce .return-to-shop {
	margin: 0;
}

@media (max-width: 1000px) {

	.htp-v2.woocommerce-cart .htp-page__content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.htp-v2.woocommerce-cart .htp-page__content > .woocommerce > .cart-collaterals {
		grid-column: 1;
	}
}

@media (max-width: 768px) {

	/* WooCommerce stacks the table rows on phones; each line is "label ... value". */
	.htp-v2 .woocommerce table.shop_table_responsive tr td {
		padding: 10px 14px;
	}

	.htp-v2 .woocommerce table.shop_table_responsive tr td::before {
		color: var(--htp-ink);
	}

	.htp-v2 .woocommerce table.shop_table_responsive tbody tr:first-child td:first-child,
	.htp-v2 .woocommerce table.shop_table_responsive tr:nth-child(2n) td {
		background: none;
	}

	.htp-v2 .woocommerce table.shop_table_responsive tbody tr:first-child td:first-child {
		border-top: 0;
	}

	/* The orders list: each order starts with its number, which WooCommerce's phone layout would hide. */
	.htp-v2 .woocommerce table.my_account_orders tbody th {
		background: var(--htp-tint);
		display: block;
		padding: 10px 14px;
		text-align: right;
	}

	.htp-v2 .woocommerce table.my_account_orders tbody th::before {
		content: attr(data-title) ": ";
		float: left;
		font-weight: 700;
	}

	.htp-v2 .woocommerce table.my_account_orders tbody tr:first-child th {
		border-top: 0;
	}

	.htp-v2 .woocommerce table.my_account_orders tbody th::before {
		padding: 12px 0;
	}

	.htp-v2 .woocommerce table.my_account_orders tbody th a {
		display: inline-block;
		min-width: 44px;
		padding: 12px 0;
	}

	.htp-v2 .woocommerce table.cart td.product-remove {
		width: auto;
	}

	.htp-v2 .woocommerce table.cart a.remove {
		margin-left: auto;
	}

	.htp-v2 .woocommerce table.cart td.actions .coupon {
		float: none;
		margin: 0 0 12px;
		padding: 0;
	}

	.htp-v2 .woocommerce table.cart td.actions .coupon .input-text {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
	}

	.htp-v2 .woocommerce table.cart td.actions .coupon .button {
		flex: none;
		white-space: nowrap;
		width: auto;
	}

	.htp-v2 .woocommerce table.cart td.actions > .button {
		width: 100%;
	}

	.htp-v2.woocommerce-cart .cart_totals table.shop_table td {
		padding: 12px 0;
	}
}

/* 10. Checkout ------------------------------------------------------------------------------------------- */

.htp-v2.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.htp-v2.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin-bottom: 16px;
}

/* The sign-in and coupon boxes that open from the two notices. */
.htp-v2.woocommerce-checkout form.login,
.htp-v2.woocommerce-checkout form.checkout_coupon {
	max-width: 560px;
}

.htp-v2.woocommerce-checkout form.checkout_coupon .form-row {
	margin-bottom: 12px;
}

/* The details on the left, the order and the payment in a box on the right. */
.htp-v2.woocommerce-checkout form.checkout {
	align-items: start;
	display: grid;
	gap: 0 48px;
	grid-template-columns: minmax(0, 1fr) 440px;
	grid-template-rows: auto 1fr;
	margin-top: 28px;
}

.htp-v2.woocommerce-checkout form.checkout > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.htp-v2.woocommerce-checkout form.checkout > #customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.htp-v2.woocommerce-checkout form.checkout > #order_review_heading {
	background: var(--htp-cream);
	border-radius: var(--htp-radius) var(--htp-radius) 0 0;
	font-size: 1.4rem;
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding: 24px 24px 4px;
}

.htp-v2.woocommerce-checkout form.checkout > #order_review {
	background: var(--htp-cream);
	border-radius: 0 0 var(--htp-radius) var(--htp-radius);
	grid-column: 2;
	grid-row: 2;
	padding: 8px 24px 24px;
}

.htp-v2.woocommerce-checkout #customer_details h3 {
	font-size: 1.4rem;
	margin: 0 0 16px;
}

.htp-v2.woocommerce-checkout #customer_details .col-2 {
	margin-top: 20px;
}

.htp-v2.woocommerce-checkout #ship-to-different-address {
	font-family: var(--htp-font);
	font-size: 1rem;
}

.htp-v2.woocommerce-checkout #ship-to-different-address label {
	align-items: center;
	color: var(--htp-ink);
	font-weight: 600;
	min-height: 44px;
}

/* First and last name share a line; every other field uses the whole line. */
.htp-v2.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.htp-v2.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.htp-v2.woocommerce-account .woocommerce-address-fields__field-wrapper {
	column-gap: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.htp-v2.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > *,
.htp-v2.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > *,
.htp-v2.woocommerce-account .woocommerce-address-fields__field-wrapper > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.htp-v2.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
.htp-v2.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
.htp-v2.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
.htp-v2.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last,
.htp-v2.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first,
.htp-v2.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last {
	grid-column: auto;
}

.htp-v2.woocommerce-checkout .woocommerce-additional-fields {
	margin-top: 8px;
}

.htp-v2.woocommerce-checkout .woocommerce-additional-fields textarea {
	display: block;
	min-height: 110px;
}

.htp-v2.woocommerce-checkout .woocommerce-invalid .input-text,
.htp-v2.woocommerce-checkout .woocommerce-invalid .select2-selection {
	border-color: #a12a1e;
}

.htp-v2 #order_review .product-name {
	color: var(--htp-ink);
}

.htp-v2 #order_review .product-quantity {
	color: var(--htp-muted);
	font-weight: 400;
}

.htp-v2.woocommerce-checkout #payment {
	background: none;
	border-radius: 0;
}

.htp-v2.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 0;
	border-top: 1px solid rgba(29, 42, 33, 0.14);
	list-style: none;
	margin: 0;
	padding: 16px 0 4px;
}

.htp-v2.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0 0 10px;
}

.htp-v2.woocommerce-checkout #payment ul.payment_methods li label {
	color: var(--htp-ink);
	display: inline;
	font-weight: 600;
}

.htp-v2.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
	accent-color: var(--htp-green);
	height: 20px;
	margin: 0 8px 0 0;
	vertical-align: -4px;
	width: 20px;
}

.htp-v2.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border: 1px solid var(--htp-line);
	border-radius: 6px;
	color: var(--htp-text);
	margin: 10px 0 0;
	padding: 14px 16px;
}

.htp-v2.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.htp-v2.woocommerce-checkout #payment .woocommerce-info,
.htp-v2.woocommerce-checkout #payment .woocommerce-error {
	background: #fff;
	line-height: 1.5;
	margin: 0;
}

.htp-v2.woocommerce-checkout #payment div.form-row.place-order {
	margin: 0;
	padding: 12px 0 0;
}

.htp-v2.woocommerce-checkout .woocommerce-privacy-policy-text,
.htp-v2.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	color: var(--htp-muted);
	font-size: 0.92rem;
}

.htp-v2.woocommerce-checkout #payment #place_order {
	float: none;
	font-size: 1.05rem;
	margin: 8px 0 0;
	min-height: 52px;
	width: 100%;
}

/* A finished or pending order: the summary lines and the details below. */
.htp-v2 .woocommerce ul.order_details {
	border: 1px solid var(--htp-line);
	border-radius: var(--htp-radius);
	display: grid;
	gap: 16px 24px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	list-style: none;
	margin: 0 0 28px;
	padding: 20px;
}

.htp-v2 .woocommerce ul.order_details::before,
.htp-v2 .woocommerce ul.order_details::after {
	display: none;
}

.htp-v2 .woocommerce ul.order_details li {
	border: 0;
	color: var(--htp-muted);
	float: none;
	font-size: 0.8rem;
	margin: 0;
	padding: 0;
}

.htp-v2 .woocommerce ul.order_details li strong {
	color: var(--htp-ink);
	font-size: 1rem;
	text-transform: none;
}

@media (max-width: 1000px) {

	.htp-v2.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
	}

	.htp-v2.woocommerce-checkout form.checkout > #customer_details,
	.htp-v2.woocommerce-checkout form.checkout > #order_review_heading,
	.htp-v2.woocommerce-checkout form.checkout > #order_review {
		grid-column: 1;
		grid-row: auto;
	}

	.htp-v2.woocommerce-checkout form.checkout > #order_review_heading {
		margin-top: 28px;
	}
}

@media (max-width: 640px) {

	.htp-v2.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
	.htp-v2.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
	.htp-v2.woocommerce-account .woocommerce-address-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.htp-v2.woocommerce-checkout form.checkout > #order_review_heading {
		padding: 20px 16px 4px;
	}

	.htp-v2.woocommerce-checkout form.checkout > #order_review {
		padding: 8px 16px 20px;
	}

	.htp-v2.woocommerce-cart .cart_totals {
		padding: 20px 16px;
	}
}
