/* =========================================================
   NOUNCITY — COMMERCE SURFACES
   ---------------------------------------------------------
   Cart, checkout, account, notices and the order screens.

   These pages are WooCommerce's own blocks and templates. They carry the
   money, the stock, the tax and the payment, so they are not reimplemented
   here — but out of the box they arrive in WooCommerce's default dress,
   which next to the studio design reads as a different website. This sheet
   dresses them: same type scale, same radii, same sand and clay fills, same
   pill buttons, same 1240px measure.

   Only presentation. Nothing here changes behaviour, and every selector is
   a WooCommerce class so an update that renames one degrades to plain
   WooCommerce rather than to a broken page.
   ========================================================= */

/* ==========================================================================
   1. Page shell
   ========================================================================== */

.studio-woo {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 40px 32px 96px;
}

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

/* A heading band, so a commerce page opens the way every other page does. */
.nc-page-head {
	margin: 0 0 36px;
}

.nc-page-head .eyebrow {
	margin-bottom: 10px;
}

.nc-page-head h1 {
	font-size: clamp(32px, 4vw, 46px);
	letter-spacing: -.035em;
	line-height: 1.04;
}

.nc-page-head p {
	margin-top: 12px;
	max-width: 54ch;
	color: var(--ink-2);
}

/* WooCommerce prints its own h1 on several of these pages. */
.studio-woo .wc-block-components-title,
.woocommerce-account .entry-title,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
	font-family: var(--font);
	font-weight: 800;
	letter-spacing: -.035em;
	color: var(--ink);
}

.studio-woo .woocommerce-breadcrumb {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--ink-3);
}

.studio-woo .woocommerce-breadcrumb a {
	color: var(--ink-2);
	text-decoration: none;
}

.studio-woo .woocommerce-breadcrumb a:hover {
	color: var(--rust);
}

/* ==========================================================================
   2. Notices
   --------------------------------------------------------------------------
   "Added to your cart" is the single most-seen message on the site and it
   was arriving as WooCommerce's stock green bar. Both the classic notices
   and the block ones are restyled, because the two render on different
   pages: classic on the product page and account, block inside cart and
   checkout.
   ========================================================================== */

.studio-woo .woocommerce-message,
.studio-woo .woocommerce-info,
.studio-woo .woocommerce-error,
.wc-block-components-notice-banner {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 28px;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--sage);
	border-radius: var(--r-md);
	background: var(--sand);
	color: var(--ink);
	font-size: 15.5px;
	line-height: 1.55;
	list-style: none;
	box-shadow: 0 12px 30px -24px rgba(27, 27, 31, .5);
}

.studio-woo .woocommerce-message::before,
.studio-woo .woocommerce-info::before,
.studio-woo .woocommerce-error::before {
	position: static;
	flex: none;
	margin: 1px 0 0;
	font-size: 16px;
	color: var(--sage);
}

/* WooCommerce ships its own background on each banner variant, at a
   specificity our single class cannot reach, so these repeat the class. */
.studio-woo .woocommerce-info,
.wc-block-components-notice-banner.wc-block-components-notice-banner.is-info {
	border-left-color: var(--rust);
	background: var(--sand);
	color: var(--ink);
}

.wc-block-components-notice-banner.wc-block-components-notice-banner.is-success {
	border-left-color: var(--sage);
	background: var(--sand);
	color: var(--ink);
}

.wc-block-components-notice-banner.wc-block-components-notice-banner.is-warning {
	border-left-color: #B4541C;
	background: #FDF6EF;
	color: var(--ink);
}

.studio-woo .woocommerce-info::before {
	color: var(--rust);
}

.studio-woo .woocommerce-error,
.wc-block-components-notice-banner.wc-block-components-notice-banner.is-error {
	border-left-color: #B3261E;
	background: #FDF4F3;
	color: var(--ink);
}

.studio-woo .woocommerce-error::before {
	color: #B3261E;
}

.wc-block-components-notice-banner > svg {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	fill: var(--sage);
	background: none;
}

.wc-block-components-notice-banner.is-error > svg {
	fill: #B3261E;
}

.wc-block-components-notice-banner.is-info > svg {
	fill: var(--rust);
}

.wc-block-components-notice-banner__content {
	font-size: 15.5px;
	line-height: 1.55;
}

/* The "View cart" link inside a notice is an action, so it looks like one. */
.studio-woo .woocommerce-message .button,
.studio-woo .woocommerce-info .button {
	order: 2;
	margin-inline-start: auto;
	flex: none;
	padding: 0;
	background: none;
	color: var(--rust);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
}

.studio-woo .woocommerce-message .button:hover,
.studio-woo .woocommerce-info .button:hover {
	background: none;
	color: var(--rust-deep);
	transform: none;
}

/* The floating snackbar cart and checkout use for background updates. */
.wc-block-components-notice-snackbar,
.wc-block-components-notices__snackbar .wc-block-components-notice-banner {
	border-radius: var(--r-md);
	background: var(--ink);
	border: 0;
	color: #fff;
}

/* ==========================================================================
   3. Shared form controls
   --------------------------------------------------------------------------
   One definition for every text input on the commerce pages, so the cart
   coupon field, the checkout address and the account password all match the
   fields in the studio's own forms.
   ========================================================================== */

.studio-woo input[type="text"],
.studio-woo input[type="email"],
.studio-woo input[type="tel"],
.studio-woo input[type="url"],
.studio-woo input[type="number"],
.studio-woo input[type="date"],
.studio-woo input[type="password"],
.studio-woo input[type="search"],
.studio-woo textarea,
.studio-woo select,
.wc-block-components-text-input input,
.wc-blocks-components-select__select {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15.5px;
	line-height: 1.4;
	transition: border-color .18s, box-shadow .18s;
}

.studio-woo input:focus,
.studio-woo textarea:focus,
.studio-woo select:focus,
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
	outline: none;
	border-color: var(--orange);
	box-shadow: 0 0 0 3px rgba(236, 122, 46, .18);
}

.studio-woo label,
.wc-blocks-components-select__label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.studio-woo .required,
.studio-woo abbr.required {
	color: var(--rust);
	text-decoration: none;
	border: 0;
}

/* Floated labels inside the block fields sit over the input, so they get
   the background of the input rather than a loud border. */
.wc-block-components-text-input label {
	color: var(--ink-3);
	font-weight: 500;
}

.wc-block-components-text-input.is-active label {
	color: var(--ink-2);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.studio-woo .button,
.studio-woo button.button,
.studio-woo a.button,
.studio-woo input[type="submit"],
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 30px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--orange);
	color: #fff;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 12px 26px -10px rgba(236, 122, 46, .55);
}

.studio-woo .button:hover,
.studio-woo button.button:hover,
.studio-woo a.button:hover,
.studio-woo input[type="submit"]:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--orange-hover);
	color: #fff;
	transform: translateY(-1px);
}

.wc-block-components-button:not(.is-link):disabled,
.wc-block-components-button:not(.is-link).is-loading {
	background: var(--clay);
	color: var(--ink-3);
	box-shadow: none;
	transform: none;
}

/* WooCommerce draws a focus outline inside the pill; keep it, round it. */
.wc-block-components-button:not(.is-link)::after {
	border-radius: var(--r-pill);
}

.wc-block-components-button.is-link,
.studio-woo .wc-block-components-product-name {
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.studio-woo .wc-block-components-product-name:hover {
	color: var(--rust);
}

/* ==========================================================================
   5. Cart
   ========================================================================== */

.wc-block-cart,
.wc-block-checkout {
	margin: 0;
}

.wc-block-components-sidebar-layout {
	gap: 56px;
	align-items: start;
}

.wc-block-components-main {
	padding-inline-end: 0;
}

/* The line items read as a list of made objects, not a spreadsheet. */
.wc-block-cart-items__header {
	border-bottom: 1px solid var(--line);
	padding-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.wc-block-cart-items__row {
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.wc-block-cart-items__row:last-child {
	border-bottom: 0;
}

.wc-block-cart-item__image img {
	width: 104px;
	height: 104px;
	border-radius: var(--r-md);
	background: var(--clay);
	object-fit: cover;
}

.wc-block-components-product-name {
	font-size: 17px;
	line-height: 1.3;
	letter-spacing: -.015em;
}

.wc-block-cart-item__product .wc-block-components-product-price,
.wc-block-components-order-summary-item__individual-prices {
	display: block;
	margin-top: 4px;
	color: var(--ink-2);
	font-size: 14.5px;
}

.wc-block-components-product-metadata {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-2);
}

/* What the customer asked to be engraved is the point of the order, so it
   is set apart rather than run together in one grey line. */
.wc-block-components-product-details {
	display: grid;
	gap: 4px;
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: var(--r-sm);
	background: var(--sand);
	list-style: none;
}

.wc-block-components-product-details li {
	display: flex;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.5;
}

.wc-block-components-product-details__name {
	flex: none;
	font-weight: 700;
	color: var(--ink);
}

.wc-block-components-product-details__value {
	color: var(--ink-2);
}

.wc-block-components-product-metadata__description {
	display: none; /* The excerpt repeats the product page; the line items do not need it. */
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price__value {
	font-weight: 700;
	font-size: 16.5px;
}

/* Quantity stepper. */
.wc-block-components-quantity-selector {
	margin: 14px 0 0;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	overflow: hidden;
	max-width: 132px;
	background: #fff;
}

.wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-components-quantity-selector__input {
	font-weight: 700;
	color: var(--ink);
}

.wc-block-components-quantity-selector__button {
	color: var(--ink-2);
	font-weight: 700;
	opacity: 1;
}

.wc-block-components-quantity-selector__button:hover {
	color: var(--rust);
	background: var(--sand);
}

.wc-block-cart-item__remove-link {
	margin-top: 10px;
	color: var(--ink-3);
	font-size: 13.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-block-cart-item__remove-link:hover {
	color: #B3261E;
}

/* Totals panel: a sand card that matches the summary on the product page. */
/* WooCommerce gives each totals block its own border, and stacking them
   next to the coupon panel put a rule straight through the subtotal. One
   border per row, with room around it. */
.wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	padding: 16px 0;
	margin: 0;
	border-top: 1px solid var(--line);
	border-bottom: 0;
}

.wc-block-components-totals-wrapper::after,
.wc-block-components-totals-wrapper::before {
	display: none;
}

.wc-block-components-totals-coupon {
	padding-bottom: 2px;
}

.wc-block-components-sidebar .wc-block-components-totals-wrapper:first-child {
	border-top: 0;
	padding-top: 0;
}

/* On checkout the sidebar is a wrapper around .wc-block-components-sidebar;
   on cart the two classes sit on the same element. Match both. */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--sand);
	align-self: start;
}

.wc-block-checkout__sidebar {
	padding: 0;
	border: 0;
	background: none;
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title {
	margin-bottom: 4px;
	font-family: var(--font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rust);
}

.wc-block-components-totals-item {
	font-size: 15px;
	color: var(--ink-2);
}

.wc-block-components-totals-item__label {
	font-weight: 500;
}

.wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--ink);
}

.wc-block-components-totals-footer-item {
	font-size: 19px;
	color: var(--ink);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 800;
	letter-spacing: -.02em;
}

.wc-block-components-panel__button {
	font-weight: 700;
	color: var(--ink);
}

.wc-block-components-totals-coupon__form .wc-block-components-text-input {
	margin: 0;
}

.wc-block-cart__submit-container {
	margin-top: 8px;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	width: 100%;
}

/* Reassurance under the checkout button: the same three promises the
   product page makes, so the last screen does not go quiet. */
.nc-cart-reassure {
	display: grid;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--ink-2);
	list-style: none;
}

.nc-cart-reassure li::before {
	content: "✓";
	margin-inline-end: 8px;
	color: var(--sage);
	font-weight: 700;
}

/* Empty cart. */
.wp-block-woocommerce-empty-cart-block {
	text-align: center;
	padding: 20px 0 10px;
}

.wp-block-woocommerce-empty-cart-block > h2,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	letter-spacing: -.035em;
	color: var(--ink);
}

.wp-block-woocommerce-empty-cart-block .wp-block-heading {
	margin-top: 56px;
	font-size: 24px;
	letter-spacing: -.03em;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator {
	display: none;
}

/* ==========================================================================
   6. Checkout
   ========================================================================== */

.wc-block-components-checkout-step {
	padding: 0 0 34px;
	border: 0;
}

.wc-block-components-checkout-step__title {
	font-family: var(--font);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--ink);
}

.wc-block-components-checkout-step__heading {
	margin: 0 0 16px;
}

.wc-block-components-checkout-step__description {
	color: var(--ink-2);
	font-size: 14.5px;
}

.wc-block-components-address-form,
.wc-block-components-form {
	gap: 16px;
}

.wc-block-checkout__actions_row {
	gap: 20px;
}

.wc-block-components-checkout-return-to-cart-button {
	color: var(--rust);
	font-weight: 700;
}

.wc-block-components-order-summary-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.wc-block-components-order-summary-item:last-child {
	border-bottom: 0;
}

.wc-block-components-order-summary-item__image img {
	border-radius: var(--r-sm);
	background: var(--clay);
}

.wc-block-components-order-summary-item__quantity {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}

.wc-block-components-checkbox__label {
	font-size: 14.5px;
	color: var(--ink-2);
	font-weight: 500;
}

.wc-block-components-checkbox__mark {
	fill: #fff;
}

.wc-block-components-checkbox__input:checked ~ .wc-block-components-checkbox__mark {
	fill: #fff;
}

.wc-block-checkout__terms {
	font-size: 14px;
	color: var(--ink-2);
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	border-radius: var(--r-sm);
}

.wc-block-components-radio-control-accordion-option {
	border: 1.5px solid var(--line);
	margin-bottom: 10px;
	background: #fff;
}

/* ==========================================================================
   7. My account
   --------------------------------------------------------------------------
   The login screen was WooCommerce's bare form on a white page. It is the
   first thing a returning customer sees, so it gets the same card treatment
   as the rest of the site.
   ========================================================================== */

.woocommerce-account .studio-woo {
	padding-bottom: 110px;
}

.woocommerce-account:not(.logged-in) .woocommerce {
	max-width: 480px;
	margin: 0 auto;
}

.woocommerce-account .u-columns.col2-set {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
}

@media (min-width: 860px) {
	.woocommerce-account .u-columns.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
	width: auto;
	float: none;
}

.studio-woo .woocommerce-form-login,
.studio-woo .woocommerce-form-register,
.studio-woo .woocommerce-ResetPassword,
.studio-woo .woocommerce-EditAccountForm,
.studio-woo .woocommerce-address-fields {
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--sand);
}

.studio-woo .woocommerce-form-login h2,
.studio-woo .woocommerce-form-register h2 {
	margin-bottom: 8px;
	font-size: 26px;
}

/* WooCommerce prints a bare "Login" above the form. Keep it, but as a
   label for the card rather than a stray word on the page. */
.woocommerce-account:not(.logged-in) .u-column1 > h2,
.woocommerce-account:not(.logged-in) .woocommerce > h2 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rust);
}

.studio-woo .form-row {
	margin: 0 0 18px;
	padding: 0;
}

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

.studio-woo .woocommerce-form-login__rememberme,
.studio-woo .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 500;
	color: var(--ink-2);
}

.studio-woo .woocommerce-form__label-for-checkbox input {
	width: auto;
	accent-color: var(--orange);
}

.studio-woo .woocommerce-LostPassword {
	margin: 14px 0 0;
	font-size: 14.5px;
}

.studio-woo .woocommerce-LostPassword a {
	color: var(--rust);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.studio-woo .password-input {
	display: block;
	position: relative;
}

.studio-woo .show-password-input {
	position: absolute;
	top: 50%;
	inset-inline-end: 14px;
	transform: translateY(-50%);
}

/* Dashboard: the navigation becomes a sand rail beside the panel. */
.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	width: auto;
}

.woocommerce-account.logged-in .woocommerce {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 250px minmax(0, 1fr);
	}
}

/* WooCommerce's own rules give these two a float and a percentage width.
   Inside the grid that made the navigation 710px wide in a 250px column and
   squeezed the panel to 170px, so both are placed and sized explicitly. */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
	grid-column: 1;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	grid-column: 2;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 12px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--sand);
}

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

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 14px;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s, color .18s;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: #fff;
	color: var(--ink);
}

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

.woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

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

/* Orders, downloads and address tables. */
.studio-woo table.shop_table,
.studio-woo table.woocommerce-orders-table,
.studio-woo table.woocommerce-table--order-details {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
}

.studio-woo table.shop_table th {
	padding: 14px 18px;
	background: var(--sand);
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
	text-align: start;
}

.studio-woo table.shop_table td {
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	color: var(--ink-2);
	vertical-align: middle;
}

.studio-woo table.shop_table tr:last-child td {
	border-bottom: 0;
}

.studio-woo table.shop_table .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--ink);
}

.studio-woo table.shop_table .button {
	padding: 9px 18px;
	font-size: 14px;
	box-shadow: none;
}

.studio-woo .woocommerce-Address {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--sand);
}

.studio-woo .woocommerce-Address-title h2,
.studio-woo .woocommerce-Address-title h3 {
	font-size: 19px;
}

.studio-woo .woocommerce-Address address {
	margin-top: 10px;
	font-style: normal;
	color: var(--ink-2);
	line-height: 1.7;
}

/* ==========================================================================
   8. Order received
   ========================================================================== */

.studio-woo .woocommerce-order {
	display: grid;
	gap: 28px;
}

.studio-woo .woocommerce-thankyou-order-received {
	padding: 26px 28px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--sage);
	border-radius: var(--r-md);
	background: var(--sand);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
}

/* WooCommerce floats these and gives each a percentage width, which inside
   a grid left an empty track and let a long email run over the total beside
   it. Flex with a real minimum, and wrapping that can break an address. */
.studio-woo ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	list-style: none;
	overflow: hidden;
	background: #fff;
}

.studio-woo ul.woocommerce-order-overview li {
	flex: 1 1 190px;
	min-width: 0;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 18px 20px;
	border-inline-end: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
	overflow-wrap: anywhere;
}

.studio-woo ul.woocommerce-order-overview li:last-child {
	border-inline-end: 0;
}

.studio-woo ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: none;
	color: var(--ink);
}

/* ==========================================================================
   9. Narrow screens
   ========================================================================== */

@media (max-width: 900px) {
	.studio-woo {
		padding: 28px 20px 72px;
	}

	.wc-block-components-sidebar-layout {
		gap: 32px;
	}

	.wc-block-cart__sidebar,
	.wc-block-checkout__sidebar .wc-block-components-sidebar {
		padding: 22px;
	}
}

@media (max-width: 600px) {
	.wc-block-cart-item__image img {
		width: 76px;
		height: 76px;
	}

	.studio-woo .woocommerce-message,
	.studio-woo .woocommerce-info,
	.studio-woo .woocommerce-error {
		flex-wrap: wrap;
	}

	.studio-woo .woocommerce-message .button,
	.studio-woo .woocommerce-info .button {
		margin-inline-start: 0;
	}

	/* A table of orders does not fit a phone, so each row becomes a card. */
	.studio-woo table.shop_table.woocommerce-orders-table thead {
		display: none;
	}

	.studio-woo table.shop_table.woocommerce-orders-table tr {
		display: grid;
		gap: 4px;
		padding: 16px 18px;
		border-bottom: 1px solid var(--line);
	}

	.studio-woo table.shop_table.woocommerce-orders-table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 2px 0;
		border: 0;
	}

	.studio-woo table.shop_table.woocommerce-orders-table td::before {
		content: attr(data-title);
		font-weight: 700;
		color: var(--ink-3);
	}
}

/* ==========================================================================
   10. Prose inside WooCommerce panels
   --------------------------------------------------------------------------
   The studio stylesheet resets every margin to zero, which is right for a
   designed page and wrong for body copy WooCommerce renders from the
   product description. Give those blocks their spacing back.
   ========================================================================== */

.studio-woo .woocommerce-tabs .panel p,
.studio-woo .woocommerce-Tabs-panel p,
.studio-woo .woocommerce-product-details__short-description p,
.studio-woo .woocommerce-MyAccount-content p {
	margin: 0 0 1em;
}

.studio-woo .woocommerce-tabs .panel p:last-child,
.studio-woo .woocommerce-MyAccount-content p:last-child {
	margin-bottom: 0;
}

.studio-woo .woocommerce-tabs .panel h3,
.studio-woo .woocommerce-tabs .panel h4 {
	margin: 1.6em 0 .6em;
	font-size: 17px;
	letter-spacing: -.02em;
	color: var(--ink);
}

.studio-woo .woocommerce-tabs .panel strong {
	color: var(--ink);
}

.studio-woo .woocommerce-tabs .panel ul,
.studio-woo .woocommerce-tabs .panel ol {
	margin: 0 0 1em 1.2em;
}

.studio-woo .woocommerce-tabs .panel li {
	margin-bottom: .35em;
}

.studio-woo .woocommerce-MyAccount-content h2,
.studio-woo .woocommerce-MyAccount-content h3 {
	margin: 0 0 14px;
	font-size: 22px;
	letter-spacing: -.03em;
}

.studio-woo .woocommerce-MyAccount-content mark {
	background: var(--clay);
	padding: 1px 6px;
	border-radius: 6px;
	color: var(--ink);
}
