/**
 * PSTV WooCommerce — archive, product page, cart, checkout, account.
 *
 * Woo's own general/layout sheets are dequeued in inc/enqueue.php, so this file
 * is the whole of the store's appearance.
 */

/* ==== Shared shop chrome ================================================== */

.pstv-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.71875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pstv-grey);
}

.pstv-crumbs a {
	color: var(--pstv-grey);
}

.pstv-crumbs a:hover {
	color: var(--pstv-navy);
}

.pstv-crumb-sep {
	color: var(--pstv-border);
}

.pstv-shop-band {
	background: var(--pstv-ice);
	padding: var(--pstv-space-lg) 0;
}

.pstv-shop-band__title {
	padding-top: 14px;
}

.pstv-shop-band__body {
	max-width: 660px;
	padding-top: 14px;
}

/* ---- Filter row ---------------------------------------------------------- */

.pstv-filters {
	border-bottom: 1px solid var(--pstv-hairline);
}

.pstv-filters__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: var(--pstv-space-sm);
}

.pstv-filters__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex-grow: 1;
}

.pstv-filters__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.pstv-filters__count {
	font-size: var(--pstv-meta-size);
	color: var(--pstv-grey);
	letter-spacing: 0.06em;
}

/* Woo's ordering select, wearing the pill. */
.woocommerce-ordering select {
	min-height: var(--pstv-pill);
	padding: 0 40px 0 20px;
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' fill='none' stroke='%23172651' stroke-width='1.4'%3E%3Cpath d='M1 1.5 4.5 5 8 1.5'/%3E%3C/svg%3E") no-repeat right 18px center;
	font-size: var(--pstv-btn-size-sm);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	appearance: none;
	cursor: pointer;
}

@media (max-width: 900px) {
	.pstv-filters__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.pstv-filters__pills {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
	}

	.pstv-filters__meta {
		justify-content: space-between;
	}
}

/* ==== Product grid ======================================================== */

.pstv-shop {
	padding-block: var(--pstv-space-lg) var(--pstv-space-section);
}

ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pstv-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pstv-tile {
	display: flex;
	flex-direction: column;
}

.pstv-tile__media {
	position: relative;
	background: var(--pstv-flavour);
	overflow: hidden;
}

.pstv-tile__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s var(--pstv-ease);
}

.pstv-tile:hover .pstv-tile__media img {
	transform: scale(1.03);
}

.pstv-flag {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 6px 12px;
	border-radius: var(--pstv-radius);
	background: #fff;
	color: var(--pstv-navy);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pstv-flag--out {
	background: var(--pstv-navy);
	color: #fff;
}

.pstv-tile__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 18px;
}

.pstv-tile__eyebrow {
	margin: 0;
	color: var(--pstv-flavour-text);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.pstv-tile__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pstv-tile__title a {
	color: var(--pstv-navy);
}

.pstv-tile__title a:hover {
	color: var(--pstv-flavour-text);
}

.pstv-tile__benefit {
	margin: 0;
	color: var(--pstv-grey);
	font-size: 0.84375rem;
}

.pstv-tile__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pstv-tile__rating .pstv-stars {
	justify-content: flex-start;
	gap: 3px;
}

.pstv-tile__count {
	font-size: 0.71875rem;
	color: var(--pstv-grey);
}

.pstv-tile__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 12px;
	margin-top: auto;
}

.pstv-tile__price {
	font-size: 1.1875rem;
	font-weight: 700;
}

.pstv-tile__price.is-muted {
	color: var(--pstv-grey-muted);
}

.pstv-tile__price del {
	color: var(--pstv-grey-muted);
	font-weight: 400;
	margin-inline-end: 6px;
}

.pstv-shop__empty {
	padding: var(--pstv-space-lg) 0;
	color: var(--pstv-grey);
}

@media (max-width: 900px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Bundle prompt ------------------------------------------------------- */

.pstv-bundle-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 54px 64px;
	background: var(--pstv-navy);
	color: #fff;
}

.pstv-bundle-cta__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 560px;
}

.pstv-bundle-cta .pstv-body {
	color: #c9d5e8;
}

@media (max-width: 900px) {
	.pstv-bundle-cta {
		flex-direction: column;
		align-items: stretch;
		padding: var(--pstv-space-md) var(--pstv-gutter-mobile);
	}
}

/* ==== Product page ======================================================== */

.pstv-pdp {
	display: grid;
	grid-template-columns: 55% 45%;
}

.pstv-pdp__gallery {
	min-width: 0;
}

.pstv-pdp__summary {
	display: flex;
	flex-direction: column;
	padding: var(--pstv-space-lg) 78px;
	min-width: 0;
}

.pstv-pdp__eyebrow {
	margin: 22px 0 0;
	color: var(--pstv-flavour-text);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.pstv-pdp__title {
	margin: 12px 0 0;
	font: var(--pstv-section-sm);
}

.pstv-pdp__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 14px;
}

.pstv-pdp__rating .pstv-stars {
	justify-content: flex-start;
}

.pstv-pdp__review-link {
	font-size: 0.78125rem;
	color: var(--pstv-grey);
}

.pstv-pdp__excerpt {
	padding-top: 20px;
	text-wrap: pretty;
}

.pstv-pdp__excerpt p {
	margin: 0 0 12px;
}

.pstv-pdp__price-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 30px;
}

.pstv-pdp__price {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
}

.pstv-pdp__price del {
	color: var(--pstv-grey-muted);
	font-size: 1.25rem;
	font-weight: 400;
	margin-inline-end: 8px;
}

.pstv-pdp__price ins {
	text-decoration: none;
}

.pstv-pdp__serving {
	font-size: 0.875rem;
	color: var(--pstv-grey);
}

/* ---- Gallery -------------------------------------------------------------- */

.pstv-gallery {
	background: var(--pstv-flavour);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pstv-gallery__stage {
	flex-grow: 1;
	min-height: 0;
}

.pstv-gallery__image {
	width: 100%;
	height: 100%;
	max-height: 620px;
	object-fit: cover;
	display: block;
}

.pstv-gallery__thumbs {
	display: flex;
	gap: 3px;
	margin: 3px 0 0;
	padding: 0;
	list-style: none;
}

.pstv-gallery__thumbs li {
	flex: 1 1 0;
	min-width: 0;
}

.pstv-gallery__thumb {
	display: block;
	position: relative;
}

.pstv-gallery__thumb img {
	width: 100%;
	height: 112px;
	object-fit: cover;
	display: block;
}

.pstv-gallery__thumb.is-active::after {
	content: "";
	position: absolute;
	inset: 0;
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* ---- Variation swatches ----------------------------------------------------
 * The native <select> is kept and visually hidden only once pdp.js has built
 * the swatch buttons from it, so a no-JS visitor still gets a usable control.
 */

.pstv-buy {
	padding-top: 24px;
}

.pstv-buy__variations {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.pstv-swatches {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.pstv-swatches__label {
	font-size: 0.71875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pstv-swatches__options select {
	max-width: 320px;
}

.pstv-swatches__options.has-swatches select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.pstv-swatch-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pstv-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pstv-tap);
	padding-inline: 22px;
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	background: #fff;
	color: var(--pstv-grey);
	font-family: inherit;
	font-size: 0.78125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color var(--pstv-dur) var(--pstv-ease), color var(--pstv-dur) var(--pstv-ease);
}

.pstv-swatch:hover {
	border-color: var(--pstv-navy);
	color: var(--pstv-navy);
}

.pstv-swatch[aria-pressed="true"] {
	border-color: var(--pstv-navy);
	color: var(--pstv-navy);
	font-weight: 600;
}

.pstv-swatch[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.pstv-buy__reset {
	align-self: flex-start;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pstv-grey);
}

.pstv-buy__reset:not(.visible) {
	display: none;
}

.pstv-buy__row {
	display: flex;
	gap: 14px;
	padding-top: 22px;
}

.pstv-buy__row .single_add_to_cart_button {
	flex-grow: 1;
}

.pstv-buy__unavailable {
	padding: 16px 0;
	color: var(--pstv-cherry);
	font-weight: 600;
}

.woocommerce-variation-price {
	padding-top: 18px;
	font-size: 1.5rem;
	font-weight: 700;
}

.woocommerce-variation-availability {
	padding-top: 8px;
	font-size: 0.84375rem;
	color: var(--pstv-grey);
}

/* ---- Quantity stepper ------------------------------------------------------ */

.pstv-qty {
	display: inline-flex;
	align-items: center;
	min-height: var(--pstv-btn-xl);
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	overflow: hidden;
	flex-shrink: 0;
}

.pstv-qty__btn {
	width: var(--pstv-tap);
	min-height: var(--pstv-tap);
	border: 0;
	background: none;
	color: var(--pstv-navy);
	font-family: inherit;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
}

.pstv-qty__btn:hover {
	color: var(--pstv-blue);
}

.pstv-qty input.qty {
	width: 46px;
	min-height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 600;
	appearance: textfield;
}

.pstv-qty input.qty::-webkit-outer-spin-button,
.pstv-qty input.qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

/* ---- Accordion -------------------------------------------------------------- */

.pstv-accordion {
	padding-top: 32px;
}

.pstv-accordion__item {
	border-top: 1px solid var(--pstv-hairline);
}

.pstv-accordion__item:last-child {
	border-bottom: 1px solid var(--pstv-hairline);
}

.pstv-accordion__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--pstv-tap);
	padding: 18px 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.pstv-accordion__head::-webkit-details-marker {
	display: none;
}

.pstv-accordion__sign {
	position: relative;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.pstv-accordion__sign::before,
.pstv-accordion__sign::after {
	content: "";
	position: absolute;
	background: var(--pstv-navy);
	transition: transform var(--pstv-dur) var(--pstv-ease);
}

.pstv-accordion__sign::before {
	top: 6px; left: 0; width: 14px; height: 1px;
}

.pstv-accordion__sign::after {
	top: 0; left: 6px; width: 1px; height: 14px;
}

.pstv-accordion__item[open] .pstv-accordion__sign::after {
	transform: scaleY(0);
}

.pstv-accordion__body {
	padding-bottom: 18px;
	font-size: 0.875rem;
	line-height: 1.72;
	color: var(--pstv-grey);
}

.pstv-accordion__body p {
	margin: 0 0 12px;
}

.pstv-accordion__body p:last-child {
	margin-bottom: 0;
}

.pstv-accordion__body table {
	width: 100%;
	border-collapse: collapse;
}

.pstv-accordion__body th,
.pstv-accordion__body td {
	padding: 8px 0;
	border-bottom: 1px solid var(--pstv-hairline);
	text-align: left;
	font-weight: 400;
}

.pstv-accordion__body th {
	color: var(--pstv-navy);
	font-weight: 600;
	width: 40%;
}

/* ---- Claims on the PDP -------------------------------------------------------- */

.pstv-claims--pdp {
	gap: 26px;
	padding-top: 28px;
}

.pstv-claims--pdp .pstv-claims__item {
	width: 68px;
	font-size: 0.59375rem;
}

/* ---- How-to strip -------------------------------------------------------------- */

.pstv-howto {
	background: var(--pstv-ice);
	padding: var(--pstv-space-lg) 0;
}

.pstv-howto__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pstv-howto__step {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pstv-howto__num {
	font-size: 2.125rem;
	font-weight: 300;
	line-height: 1;
}

.pstv-howto__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pstv-howto__body {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--pstv-grey);
}

@media (max-width: 767px) {
	.pstv-howto__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

/* ---- Related + reviews ---------------------------------------------------------- */

.pstv-related {
	padding: var(--pstv-space-section) 0 0;
}

.pstv-related__title {
	padding-bottom: 28px;
}

.pstv-reviews {
	padding: var(--pstv-space-section) 0 0;
}

.pstv-reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 26px;
}

.pstv-reviews .comment_container {
	display: flex;
	gap: 16px;
	padding: 26px 28px;
	background: var(--pstv-ice);
}

.pstv-reviews .comment-text {
	min-width: 0;
}

.pstv-reviews .woocommerce-review__author {
	font-weight: 700;
	font-size: 0.875rem;
}

.pstv-reviews .woocommerce-review__published-date {
	font-size: 0.71875rem;
	color: var(--pstv-grey);
}

.pstv-reviews .description {
	font-size: 0.875rem;
	line-height: 1.7;
}

.pstv-reviews .star-rating {
	font-size: 0.75rem;
	color: var(--pstv-blue);
}

.pstv-reviews h2,
.pstv-reviews h3 {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin: 0 0 24px;
}

.pstv-reviews .comment-form {
	max-width: 640px;
	padding-top: 32px;
}

.pstv-reviews .comment-form p {
	margin: 0 0 16px;
}

.pstv-reviews .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.78125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.pstv-reviews .comment-form input[type="submit"] {
	min-height: var(--pstv-btn-md);
	padding-inline: 38px;
	border: 0;
	border-radius: var(--pstv-radius);
	background: var(--pstv-navy);
	color: #fff;
	font-family: inherit;
	font-size: var(--pstv-btn-size);
	font-weight: 500;
	letter-spacing: var(--pstv-btn-ls);
	text-transform: uppercase;
	cursor: pointer;
	width: auto;
}

@media (max-width: 1024px) {
	.pstv-pdp {
		grid-template-columns: minmax(0, 1fr);
	}

	.pstv-pdp__summary {
		padding: var(--pstv-space-md) var(--pstv-gutter-mobile) var(--pstv-space-lg);
	}

	.pstv-gallery__image {
		max-height: 420px;
	}

	.pstv-buy__row {
		flex-wrap: wrap;
	}

	.pstv-buy__row .single_add_to_cart_button {
		width: 100%;
		flex-basis: 100%;
	}
}

/* ==== Cart ================================================================ */

.woocommerce-cart .pstv-main,
.woocommerce-checkout .pstv-main,
.woocommerce-account .pstv-main {
	padding-block: var(--pstv-space-lg) var(--pstv-space-section);
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
	width: 100%;
	max-width: calc(var(--pstv-container) + var(--pstv-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--pstv-gutter);
}

.pstv-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: var(--pstv-space-lg) 0;
	max-width: 520px;
}

.pstv-cart-empty .pstv-btn {
	margin-top: 10px;
}

.woocommerce-cart-form__contents {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-cart-form__contents th {
	padding: 0 0 16px;
	border-bottom: 1px solid var(--pstv-navy);
	font-size: 0.71875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: left;
}

.woocommerce-cart-form__contents td {
	padding: 22px 0;
	border-bottom: 1px solid var(--pstv-hairline);
	vertical-align: middle;
}

.woocommerce-cart-form__contents .product-thumbnail img {
	width: 90px;
	height: 90px;
	object-fit: cover;
}

.woocommerce-cart-form__contents .product-name a {
	color: var(--pstv-navy);
	font-weight: 700;
}

.woocommerce-cart-form__contents .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--pstv-tap);
	height: var(--pstv-tap);
	color: var(--pstv-grey);
	font-size: 1.25rem;
	line-height: 1;
}

.woocommerce-cart-form__contents .product-remove a.remove:hover {
	color: var(--pstv-cherry);
}

.woocommerce-cart-form__contents .actions {
	padding-top: 26px;
}

.woocommerce-cart-form__contents .coupon {
	display: flex;
	gap: 12px;
	align-items: center;
	float: none;
	padding-bottom: 20px;
}

.woocommerce-cart-form__contents .coupon input[type="text"] {
	max-width: 260px;
}

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
	padding-top: var(--pstv-space-md);
}

.cart_totals {
	width: 100%;
	max-width: 460px;
	padding: 34px 36px;
	background: var(--pstv-ice);
}

.cart_totals h2 {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.cart_totals table {
	width: 100%;
	border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
	padding: 12px 0;
	border-bottom: 1px solid rgba(23, 38, 81, 0.12);
	text-align: left;
	font-size: 0.9375rem;
}

.cart_totals th {
	font-weight: 500;
	color: var(--pstv-grey);
}

.cart_totals td {
	text-align: right;
	font-weight: 600;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--pstv-navy);
	border-bottom: 0;
}

.wc-proceed-to-checkout {
	padding-top: 22px;
}

/* Every Woo button that is not already wearing a pstv class. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--pstv-btn-md);
	padding-inline: 34px;
	border: 1px solid var(--pstv-navy);
	border-radius: var(--pstv-radius);
	background: var(--pstv-navy);
	color: #fff;
	font-family: inherit;
	font-size: var(--pstv-btn-size-sm);
	font-weight: 500;
	letter-spacing: var(--pstv-btn-ls);
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background var(--pstv-dur) var(--pstv-ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #0f1b3d;
	color: #fff;
}

.woocommerce button.button:disabled,
.woocommerce button.button[disabled] {
	background: var(--pstv-disabled-bg);
	border-color: transparent;
	color: var(--pstv-grey-muted);
	cursor: not-allowed;
}

.checkout-button {
	width: 100%;
}

/* ==== Mini cart ============================================================ */

.pstv-mini__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pstv-mini__list li {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	padding: 16px 34px 16px 0;
	border-bottom: 1px solid var(--pstv-hairline);
}

.pstv-mini__link {
	display: contents;
	color: var(--pstv-navy);
}

.pstv-mini__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	background: var(--pstv-flavour);
}

.pstv-mini__name {
	font-size: 0.875rem;
	font-weight: 700;
}

.pstv-mini__qty {
	grid-column: 2;
	font-size: 0.8125rem;
	color: var(--pstv-grey);
}

.pstv-mini__remove {
	position: absolute;
	top: 12px;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--pstv-grey);
	font-size: 1.125rem;
}

.pstv-mini__total {
	display: flex;
	justify-content: space-between;
	padding: 18px 0;
	font-size: 1rem;
}

.pstv-mini__buttons {
	display: flex;
	gap: 10px;
}

.pstv-mini__buttons .pstv-btn {
	flex: 1 1 0;
	padding-inline: 12px;
}

.pstv-mini__empty {
	padding: 20px 0;
	color: var(--pstv-grey);
}

/* ==== Checkout ============================================================= */

.woocommerce-checkout .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: start;
}

.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout form.woocommerce-form-login {
	grid-column: 1 / -1;
}

#customer_details {
	min-width: 0;
}

#order_review_heading,
#order_review {
	grid-column: 2;
}

.woocommerce-checkout h3 {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.form-row {
	margin: 0;
	min-width: 0;
}

.form-row-wide,
.form-row.notes {
	grid-column: 1 / -1;
}

.form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.form-row .required {
	color: var(--pstv-cherry);
	text-decoration: none;
}

.select2-container--default .select2-selection--single {
	min-height: var(--pstv-tap);
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	display: flex;
	align-items: center;
	padding-inline: 8px;
}

#order_review {
	padding: 34px 36px;
	background: var(--pstv-ice);
	position: sticky;
	top: calc(var(--pstv-header-h) + 20px);
}

.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	border-bottom: 1px solid rgba(23, 38, 81, 0.12);
	text-align: left;
	font-size: 0.9375rem;
}

.woocommerce-checkout-review-order-table td {
	text-align: right;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
	font-size: 1.125rem;
	font-weight: 700;
	border-bottom: 0;
}

.wc_payment_methods {
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
}

.wc_payment_method label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: var(--pstv-tap);
	font-weight: 600;
	font-size: 0.9375rem;
}

.payment_box {
	padding: 12px 0 4px;
	font-size: 0.84375rem;
	color: var(--pstv-grey);
}

.woocommerce-terms-and-conditions-wrapper {
	padding-top: 16px;
	font-size: 0.8125rem;
}

#place_order {
	width: 100%;
	min-height: var(--pstv-btn-xl);
	margin-top: 18px;
}

@media (max-width: 1024px) {
	.woocommerce-checkout .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	#order_review_heading,
	#order_review {
		grid-column: 1;
		position: static;
	}
}

@media (max-width: 600px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==== My account =========================================================== */

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: var(--pstv-tap);
	padding: 10px 0;
	border-bottom: 1px solid var(--pstv-hairline);
	color: var(--pstv-navy);
	font-size: 0.78125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--pstv-blue);
	font-weight: 700;
}

.woocommerce-MyAccount-content {
	min-width: 0;
}

.woocommerce-MyAccount-content table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-MyAccount-content th,
.woocommerce-MyAccount-content td {
	padding: 14px 0;
	border-bottom: 1px solid var(--pstv-hairline);
	text-align: left;
	font-size: 0.875rem;
}

/* The auth card supplies the frame; the forms inside it carry none. */
.woocommerce form.login,
.woocommerce form.register {
	max-width: none;
	padding: 0;
	border: 0;
}

@media (max-width: 900px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

/* ==== Notices ============================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 24px;
	padding: 18px 24px;
	border-inline-start: 3px solid var(--pstv-blue);
	background: var(--pstv-ice);
	list-style: none;
	font-size: 0.9375rem;
}

.woocommerce-error {
	border-left-color: var(--pstv-cherry);
	background: #fdf0f0;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-inline-start: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ==== Sign in / create account ============================================= */

.pstv-auth {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 0;
	border: 1px solid var(--pstv-hairline);
	border-radius: 20px;
	overflow: hidden;
	max-width: 980px;
	margin-block: var(--pstv-space-md);
}

.pstv-auth__brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: 54px 46px;
	background:
		radial-gradient(120% 90% at 12% 0%, #21356d 0%, rgba(33, 53, 109, 0) 60%),
		var(--pstv-navy);
	color: #fff;
}

.pstv-auth__brand .pstv-eyebrow { color: #8fb6da; }
.pstv-auth__brand .pstv-h2 { color: #fff; }

.pstv-auth__points {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.pstv-auth__points li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #d3ddee;
}

.pstv-auth__points svg {
	flex-shrink: 0;
	color: #8fb6da;
}

.pstv-auth__panel {
	padding: 44px 46px 48px;
	background: #fff;
}

.pstv-auth__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 30px;
	border-radius: var(--pstv-radius);
	background: var(--pstv-ice);
}

.pstv-auth__tab {
	flex: 1 1 0;
	min-height: 46px;
	border: 0;
	border-radius: var(--pstv-radius);
	background: transparent;
	color: var(--pstv-grey);
	font-family: inherit;
	font-size: 0.78125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--pstv-dur) var(--pstv-ease), color var(--pstv-dur) var(--pstv-ease);
}

.pstv-auth__tab:hover { color: var(--pstv-navy); }

.pstv-auth__tab[aria-selected="true"] {
	background: var(--pstv-navy);
	color: #fff;
}

.pstv-auth__single {
	margin: 0 0 26px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.pstv-auth__pane .form-row { margin-bottom: 18px; }

.pstv-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.pstv-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pstv-tap);
	font-size: 0.84375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.pstv-auth__forgot {
	font-size: 0.84375rem;
	color: var(--pstv-blue);
}

.pstv-auth__forgot:hover { color: var(--pstv-navy); }

.pstv-auth__note {
	margin: 0 0 22px;
	font-size: 0.8125rem;
	color: var(--pstv-grey);
}

@media (max-width: 860px) {
	.pstv-auth {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 16px;
	}

	.pstv-auth__brand {
		padding: 34px var(--pstv-gutter-mobile);
	}

	.pstv-auth__panel {
		padding: 30px var(--pstv-gutter-mobile) 36px;
	}
}

/* ---- Signed-in dashboard --------------------------------------------------- */

.woocommerce-account.logged-in .woocommerce {
	gap: 44px;
}

.woocommerce-MyAccount-navigation {
	padding: 12px 14px;
	border: 1px solid var(--pstv-hairline);
	border-radius: 16px;
	background: #fff;
}

.woocommerce-MyAccount-navigation li a {
	min-height: 46px;
	padding: 8px 14px;
	border-bottom: 0;
	border-radius: 10px;
	font-size: 0.75rem;
	transition: background var(--pstv-dur) var(--pstv-ease), color var(--pstv-dur) var(--pstv-ease);
}

.woocommerce-MyAccount-navigation li a:hover {
	background: var(--pstv-ice);
	color: var(--pstv-navy);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--pstv-navy);
	color: #fff;
}

.woocommerce-MyAccount-content > p:first-child {
	font-size: 1rem;
	line-height: 1.7;
}
