/* My Account — typography and My Designs grid
 *
 * Fraunces is used for the page heading and account navigation headings;
 * Inter matches the body copy used on the About, Story, and Gallery pages.
 * Scoped to .woocommerce-MyAccount-* so theme styles for other page areas
 * are not overridden. */

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Navigation heading (the "My Account" label shown in some themes) */
.woocommerce-MyAccount-navigation h2,
.woocommerce-MyAccount-navigation h3 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* Account content headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.4rem, 3vw, 2rem);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin-bottom: 0.6em;
}

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

.woocommerce-MyAccount-navigation a {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* Page title ("Orders", "My account", …) — same editorial serif used for
   display headings across the site. Scoped by page: this stylesheet only
   loads on the My Account pages. */
.woocommerce-account h1.wp-block-post-title,
.woocommerce-account .entry-title {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: -0.015em;
}

/* Login / Register headings on the logged-out account page. */
.woocommerce-account .woocommerce h2 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* ─── Orders table ────────────────────────────────────── */

.woocommerce-MyAccount-content .woocommerce-orders-table {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	border-collapse: collapse;
	width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-orders-table th {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #777;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 2px solid #e3e3e3;
}

.woocommerce-MyAccount-content .woocommerce-orders-table td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

/* The row action buttons (View / Pay / Cancel): compact, proportional to
   the table text instead of the theme's oversized pill buttons. */
.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button,
.woocommerce-MyAccount-content .woocommerce-orders-table .button {
	display: inline-block;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	background: #1b160c;
	color: #f7e088;
	border: none;
	text-decoration: none;
	margin: 0 0.35rem 0.25rem 0;
	transition: background 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button:hover,
.woocommerce-MyAccount-content .woocommerce-orders-table .button:hover {
	background: #33291a;
	color: #f7e088;
}

/* ─── My Designs grid ─────────────────────────────────── */

.cfpe-mydesigns__intro {
	color: #666;
	font-size: 0.92rem;
	margin: 0 0 1.25rem;
}

.cfpe-mydesigns__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.cfpe-mydesigns__card {
	margin: 0;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fafafa;
	padding: 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
}

.cfpe-mydesigns__img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #eee;
}

.cfpe-mydesigns__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.cfpe-mydesigns__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cfpe-mydesigns__date {
	font-size: 0.8rem;
	color: #777;
}

.cfpe-mydesigns__badge {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a7f37;
	background: #e6f4ea;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	margin-top: 0.2rem;
}

.cfpe-mydesigns__actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cfpe-mydesigns__actions form {
	margin: 0;
}

.cfpe-mydesigns__btn,
.cfpe-mydesigns__actions .button {
	width: 100%;
	display: block;
	text-align: center;
	font-size: 0.85rem;
}

.cfpe-mydesigns__more summary {
	cursor: pointer;
	font-size: 0.82rem;
	color: #555;
	padding: 0.2rem 0;
}

.cfpe-mydesigns__more[open] {
	border-top: 1px dashed #ddd;
	padding-top: 0.5rem;
}

.cfpe-mydesigns__rename {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 0.5rem !important;
}

.cfpe-mydesigns__rename input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.3rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.85rem;
}

.cfpe-mydesigns__rename .button {
	width: auto;
	flex: 0 0 auto;
}

.cfpe-mydesigns__delete {
	background: transparent !important;
	border: 1px solid #c0392b !important;
	color: #c0392b !important;
}

.cfpe-mydesigns__pager {
	display: flex;
	gap: 0.4rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.cfpe-mydesigns__page {
	display: inline-block;
	min-width: 2.1rem;
	text-align: center;
	padding: 0.35rem 0.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
}

.cfpe-mydesigns__page.is-current {
	background: #1b160c;
	color: #fff;
	border-color: #1b160c;
}
