/* ============================================================================
   gryphon-replica — account.css
   Structure is LOCKED #1 (Blue Sky: Dashboard · Orders · Addresses · Account
   details · Logout); the look comes from the source's /account/login page.
   ========================================================================= */

body.woocommerce-account .gr-main { padding: 24px 0 64px; }

/* ---- sign in / register ---- */
.gr-login { max-width: 980px; margin: 0 auto; }
.gr-login-title {
	font-family: Vollkorn, serif;        /* same stack as the source, deliberately not loaded */
	font-weight: 500;
	font-size: 38px;
	line-height: 1.2;
	color: var(--color-heading);
	margin: 0 0 20px;
}
.gr-login-cols { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 460px; }
.gr-login-cols.has-register { grid-template-columns: 1fr 1fr; max-width: none; }

.gr-login-form .gr-field { margin: 0 0 16px; }
.gr-login-form label { display: block; font-size: 13px; color: var(--color-body); margin: 0 0 4px; }
.gr-login-form .required { color: #b00020; text-decoration: none; }

/* ⚠ Woo's input rule is a :not() CHAIN at (0,4,1), higher than almost anything written
   naturally. Matched here rather than escalated. */
.woocommerce .gr-login input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]),
.gr-login-form input[type="text"],
.gr-login-form input[type="email"],
.gr-login-form input[type="password"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: var(--font-family);
	font-size: 15px;
	color: var(--color-heading);
	background: #fff;
}

.gr-login-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 14px; }
.woocommerce .gr-login-actions button.gr-btn,
.gr-login-actions button.gr-btn {
	min-width: 170px;
	padding: 14px 26px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.gr-login-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin: 0; }

/* ============================================================================
   ACCOUNT PAGE LAYOUT
   ⚠ `.woocommerce-MyAccount-navigation { width: 30%; float: left }` is a Woo default, and inside
   a CSS grid the FLOAT is ignored while the PERCENTAGE is not — which collapses the sidebar to a
   useless sliver (78px on a prior build). Same class of bug as the PDP summary at 48%. Beaten on
   specificity, with width reset to auto.
   ========================================================================= */
.gr-account-wrap {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 44px;
	align-items: start;
}
.woocommerce .gr-account-wrap .woocommerce-MyAccount-navigation,
.gr-account-wrap .gr-account-nav {
	width: auto;
	float: none;
	margin: 0;
}
.woocommerce .gr-account-wrap .woocommerce-MyAccount-content,
.gr-account-wrap .woocommerce-MyAccount-content {
	width: auto;
	float: none;
	min-width: 0;
}

.gr-account-nav ul { list-style: none; margin: 0; padding: 0; }
.gr-account-nav li { border-bottom: 1px solid #e3e0da; }
.gr-account-nav li a {
	display: block;
	padding: 11px 0;
	font-family: var(--font-family);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--color-body);
}
.gr-account-nav li a:hover { color: var(--color-primary); }
.gr-account-nav li.is-active > a,
.gr-account-nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active > a { color: var(--color-heading); }
.gr-account-nav li.is-active { border-left: 3px solid var(--color-primary); padding-left: 10px; }

.gr-account-dash p { font-size: 15px; line-height: 1.6; }
.gr-account-hello { color: var(--color-heading); }
.gr-account-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.gr-account-links a { font-weight: 700; }

/* Woo's order/address tables, reset the same way the cart's are — `.woocommerce table.shop_table`
   is (0,2,1) with a border, a radius and border-collapse:separate and beats a bare class. */
.woocommerce .gr-account-wrap table.shop_table {
	border: 0; border-radius: 0; border-collapse: collapse; width: 100%;
}
.woocommerce .gr-account-wrap table.shop_table th,
.woocommerce .gr-account-wrap table.shop_table td {
	border: 0; border-bottom: 1px solid #e3e0da; padding: 12px 8px; font-size: 14px;
}
.woocommerce .gr-account-wrap table.shop_table thead th {
	font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: var(--color-heading); text-align: left;
}

/* Woo's .button.alt is PURPLE and loads later at the same specificity as a natural override. */
.woocommerce .gr-account-wrap .button,
.woocommerce .gr-login .button {
	background: var(--color-primary);
	background-color: var(--color-primary);
	color: #fff;
	border: 0;
	border-radius: 45px;
	padding: 11px 24px;
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.woocommerce .gr-account-wrap .button:hover,
.woocommerce .gr-login .button:hover { background-color: var(--color-primary-darken-10); color: #fff; }

/* ============================================================================
   RESPONSIVE — full selectors repeated; media queries add no specificity.
   ========================================================================= */
@media (max-width: 991px) {
	body.woocommerce-account .gr-account-wrap { grid-template-columns: 1fr; gap: 24px; }
	body.woocommerce-account .gr-login-cols.has-register { grid-template-columns: 1fr; gap: 36px; }
	body.woocommerce-account .gr-login-title { font-size: 30px; }
}
@media (max-width: 767px) {
	body.woocommerce-account .gr-login-title { font-size: 26px; }
	body.woocommerce-account .gr-login-actions { flex-direction: column; align-items: stretch; }
	body.woocommerce-account .gr-login-actions button.gr-btn { width: 100%; }
}
