/* PM Account & Checkout - My Account, address book, order pages, checkout picker. */

:root {
	--pm-ac-accent: #dd512b;
	--pm-ac-accent-dark: #c2441f;
	--pm-ac-deep: #06141f;
	--pm-ac-ink: #2c3e50;
	--pm-ac-muted: #66727c;
	--pm-ac-line: #e6e2dc;
	--pm-ac-mist: #f6f5f2;
	--pm-ac-soft: #fff6f1;
	--pm-ac-white: #ffffff;
	--pm-ac-radius: 16px;
	--pm-ac-radius-sm: 10px;
	--pm-ac-shadow: 0 10px 28px rgba(6, 20, 31, .06);
}

/* Icons used on the dashboard tiles (Minimog draws the menu icons itself). */
:root {
	--pm-ac-icon-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--dashboard a,
.pm-ac-tile--dashboard { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders a,
.pm-ac-tile--orders { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads a,
.pm-ac-tile--downloads { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address a,
.pm-ac-tile--edit-address { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account a,
.pm-ac-tile--edit-account { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--wishlist a { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21.2l8.8-8.8a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout a { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }
.pm-ac-tile--shop { --pm-ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ */
/* Shared bits                                                         */
/* ------------------------------------------------------------------ */

.pm-ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
	white-space: nowrap;
}
.pm-ac-btn:hover { transform: translateY(-1px); }
.pm-ac-btn--primary { background: var(--pm-ac-accent) !important; color: var(--pm-ac-white) !important; border-color: var(--pm-ac-accent) !important; }
.pm-ac-btn--primary:hover { background: var(--pm-ac-accent-dark) !important; border-color: var(--pm-ac-accent-dark) !important; }
.pm-ac-btn--soft { background: var(--pm-ac-soft) !important; color: var(--pm-ac-accent) !important; border-color: rgba(221, 81, 43, .25) !important; }
.pm-ac-btn--ghost { background: var(--pm-ac-white) !important; color: var(--pm-ac-ink) !important; border-color: var(--pm-ac-line) !important; }
.pm-ac-btn--danger { background: transparent !important; color: #b42318 !important; border-color: transparent !important; padding-left: 10px; padding-right: 10px; }
.pm-ac-btn--danger:hover { background: #fef3f2 !important; }

.pm-ac-link { color: var(--pm-ac-accent) !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.pm-ac-link:hover { text-decoration: underline !important; }

.pm-ac-card__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pm-ac-muted);
}

.pm-ac-title {
	margin: 0 0 6px !important;
	font-size: 22px !important;
	line-height: 1.2 !important;
	color: var(--pm-ac-deep) !important;
}

/* WooCommerce content inside My Account */
body.pm-ac .woocommerce-MyAccount-content .button,
body.pm-ac .woocommerce-MyAccount-content button[type="submit"],
body.pm-ac .woocommerce-order .button {
	border-radius: 999px;
}
body.pm-ac .woocommerce-MyAccount-content input.input-text,
body.pm-ac .woocommerce-MyAccount-content select,
body.pm-ac .woocommerce-MyAccount-content textarea {
	border-radius: var(--pm-ac-radius-sm);
}

/* Tables: orders, downloads, order details */
body.pm-ac .woocommerce-MyAccount-content table.shop_table,
body.pm-ac .woocommerce-order table.shop_table,
body.pm-ac table.woocommerce-table--order-details {
	width: 100%;
	border: 1px solid var(--pm-ac-line) !important;
	border-radius: var(--pm-ac-radius);
	border-collapse: separate !important;
	border-spacing: 0;
	overflow: hidden;
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
}
body.pm-ac table.shop_table th,
body.pm-ac table.shop_table td {
	padding: 14px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pm-ac-line) !important;
	vertical-align: middle;
}
body.pm-ac table.shop_table thead th {
	background: var(--pm-ac-mist);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pm-ac-muted);
}
body.pm-ac table.shop_table tr:last-child > th,
body.pm-ac table.shop_table tr:last-child > td { border-bottom: 0 !important; }
body.pm-ac table.shop_table tfoot th { color: var(--pm-ac-muted); font-weight: 600; }
body.pm-ac table.shop_table tfoot tr:last-child td,
body.pm-ac table.shop_table tfoot tr:last-child th { font-size: 16px; color: var(--pm-ac-deep); font-weight: 800; }

/* Order status pill (orders list + dashboard) */
.pm-ac-status,
body.pm-ac mark.order-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--pm-ac-mist);
	color: var(--pm-ac-ink);
	font-size: 12px;
	font-weight: 700;
}
.pm-ac-status--processing, .pm-ac-status--warehouse { background: #eef4ff; color: #1d4ed8; }
.pm-ac-status--completed { background: #ecfdf3; color: #067647; }
.pm-ac-status--on-hold, .pm-ac-status--pending { background: #fffaeb; color: #b54708; }
.pm-ac-status--cancelled, .pm-ac-status--failed, .pm-ac-status--refunded { background: #fef3f2; color: #b42318; }

/* Notices */
body.pm-ac .woocommerce-message,
body.pm-ac .woocommerce-info,
body.pm-ac .woocommerce-error {
	border-radius: var(--pm-ac-radius-sm);
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */

.pm-ac-dash { display: grid; gap: 20px; }
.pm-ac-dash__hello h2 { margin: 0 0 4px !important; font-size: 28px !important; color: var(--pm-ac-deep) !important; }
.pm-ac-dash__hello p { margin: 0; color: var(--pm-ac-muted); }
.pm-ac-dash__hello a { color: var(--pm-ac-accent); font-weight: 700; }

.pm-ac-dash__last {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 20px;
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-soft);
	border: 1px solid rgba(221, 81, 43, .18);
}
.pm-ac-dash__last strong { display: inline-block; margin: 4px 10px 0 0; font-size: 17px; color: var(--pm-ac-deep); }

.pm-ac-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.pm-ac-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border-radius: var(--pm-ac-radius);
	border: 1px solid var(--pm-ac-line);
	background: var(--pm-ac-white);
	color: var(--pm-ac-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--pm-ac-shadow);
	transition: border-color .15s ease, transform .15s ease;
}
.pm-ac-tile:hover { border-color: var(--pm-ac-accent); transform: translateY(-2px); }
.pm-ac-tile strong { font-size: 16px; color: var(--pm-ac-deep); }
.pm-ac-tile > span:last-child { font-size: 13px; color: var(--pm-ac-muted); }
.pm-ac-tile__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: var(--pm-ac-soft);
	position: relative;
}
.pm-ac-tile__icon::before {
	content: "";
	position: absolute;
	inset: 10px;
	background-color: var(--pm-ac-accent);
	-webkit-mask: var(--pm-ac-icon, var(--pm-ac-icon-dot)) center / contain no-repeat;
	mask: var(--pm-ac-icon, var(--pm-ac-icon-dot)) center / contain no-repeat;
}

/* ------------------------------------------------------------------ */
/* Address book                                                        */
/* ------------------------------------------------------------------ */

.pm-ac-book { display: grid; gap: 28px; }
.pm-ac-intro { margin: 0; color: var(--pm-ac-muted); }

.pm-ac-defaults {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.pm-ac-section { display: grid; gap: 14px; }
.pm-ac-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.pm-ac-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	margin-left: 6px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--pm-ac-mist);
	color: var(--pm-ac-muted);
	font-size: 13px;
	font-weight: 700;
	vertical-align: middle;
}

.pm-ac-search {
	width: 100%;
	min-height: 46px;
	padding: 10px 16px 10px 42px !important;
	border: 1px solid var(--pm-ac-line) !important;
	border-radius: 999px !important;
	background: var(--pm-ac-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366727c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 16px center / 16px no-repeat !important;
	font-size: 14px;
}
.pm-ac-search:focus { outline: none; border-color: var(--pm-ac-accent) !important; box-shadow: 0 0 0 3px rgba(221, 81, 43, .15); }

.pm-ac-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.pm-ac-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
}
.pm-ac-card.is-default { border-color: var(--pm-ac-accent); box-shadow: 0 0 0 1px var(--pm-ac-accent), var(--pm-ac-shadow); }
.pm-ac-card--default { background: var(--pm-ac-mist); box-shadow: none; }
.pm-ac-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.pm-ac-card__title {
	margin: 0 !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	color: var(--pm-ac-deep) !important;
	word-break: break-word;
}
.pm-ac-badge {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--pm-ac-accent);
	color: var(--pm-ac-white);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.pm-ac-card address {
	margin: 0 !important;
	font-style: normal;
	line-height: 1.6;
	color: var(--pm-ac-ink);
	flex: 1;
}
.pm-ac-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--pm-ac-line);
}
.pm-ac-card__actions form { margin: 0; }
.pm-ac-card__actions form[data-pm-ac-delete] { margin-left: auto; }

.pm-ac-empty,
.pm-ac-note {
	margin: 0;
	padding: 16px;
	border-radius: var(--pm-ac-radius-sm);
	background: var(--pm-ac-mist);
	color: var(--pm-ac-muted);
}

/* Add / edit form */
.pm-ac-book--form { gap: 14px; max-width: 760px; }
.pm-ac-back { color: var(--pm-ac-muted) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.pm-ac-back:hover { color: var(--pm-ac-accent) !important; }
.pm-ac-form {
	padding: 24px;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
}
.pm-ac-form .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.pm-ac-form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0 !important; }

/* ------------------------------------------------------------------ */
/* Order details, thank-you and order-pay                              */
/* ------------------------------------------------------------------ */

body.pm-ac .woocommerce-order-overview,
body.pm-ac ul.order_details {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	overflow: hidden;
}
body.pm-ac .woocommerce-order-overview li,
body.pm-ac ul.order_details li {
	float: none !important;
	margin: 0 !important;
	padding: 16px 18px !important;
	border: 0 !important;
	border-right: 1px solid var(--pm-ac-line) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pm-ac-muted);
}
body.pm-ac .woocommerce-order-overview li:last-child,
body.pm-ac ul.order_details li:last-child { border-right: 0 !important; }
body.pm-ac .woocommerce-order-overview li strong,
body.pm-ac ul.order_details li strong {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pm-ac-deep);
}
body.pm-ac .thank-you-heading,
body.pm-ac .woocommerce-thankyou-order-received { color: var(--pm-ac-deep); }

body.pm-ac .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
body.pm-ac .woocommerce-customer-details .woocommerce-column {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 18px !important;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
}
body.pm-ac .woocommerce-customer-details address {
	border: 0 !important;
	padding: 0 !important;
	font-style: normal;
	line-height: 1.6;
}

.pm-ac-order-extra {
	margin-top: 16px;
	padding: 18px;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
}
.pm-ac-order-extra dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 20px;
	margin: 0;
}
.pm-ac-order-extra dt { font-size: 12px; font-weight: 700; color: var(--pm-ac-muted); }
.pm-ac-order-extra dd { margin: 2px 0 0; color: var(--pm-ac-deep); word-break: break-word; }

/* ------------------------------------------------------------------ */
/* Checkout: saved address picker                                      */
/* ------------------------------------------------------------------ */

.pm-ac-picker {
	clear: both;
	margin-bottom: 18px !important;
	padding: 14px 16px !important;
	border: 1px dashed rgba(221, 81, 43, .45);
	border-radius: 12px;
	background: #fff6f1;
}
.pm-ac-picker label { font-weight: 700; }
.pm-ac-picker .woocommerce-input-wrapper { display: block; }
.pm-ac-picker select { width: 100%; }
.pm-ac-picker__manage {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: #dd512b !important;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
	.pm-ac-dash__hello h2 { font-size: 22px !important; }
	.pm-ac-card__actions .pm-ac-btn { flex: 1 1 auto; }
	.pm-ac-card__actions form[data-pm-ac-delete] { margin-left: 0; }
	body.pm-ac .woocommerce-order-overview li,
	body.pm-ac ul.order_details li { border-right: 0 !important; border-bottom: 1px solid var(--pm-ac-line) !important; }
	body.pm-ac .woocommerce-MyAccount-content table.shop_table { display: block; overflow-x: auto; }
}


/* ------------------------------------------------------------------ */
/* Orders list                                                         */
/* ------------------------------------------------------------------ */

/* Menu items hidden in the previous set-up (backup for items added late). */
.woocommerce-MyAccount-navigation-link--payment-methods { display: none !important; }

.pm-ac-orders { display: grid; gap: 14px; }

.pm-ac-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
}
.pm-ac-order__main {
	flex: 1 1 340px;
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px 20px;
}
.pm-ac-order__id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-ac-order__number {
	font-size: 16px;
	font-weight: 700;
	color: var(--pm-ac-deep) !important;
	text-decoration: none !important;
}
.pm-ac-order__number:hover { color: var(--pm-ac-accent) !important; }
.pm-ac-order__meta { font-size: 13px; color: var(--pm-ac-muted); }
.pm-ac-order__total { font-size: 16px; font-weight: 700; color: var(--pm-ac-deep); white-space: nowrap; }
.pm-ac-order__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pm-ac-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--pm-ac-muted); font-size: 13px; }

@media (max-width: 600px) {
	.pm-ac-order { padding: 16px; }
	.pm-ac-order__main { grid-template-columns: minmax(0, 1fr) auto; }
	.pm-ac-order__id { grid-column: 1 / -1; }
	.pm-ac-order__actions { width: 100%; }
	.pm-ac-order__actions .pm-ac-btn { flex: 1 1 0; }
}

/* ------------------------------------------------------------------ */
/* Single order page (view-order)                                      */
/* ------------------------------------------------------------------ */

/* The site's Customizer CSS hides order items; show them on View order. */
body.pm-ac.pm-ac-view-order .woocommerce-order-details .woocommerce-table__line-item { display: table-row !important; }

/* Intro line: "Order #123 was placed on ... and is currently ..." */
body.pm-ac-view-order .woocommerce-MyAccount-content > p:first-child {
	margin: 0 0 22px;
	padding: 16px 20px;
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-mist);
	color: var(--pm-ac-muted);
	line-height: 1.8;
}
body.pm-ac-view-order mark.order-number,
body.pm-ac-view-order mark.order-date {
	background: none;
	color: var(--pm-ac-deep);
	font-weight: 700;
}
body.pm-ac-view-order mark.order-status { margin-left: 2px; }

body.pm-ac .woocommerce-order-details__title,
body.pm-ac .woocommerce-column__title,
body.pm-ac .pm-ac-order-extra .woocommerce-column__title {
	margin: 0 0 12px !important;
	font-size: 18px !important;
	color: var(--pm-ac-deep) !important;
}
body.pm-ac .woocommerce-order-details { margin-bottom: 26px; }

/* Items table */
body.pm-ac table.woocommerce-table--order-details th.product-total,
body.pm-ac table.woocommerce-table--order-details td.product-total,
body.pm-ac table.woocommerce-table--order-details tfoot td { text-align: right; white-space: nowrap; }
body.pm-ac table.woocommerce-table--order-details td.product-name { font-weight: 600; color: var(--pm-ac-ink); }
body.pm-ac table.woocommerce-table--order-details td.product-name a { color: inherit !important; text-decoration: none !important; }
body.pm-ac table.woocommerce-table--order-details td.product-name a:hover { color: var(--pm-ac-accent) !important; }
body.pm-ac table.woocommerce-table--order-details .product-quantity { font-weight: 400; color: var(--pm-ac-muted); margin-left: 6px; white-space: nowrap; }
body.pm-ac table.woocommerce-table--order-details .wc-item-meta { margin: 6px 0 0 66px; padding: 0; list-style: none; font-size: 12px; font-weight: 400; color: var(--pm-ac-muted); }
body.pm-ac table.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }

.pm-ac-item { display: inline-flex; align-items: center; gap: 14px; vertical-align: middle; }
.pm-ac-item__thumb img {
	display: block;
	width: 52px !important;
	height: 52px !important;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--pm-ac-line);
	background: var(--pm-ac-mist);
}
.pm-ac-item__name { display: inline-flex; flex-direction: column; line-height: 1.35; }
.pm-ac-item__sku { font-weight: 400; font-size: 12px; color: var(--pm-ac-muted); }

body.pm-ac p.order-again { margin: 16px 0 0; }
body.pm-ac p.order-again .button {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 10px 24px !important;
	background: var(--pm-ac-accent) !important;
	border-color: var(--pm-ac-accent) !important;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1.2 !important;
}

/* Billing + shipping side by side (Minimog's clearfix spacers removed). */
body.pm-ac .woocommerce-customer-details .woocommerce-columns--addresses::before,
body.pm-ac .woocommerce-customer-details .woocommerce-columns--addresses::after { display: none !important; content: none !important; }
body.pm-ac .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 !important;
}
body.pm-ac .woocommerce-customer-details .woocommerce-column--billing-address { grid-column: 1; grid-row: 1; }
body.pm-ac .woocommerce-customer-details .woocommerce-column--shipping-address { grid-column: 2; grid-row: 1; }
body.pm-ac .woocommerce-customer-details .woocommerce-column { padding: 20px !important; }
body.pm-ac .woocommerce-customer-details address p { margin: 6px 0 0; }

@media (max-width: 700px) {
	body.pm-ac .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }
	body.pm-ac .woocommerce-customer-details .woocommerce-column--shipping-address { grid-column: 1; grid-row: 2; }
}

@media (max-width: 600px) {
	body.pm-ac.pm-ac-view-order .woocommerce-order-details .woocommerce-table__line-item { display: flex !important; }
	body.pm-ac table.woocommerce-table--order-details thead { display: none; }
	body.pm-ac table.woocommerce-table--order-details,
	body.pm-ac table.woocommerce-table--order-details tbody,
	body.pm-ac table.woocommerce-table--order-details tfoot { display: block; width: 100%; }
	body.pm-ac table.woocommerce-table--order-details tbody tr,
	body.pm-ac table.woocommerce-table--order-details tfoot tr {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 14px;
		border-bottom: 1px solid var(--pm-ac-line);
	}
	body.pm-ac table.woocommerce-table--order-details tbody td,
	body.pm-ac table.woocommerce-table--order-details tfoot th,
	body.pm-ac table.woocommerce-table--order-details tfoot td { display: block; padding: 0 !important; border: 0 !important; background: none; }
	body.pm-ac table.woocommerce-table--order-details td.product-total { font-weight: 700; }
	body.pm-ac table.woocommerce-table--order-details .wc-item-meta { margin-left: 0; }
	.pm-ac-item { gap: 10px; }
	.pm-ac-item__thumb img { width: 44px !important; height: 44px !important; }
	body.pm-ac p.order-again .button { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Address form - UK-style layout                                      */
/* ------------------------------------------------------------------ */

.pm-ac-form .woocommerce-address-fields__field-wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
	grid-template-areas:
		"heading  heading"
		"first    last"
		"business business"
		"email    phone"
		"line1    line2"
		"city     county"
		"postcode country";
}
.pm-ac-form .woocommerce-address-fields__field-wrapper::after,
.pm-ac-form .woocommerce-address-fields__field-wrapper::before { display: none !important; }
.pm-ac-form .woocommerce-address-fields__field-wrapper > .form-row {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}
.pm-ac-form [id$="_heading_field"]    { grid-area: heading; }
.pm-ac-form [id$="_first_name_field"] { grid-area: first; }
.pm-ac-form [id$="_last_name_field"]  { grid-area: last; }
.pm-ac-form [id$="_business_field"]   { grid-area: business; }
.pm-ac-form [id$="_email_field"]      { grid-area: email; }
.pm-ac-form [id$="_number_field"],
.pm-ac-form [id$="_phone_field"]      { grid-area: phone; }
.pm-ac-form [id$="_address_1_field"]  { grid-area: line1; }
.pm-ac-form [id$="_address_2_field"]  { grid-area: line2; }
.pm-ac-form [id$="_city_field"]       { grid-area: city; }
.pm-ac-form [id$="_state_field"]      { grid-area: county; }
.pm-ac-form [id$="_postcode_field"]   { grid-area: postcode; }
.pm-ac-form [id$="_country_field"]    { grid-area: country; }
/* Any other field a plugin adds goes full width at the end. */
.pm-ac-form .woocommerce-address-fields__field-wrapper > .form-row:not([id$="_heading_field"]):not([id$="_first_name_field"]):not([id$="_last_name_field"]):not([id$="_business_field"]):not([id$="_email_field"]):not([id$="_number_field"]):not([id$="_phone_field"]):not([id$="_address_1_field"]):not([id$="_address_2_field"]):not([id$="_city_field"]):not([id$="_state_field"]):not([id$="_postcode_field"]):not([id$="_country_field"]) { grid-column: 1 / -1; }

.pm-ac-form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pm-ac-ink);
}
.pm-ac-form .form-row label.screen-reader-text {
	position: static !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	clip-path: none !important;
	margin: 0 0 6px !important;
	overflow: visible !important;
}
.pm-ac-form .form-row .input-text,
.pm-ac-form .form-row select,
.pm-ac-form .form-row .select2-container .select2-selection--single {
	width: 100% !important;
	min-height: 46px;
}
.pm-ac-form .form-row .woocommerce-input-wrapper { display: block; width: 100%; }

@media (max-width: 640px) {
	.pm-ac-form { padding: 18px; }
	.pm-ac-form .woocommerce-address-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"heading"
			"first"
			"last"
			"business"
			"email"
			"phone"
			"line1"
			"line2"
			"city"
			"county"
			"postcode"
			"country";
	}
	.pm-ac-form__actions .pm-ac-btn { flex: 1 1 0; }
}

/* Checkout picker: "save new address" box */
.pm-ac-picker__save {
	margin-top: 10px;
	display: grid;
	gap: 8px;
}
.pm-ac-picker__save[hidden] { display: none !important; }
.pm-ac-picker__check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; cursor: pointer; }
.pm-ac-picker__check input { margin: 0; }

/* ------------------------------------------------------------------ */
/* Checkout (replaces ShopEngine template)                             */
/* ------------------------------------------------------------------ */

.pm-ac-checkout__title {
	margin: 10px 0 26px !important;
	text-align: center;
	font-size: clamp(26px, 3vw, 36px) !important;
	color: var(--pm-ac-deep) !important;
}
body.pm-ac-checkout form.checkout:has(> .pm-ac-checkout__left) {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
	gap: 28px;
	align-items: start;
}
body.pm-ac-checkout form.checkout > :not(.pm-ac-checkout__left):not(.pm-ac-checkout__right) { grid-column: 1 / -1; }
.pm-ac-checkout__left,
.pm-ac-checkout__right {
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
}
.pm-ac-checkout__right { position: sticky; top: 24px; }
.pm-ac-checkout__heading,
body.pm-ac-checkout #order_review_heading {
	margin: 0 0 18px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: var(--pm-ac-accent) !important;
}
body.pm-ac-checkout #customer_details,
body.pm-ac-checkout #customer_details > .col-1,
body.pm-ac-checkout #customer_details > .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.pm-ac-checkout #customer_details::before,
body.pm-ac-checkout #customer_details::after { display: none !important; }
body.pm-ac-checkout #customer_details > .col-2 { margin-top: 22px !important; padding-top: 22px !important; border-top: 1px solid var(--pm-ac-line); }
body.pm-ac-checkout .woocommerce-billing-fields > h3,
body.pm-ac-checkout #ship-to-different-address,
body.pm-ac-checkout .woocommerce-additional-fields > h3 {
	margin: 0 0 14px !important;
	font-size: 17px !important;
	color: var(--pm-ac-deep) !important;
}
body.pm-ac-checkout form.checkout .input-text,
body.pm-ac-checkout form.checkout select,
body.pm-ac-checkout form.checkout .select2-selection--single {
	min-height: 46px;
	border-radius: var(--pm-ac-radius-sm) !important;
}
body.pm-ac-checkout form.checkout textarea { min-height: 90px; border-radius: var(--pm-ac-radius-sm) !important; }

/* Order summary */
body.pm-ac-checkout #order_review table.shop_table {
	width: 100%;
	border: 0 !important;
	border-collapse: collapse;
	margin: 0 0 18px;
	box-shadow: none;
}
body.pm-ac-checkout #order_review table.shop_table th,
body.pm-ac-checkout #order_review table.shop_table td {
	padding: 11px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pm-ac-line) !important;
	background: none !important;
	vertical-align: top;
}
body.pm-ac-checkout #order_review table.shop_table td:last-child,
body.pm-ac-checkout #order_review table.shop_table th:last-child { text-align: right; }
body.pm-ac-checkout #order_review table.shop_table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pm-ac-muted); }
body.pm-ac-checkout #order_review .product-name { color: var(--pm-ac-ink); font-weight: 600; }
body.pm-ac-checkout #order_review .product-quantity { color: var(--pm-ac-muted); font-weight: 400; }
body.pm-ac-checkout #order_review tr.order-total th,
body.pm-ac-checkout #order_review tr.order-total td { border-bottom: 0 !important; font-size: 18px; font-weight: 800; color: var(--pm-ac-deep); }
body.pm-ac-checkout #order_review ul#shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
body.pm-ac-checkout #order_review ul#shipping_method li { margin: 0 0 6px; }

/* Payment */
body.pm-ac-checkout #payment {
	background: var(--pm-ac-mist) !important;
	border-radius: var(--pm-ac-radius-sm);
	padding: 16px;
}
body.pm-ac-checkout #payment ul.payment_methods { padding: 0 0 12px !important; margin: 0 0 12px !important; border-bottom: 1px solid var(--pm-ac-line) !important; }
body.pm-ac-checkout #payment ul.payment_methods li { list-style: none; margin: 0 0 8px; }
body.pm-ac-checkout #payment div.payment_box {
	background: var(--pm-ac-white) !important;
	border-radius: var(--pm-ac-radius-sm);
	color: var(--pm-ac-ink) !important;
}
body.pm-ac-checkout #payment div.payment_box::before { display: none !important; }
body.pm-ac-checkout #place_order {
	width: 100%;
	min-height: 52px;
	border-radius: 999px !important;
	background: var(--pm-ac-accent) !important;
	border-color: var(--pm-ac-accent) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: none !important;
}
body.pm-ac-checkout #place_order:hover { background: var(--pm-ac-accent-dark) !important; }

@media (max-width: 960px) {
	body.pm-ac-checkout form.checkout:has(> .pm-ac-checkout__left) { grid-template-columns: minmax(0, 1fr); }
	.pm-ac-checkout__right { position: static; }
}
@media (max-width: 600px) {
	.pm-ac-checkout__left,
	.pm-ac-checkout__right { padding: 18px; }
}

/* ------------------------------------------------------------------ */
/* Wishlist                                                            */
/* ------------------------------------------------------------------ */

.pm-ac-wl-btn-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.pm-ac-wl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 18px;
	border: 1px solid var(--pm-ac-line) !important;
	border-radius: 999px !important;
	background: var(--pm-ac-white) !important;
	color: var(--pm-ac-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none !important;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.pm-ac-wl-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.pm-ac-wl-btn:hover { border-color: var(--pm-ac-accent) !important; color: var(--pm-ac-accent) !important; }
.pm-ac-wl-btn.is-active { background: var(--pm-ac-soft) !important; border-color: rgba(221, 81, 43, .35) !important; color: var(--pm-ac-accent) !important; }
.pm-ac-wl-btn.is-active svg { fill: currentColor; }
.pm-ac-wl-btn.is-busy { opacity: .6; pointer-events: none; }
.pm-ac-wl-view { font-size: 13px; font-weight: 700; color: var(--pm-ac-accent) !important; }
.pm-ac-wl-view[hidden] { display: none !important; }

.pm-ac-wishlist__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.pm-ac-wl {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pm-ac-line);
	border-radius: var(--pm-ac-radius);
	background: var(--pm-ac-white);
	box-shadow: var(--pm-ac-shadow);
	overflow: hidden;
}
.pm-ac-wl__image { display: block; aspect-ratio: 1 / 1; background: var(--pm-ac-mist); }
.pm-ac-wl__image img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.pm-ac-wl__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 6px; flex: 1; }
.pm-ac-wl__name { font-weight: 700; color: var(--pm-ac-deep) !important; text-decoration: none !important; line-height: 1.35; }
.pm-ac-wl__name:hover { color: var(--pm-ac-accent) !important; }
.pm-ac-wl__sku { font-size: 12px; color: var(--pm-ac-muted); }
.pm-ac-wl__price { font-weight: 700; color: var(--pm-ac-deep); }
.pm-ac-wl__stock { font-size: 12px; font-weight: 700; }
.pm-ac-wl__stock.is-in { color: #067647; }
.pm-ac-wl__stock.is-out { color: #b42318; }
.pm-ac-wl__actions { display: flex; align-items: center; gap: 8px; padding: 10px 16px 16px; }
.pm-ac-wl__actions .pm-ac-btn--primary { flex: 1 1 auto; }

@media (max-width: 600px) {
	.pm-ac-wishlist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pm-ac-wl__actions { flex-direction: column; align-items: stretch; }
}
