/**
 * PrettyCoolApp — WooCommerce.
 *
 * WooCommerce's stylesheets are off (inc/woocommerce.php), so this covers the
 * parts a creator meets in the app: forms, notices, the orders table, order
 * details, addresses and payment methods. Static Site Gen's pages bring their
 * own account.css; these rules stay generic enough to sit under it.
 */

/* Forms
 * ------------------------------------------------------------ */

.woocommerce form .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.woocommerce form .form-row:last-child {
	margin-bottom: 0;
}

.woocommerce form .form-row label,
.woocommerce form > p > label,
.woocommerce fieldset label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

.woocommerce .required {
	color: var(--pc-pink-dark);
	text-decoration: none;
	border: 0;
}

.woocommerce input.input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="url"],
.woocommerce form input[type="number"],
.woocommerce form select,
.woocommerce form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0.65rem 0.85rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius-sm);
	box-shadow: none;
	color: var(--pc-ink);
	/* 16px or more stops iOS zooming into the field. */
	font-size: 1rem;
	line-height: 1.4;
	transition: box-shadow 0.15s var(--pc-ease);
	-webkit-appearance: none;
	appearance: none;
}

.woocommerce form select {
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23101014' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
}

.woocommerce form textarea {
	min-height: 7rem;
}

.woocommerce form input:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
	outline: 2px solid transparent;
	box-shadow: var(--pc-shadow-sky);
}

.woocommerce form .woocommerce-invalid input.input-text {
	border-color: var(--pc-pink-dark);
}

.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--pc-pink);
	vertical-align: middle;
}

.woocommerce .woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
	margin: 0 !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.woocommerce form .password-input {
	position: relative;
	display: block;
}

.woocommerce form .password-input input {
	padding-right: 3rem;
}

.woocommerce form .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	background: none;
	border: 0;
	transform: translateY(-50%);
	cursor: pointer;
}

.woocommerce form .show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin: auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23101014' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce form .show-password-input.display-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23101014' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7c2 0 3.7.7 5.1 1.6M22 12s-3.6 7-10 7c-2 0-3.7-.7-5.1-1.6M3 3l18 18'/%3E%3C/svg%3E");
}

.woocommerce fieldset {
	margin: 1.5rem 0;
	padding: 1rem;
	border: var(--pc-line-soft);
	border-radius: var(--pc-radius);
}

.woocommerce fieldset legend {
	padding: 0 0.35rem;
	font-weight: 800;
}

.woocommerce form em,
.woocommerce .woocommerce-password-hint,
.woocommerce-password-strength {
	display: block;
	margin-top: 0.35rem;
	color: var(--pc-ink-70);
	font-size: 0.8125rem;
	font-style: normal;
}

.woocommerce-password-strength.bad,
.woocommerce-password-strength.short { color: var(--pc-pink-darker); }
.woocommerce-password-strength.good { color: var(--pc-sky-darker); }
.woocommerce-password-strength.strong { color: #15803d; }

/* Forms read better as a column than stretched across a wide screen. */
.woocommerce-MyAccount-content > form,
.woocommerce-EditAccountForm {
	max-width: 40rem;
}

/* Any bare form in the account area gets the card treatment the log in form
 * has, so account details, addresses and lost password look of a piece. */
.woocommerce-MyAccount-content > form,
.woocommerce-ResetPassword,
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
	padding: 1.25rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius);
	box-shadow: var(--pc-shadow);
}

.woocommerce-address-fields {
	padding: 0;
	border: 0;
	box-shadow: none;
}

/* Inside the auth card the card is the frame, not the form. */
.auth-card .woocommerce-ResetPassword {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.woocommerce-privacy-policy-text p {
	color: var(--pc-ink-70);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Terms checkbox on Create account (inc/woocommerce.php). The label wraps,
 * so the box sits at the top of the first line rather than centred. */
.woocommerce form .pc-register-terms label {
	display: flex !important;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 400 !important;
	line-height: 1.5;
}

.woocommerce form .pc-register-terms input[type="checkbox"] {
	flex: none;
	margin: 0.1em 0 0;
}

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

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.6rem 1.15rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius-pill);
	box-shadow: var(--pc-shadow);
	color: var(--pc-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s var(--pc-ease-bounce), box-shadow 0.15s var(--pc-ease-bounce), background-color 0.15s var(--pc-ease);
}

.woocommerce .button:hover {
	background: var(--pc-sky-100);
	color: var(--pc-ink);
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 var(--pc-ink);
}

.woocommerce .button:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--pc-ink);
}

/* The main action on each form is pink. */
.woocommerce button[type="submit"].button,
.woocommerce .button.alt,
.woocommerce .app-button--primary {
	background: var(--pc-pink);
	color: var(--pc-white);
}

.woocommerce button[type="submit"].button:hover,
.woocommerce .button.alt:hover,
.woocommerce .app-button--primary:hover {
	background: var(--pc-pink-dark);
	color: var(--pc-white);
}

.woocommerce .button:disabled,
.woocommerce .button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Small buttons inside tables and cards. */
.woocommerce table .button,
.woocommerce-orders-table .button {
	min-height: 34px;
	padding: 0.3rem 0.8rem;
	box-shadow: none;
	font-size: 0.8125rem;
}

.woocommerce table .button + .button {
	margin-left: 0.35rem;
}

/* Notices
 * ------------------------------------------------------------ */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.auth-card .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

.auth-card .woocommerce-error,
.auth-card .woocommerce-message,
.auth-card .woocommerce-info {
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	background: var(--pc-sky-50);
	border: var(--pc-line);
	border-left-width: 8px;
	border-radius: var(--pc-radius);
	color: var(--pc-ink);
	font-size: 0.9375rem;
	list-style: none;
}

.woocommerce-message {
	background: var(--pc-sky-100);
}

.woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
	background: var(--pc-pink-50);
	border-left-color: var(--pc-pink-dark);
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 34px;
	margin-left: auto;
	padding: 0.3rem 0.8rem;
	box-shadow: none;
	font-size: 0.8125rem;
}

/* Tables
 * On phones WooCommerce's "responsive" tables become one card per row, each
 * cell labelled from its data-title.
 * ------------------------------------------------------------ */

.woocommerce table.shop_table,
.woocommerce table.woocommerce-table {
	width: 100%;
	margin: 0 0 1.5rem;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius);
	box-shadow: var(--pc-shadow);
	font-size: 0.9375rem;
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.woocommerce-table th,
.woocommerce table.woocommerce-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	vertical-align: middle;
	border-bottom: var(--pc-line-soft);
}

.woocommerce table.shop_table thead th {
	background: var(--pc-pink-50);
	border-bottom: var(--pc-line);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.woocommerce table.shop_table tr:last-child > *,
.woocommerce table.woocommerce-table tr:last-child > * {
	border-bottom: 0;
}

.woocommerce table.shop_table tfoot th {
	font-weight: 700;
}

@media (max-width: 47.99rem) {
	.woocommerce table.shop_table_responsive thead {
		display: none;
	}

	.woocommerce table.shop_table_responsive,
	.woocommerce table.shop_table_responsive tbody,
	.woocommerce table.shop_table_responsive tr,
	.woocommerce table.shop_table_responsive td,
	.woocommerce table.shop_table_responsive th {
		display: block;
	}

	.woocommerce table.shop_table_responsive {
		background: none;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}

	.woocommerce table.shop_table_responsive tbody tr {
		margin-bottom: 0.75rem;
		padding: 0.25rem 0;
		background: var(--pc-white);
		border: var(--pc-line);
		border-radius: var(--pc-radius);
		box-shadow: var(--pc-shadow);
	}

	.woocommerce table.shop_table_responsive tbody tr > * {
		padding: 0.5rem 1rem;
		text-align: right;
		border-bottom: 0;
	}

	/* Floated rather than flexed: a cell like "$49.00 for 1 item" is several
	 * text nodes, which flex would pull apart. */
	.woocommerce table.shop_table_responsive tbody tr > *[data-title]::before {
		content: attr(data-title);
		float: left;
		margin-right: 1rem;
		color: var(--pc-ink-70);
		font-weight: 700;
	}

	.woocommerce table.shop_table_responsive tbody tr > *.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}
}

/* Order details, addresses, payment methods
 * ------------------------------------------------------------ */

.woocommerce mark {
	padding: 0 0.2em;
	background: var(--pc-pink-100);
	border-radius: 4px;
	color: var(--pc-ink);
	font-weight: 700;
}

.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	margin-top: 1.5rem;
	font-size: 1.25rem;
}

.woocommerce-Addresses,
.woocommerce-columns--addresses {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

@media (min-width: 40rem) {
	.woocommerce-Addresses,
	.woocommerce-columns--addresses {
		grid-template-columns: 1fr 1fr;
	}
}

.woocommerce-Address,
.woocommerce-column {
	padding: 1rem 1.25rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius);
	box-shadow: var(--pc-shadow);
}

.woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	margin: 0 0 0.5rem;
}

.woocommerce-Address-title .edit {
	font-size: 0.875rem;
	font-weight: 700;
}

.woocommerce address {
	margin: 0;
	font-style: normal;
	line-height: 1.6;
}

.woocommerce-MyAccount-content > p:first-child {
	color: var(--pc-ink-70);
}

.woocommerce-pagination {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.woocommerce ul.order_details li {
	padding: 0.75rem 1rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius);
	color: var(--pc-ink-70);
	font-size: 0.8125rem;
}

.woocommerce ul.order_details li strong {
	display: block;
	color: var(--pc-ink);
	font-size: 0.9375rem;
}

.woocommerce-PaymentMethods,
#payment .payment_methods {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.woocommerce-PaymentMethod {
	margin-bottom: 0.5rem;
	padding: 0.75rem 1rem;
	border: var(--pc-line);
	border-radius: var(--pc-radius-sm);
}

/* Shop
 * The shop and category archives (woocommerce/archive-product.php): a grid of
 * product cards, one per row on a phone. Product loops elsewhere (the
 * [products] shortcode, related products) get the same cards.
 * ------------------------------------------------------------ */

.shop-head__description > * {
	max-width: 40rem;
	margin: 0.5rem 0 0;
	color: var(--pc-ink-70);
}

.shop-head__description p:last-child {
	margin-bottom: 0;
}

.shop-head__back {
	color: inherit;
	text-decoration: none;
}

.shop-head__back::before {
	content: "\2190\00a0";
}

.shop-head__back:hover {
	color: var(--pc-ink);
}

.shop-cats {
	display: flex;
	gap: 0.5rem;
	margin: 0 calc(var(--app-gutter) * -1) 1.25rem;
	padding: 0 var(--app-gutter) 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.app-chip--current,
.app-chip--current:hover {
	background: var(--pc-ink);
	color: var(--pc-white);
}

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0 0 1rem;
}

.shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--pc-ink-70);
	font-size: 0.875rem;
}

.shop-toolbar .woocommerce-ordering {
	margin: 0 0 0 auto;
}

.woocommerce .shop-toolbar .woocommerce-ordering select {
	width: auto;
	min-height: 40px;
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
	border-radius: var(--pc-radius-pill);
	font-weight: 600;
	cursor: pointer;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 0 1.1rem;
	overflow: hidden;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius);
	box-shadow: var(--pc-shadow);
	transition: transform 0.15s var(--pc-ease-bounce), box-shadow 0.15s var(--pc-ease-bounce);
}

.woocommerce ul.products li.product:has(.woocommerce-loop-product__link:hover) {
	transform: translate(-2px, -2px);
	box-shadow: var(--pc-shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.1rem 1.1rem 0;
	color: var(--pc-ink);
	text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:focus-visible {
	outline-offset: -3px;
	border-radius: var(--pc-radius);
}

.shop-card__media {
	display: block;
	align-self: stretch;
	aspect-ratio: 4 / 3;
	margin: -1.1rem -1.1rem 0.35rem;
	overflow: hidden;
	background: var(--pc-sky-50);
	border-bottom: var(--pc-line);
}

.shop-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shop-card__mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 0.25rem;
	background: var(--pc-pink-100);
	border: var(--pc-line);
	border-radius: 50%;
	box-shadow: var(--pc-shadow-sm);
}

.woocommerce ul.products li.product:nth-child(even) .shop-card__mark {
	background: var(--pc-sky-100);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
	color: var(--pc-pink-dark);
}

.shop-card__excerpt {
	margin: 0;
	color: var(--pc-ink-70);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Pinned to the bottom of the link, so prices line up along a row. */
.woocommerce ul.products li.product .price {
	display: block;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--pc-ink);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
}

.woocommerce ul.products li.product .price del {
	color: var(--pc-ink-40);
	font-weight: 600;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
	color: var(--pc-ink-70);
	font-size: 0.8125rem;
}

.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin: 0.85rem 1.1rem 0;
}

.woocommerce ul.products li.product .button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.woocommerce ul.products li.product .added_to_cart {
	margin: 0.6rem 1.1rem 0;
	font-size: 0.875rem;
	font-weight: 700;
}

.woocommerce span.onsale {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	padding: 0.2rem 0.65rem;
	background: var(--pc-pink);
	border: var(--pc-line);
	border-radius: var(--pc-radius-pill);
	color: var(--pc-white);
	font-size: 0.75rem;
	font-weight: 800;
}

.app-main--shop .woocommerce-pagination {
	justify-content: center;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.6rem;
	background: var(--pc-white);
	border: var(--pc-line);
	border-radius: var(--pc-radius-pill);
	color: var(--pc-ink);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce-pagination .page-numbers a:hover {
	background: var(--pc-sky-100);
}

.woocommerce-pagination .page-numbers span.current {
	background: var(--pc-ink);
	color: var(--pc-white);
}

.woocommerce-pagination .page-numbers span.dots {
	border-color: transparent;
	background: none;
}

@media (min-width: 40rem) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.woocommerce ul.products.columns-1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.shop-cats {
		flex-wrap: wrap;
		margin-right: 0;
		margin-left: 0;
		padding: 0;
		overflow: visible;
	}
}

/* From here the columns follow WooCommerce's "Products per row" setting
 * (Customizer → WooCommerce → Product Catalog), up to four. */
@media (min-width: 60rem) {
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Annual subscription prices
 * ------------------------------------------------------------ */

/* The "paid annually ($120.00)" note under a monthly breakdown (inc/woocommerce.php). */
.pc-price-annual {
	display: block;
	color: var(--pc-ink-70);
	font-size: var(--pc-step--1);
	font-weight: 400;
}
