/*
 * WooCommerce on top of its own stylesheets: brand buttons, forms, tables,
 * My Account navigation.
 */

/* Buttons */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
	padding: 0.6rem 1.25rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--white);
	font-family: inherit;
	font-weight: 500;
	line-height: 1.5;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover {
	background: var(--navy-dark);
	color: var(--white);
}

/* Primary call to action: proceed to checkout / place order */
.woocommerce a.checkout-button,
.woocommerce #place_order {
	background: var(--orange);
	color: var(--text);
	font-size: 1.05rem;
}

.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover {
	background: var(--orange-dark);
	color: var(--white);
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	opacity: 0.6;
}

/* Forms */

.woocommerce form .form-row label {
	color: var(--text);
	font-weight: 500;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection--single {
	min-height: 2.6rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	font-family: inherit;
	font-size: 1rem;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 0;
	line-height: 1.6rem;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0.4rem;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var(--navy);
	outline: 2px solid rgba(0, 70, 114, 0.2);
}

.woocommerce form .form-row .input-text[readonly] {
	background: var(--surface);
	color: var(--muted);
}

.woocommerce form .form-row.woocommerce-invalid .input-text {
	border-color: var(--danger);
}

.mylaw-form-intro {
	color: var(--muted);
}

/* Notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--navy);
	border-radius: var(--radius);
	background: var(--surface);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--navy);
}

.woocommerce-message {
	border-top-color: var(--success);
}

.woocommerce-message::before {
	color: var(--success);
}

.woocommerce-error {
	border-top-color: var(--danger);
}

.woocommerce-error::before {
	color: var(--danger);
}

/* Tables (cart, order review, orders, certificates) */

.woocommerce table.shop_table {
	border-color: var(--line);
	border-radius: var(--radius);
}

.woocommerce table.shop_table th {
	color: var(--navy);
	font-weight: 600;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: var(--line);
}

/* Checkout has its own sheet: checkout.css */

/* Stripe card fields (from the old theme) */

.wc-stripe-elements-field {
	width: 100%;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.wc-credit-card-form br {
	display: none;
}

@media (min-width: 768px) {
	.wc-credit-card-form {
		max-width: 400px;
	}
}

/* My Account (logged in), styled like the live site: woocommerce/myaccount/navigation.php, dashboard.php */

.woocommerce-account.logged-in {
	--acct-navy: #004376;
	--acct-blue: #668ead;
	--acct-line: #ccd9e4;
	--acct-tint: #f2f5f8;
}

.woocommerce-account.logged-in .page-content {
	padding-top: 50px;
	font-family: "Inter", var(--font);
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.woocommerce-account.logged-in .woocommerce {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 0 24px;
		align-items: start;
	}

	/* WooCommerce's float clearfix would take grid cells */
	.woocommerce-account.logged-in .woocommerce::before,
	.woocommerce-account.logged-in .woocommerce::after {
		display: none;
	}

	.woocommerce-account.logged-in .woocommerce > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
		grid-column: 1 / -1;
	}

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

/* Side menu */

.mylaw-account-nav {
	margin-bottom: 40px;
}

.mylaw-account-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mylaw-account-nav > ul {
	border: 1px solid var(--acct-line);
	border-bottom: 0;
}

.mylaw-account-nav > ul > li {
	border-bottom: 1px solid var(--acct-line);
}

.mylaw-account-nav > ul > li > a,
.mylaw-account-nav summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	color: var(--acct-blue);
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.mylaw-account-nav summary {
	list-style: none;
}

.mylaw-account-nav summary::-webkit-details-marker {
	display: none;
}

.mylaw-account-nav a:hover,
.mylaw-account-nav summary:hover {
	color: var(--acct-navy);
}

.mylaw-account-nav > ul > li.is-active > a,
.mylaw-account-nav details[open] > summary {
	background: var(--acct-tint);
	color: var(--acct-navy);
}

/* The dot that marks the current page */
.mylaw-account-nav > ul > li.is-active > a::after {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.mylaw-account-nav summary .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s;
}

.mylaw-account-nav details[open] summary .icon {
	transform: rotate(180deg);
}

/* Submenu: a tree line down the left, a tick into each item */
.mylaw-account-nav details ul {
	margin: 4px 0 12px 30px;
	border-left: 1px solid var(--acct-line);
}

.mylaw-account-nav details li a {
	position: relative;
	display: block;
	padding: 10px 16px 10px 20px;
	color: var(--acct-blue);
	font-size: 15px;
	text-decoration: none;
}

.mylaw-account-nav details li a::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 10px;
	border-top: 1px solid var(--acct-line);
	content: "";
}

.mylaw-account-nav details li.is-active a {
	color: var(--acct-navy);
	font-weight: 500;
}

.mylaw-account-nav__logout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	padding-left: 12px;
	color: var(--acct-navy);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
}

.mylaw-account-nav__logout .icon {
	width: 16px;
	height: 16px;
}

/* Content: serif section headings, bordered cards */

.mylaw-account-title {
	margin: 0 0 25px;
	color: var(--acct-navy, var(--navy));
	font-family: "PP Editorial New", Georgia, serif;
	font-size: 56px;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	color: var(--acct-navy);
}

.mylaw-dash {
	margin-bottom: 40px;
}

.mylaw-card {
	padding: 32px 40px;
	border: 1px solid var(--acct-line);
}

.mylaw-card--empty {
	padding: 88px 40px;
	text-align: center;
}

.mylaw-card h3,
.mylaw-action h3 {
	margin: 0 0 16px;
	color: var(--acct-navy);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
}

.mylaw-card--empty p {
	max-width: 360px;
	margin: 0 auto 32px;
}

.mylaw-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--acct-navy);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.mylaw-arrow-link:hover {
	color: var(--orange-dark);
}

.mylaw-arrow-link .icon {
	width: 14px;
	height: 14px;
}

.mylaw-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mylaw-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 24px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--acct-line);
}

.mylaw-list li:first-child {
	padding-top: 0;
}

.mylaw-list__main {
	font-weight: 500;
}

.mylaw-list__meta {
	grid-row: 2;
	color: var(--acct-blue);
	font-size: 14px;
}

.mylaw-list .mylaw-arrow-link {
	grid-row: 1 / span 2;
	grid-column: 2;
}

.mylaw-card__more {
	margin: 24px 0 0;
	text-align: center;
}

/* Quick actions: three cells sharing borders */
.mylaw-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	border-top: 1px solid var(--acct-line);
	border-left: 1px solid var(--acct-line);
}

.mylaw-action {
	padding: 40px 28px;
	border-right: 1px solid var(--acct-line);
	border-bottom: 1px solid var(--acct-line);
}

.mylaw-action__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 56px;
	border-radius: 50%;
	background: var(--acct-tint);
	color: var(--acct-navy);
}

.mylaw-action__icon .icon {
	width: 18px;
	height: 18px;
}

.mylaw-action h3 {
	margin-bottom: 4px;
}

.mylaw-action p {
	margin: 0 0 32px;
	font-size: 14px;
}

/* Other account pages (orders, addresses, profile): same type and colours */

.woocommerce-account.logged-in .woocommerce-MyAccount-content .button {
	border-radius: 999px;
	background: #f08200;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .button:hover {
	background: #d77400;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .input-text,
.woocommerce-account.logged-in .woocommerce-MyAccount-content select {
	min-height: 48px;
	border-color: var(--acct-line);
	border-radius: 48px;
	padding-right: 16px;
	padding-left: 16px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content form .form-row label {
	padding-left: 16px;
	color: var(--acct-navy);
	font-size: 14px;
	font-weight: 400;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content fieldset {
	margin: 24px 0;
	padding: 24px;
	border: 1px solid var(--acct-line);
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content legend {
	padding: 0 8px;
	color: var(--acct-navy);
	font-weight: 500;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content em {
	padding-left: 16px;
	color: var(--acct-blue);
	font-size: 13px;
	font-style: normal;
}

.woocommerce-account .woocommerce-orders-table__cell-order-date {
	white-space: nowrap;
}

@media (max-width: 767px) {
	.mylaw-account-title {
		font-size: 40px;
	}

	.mylaw-card {
		padding: 24px;
	}

	.mylaw-card--empty {
		padding: 56px 24px;
	}
}

.mylaw-certificates__action {
	text-align: right;
}

/* Login / register: one centered panel like the live site (inc/woocommerce.php, mylaw_auth_open) */

@font-face {
	font-family: "PP Editorial New";
	src: url("../fonts/PPEditorialNew-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.woocommerce form.login,
.woocommerce form.register {
	border-color: var(--line);
	border-radius: var(--radius);
}

.woocommerce-account:not(.logged-in) .page-content {
	padding-top: 0;
	padding-bottom: 0;
}

/* Blank lines (<div>&nbsp;</div>, empty <p>) saved around the shortcode in the page content */
.woocommerce-account .entry-content > div:not([class]),
.woocommerce-account .entry-content > p:empty {
	display: none;
}

/* Section headings ("Log in", "Your certificates"…) replace the page title (kept for screen readers) */
.woocommerce-account .page-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.mylaw-auth {
	--auth-line: #ccd9e4;
	--auth-orange: #f08200;
	--auth-orange-dark: #d77400;
	color: var(--navy);
	font-family: "Inter", var(--font);
	font-size: 14px;
	letter-spacing: -0.02em;
}

.mylaw-auth > .woocommerce-notices-wrapper,
.mylaw-auth__note,
.mylaw-auth .col2-set,
.mylaw-auth > h2,
.mylaw-auth > form.login {
	max-width: 1000px;
	margin-right: auto;
	margin-left: auto;
	border-right: 1px solid var(--auth-line);
	border-left: 1px solid var(--auth-line);
}

.mylaw-auth > .woocommerce-notices-wrapper,
.mylaw-auth__note {
	margin-bottom: 0;
	padding: 2rem 2rem 0;
}

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

.mylaw-auth .woocommerce-error,
.mylaw-auth .woocommerce-info,
.mylaw-auth .woocommerce-message {
	max-width: 487px;
	margin: 0 auto;
}

.mylaw-auth__note {
	text-align: center;
}

.mylaw-auth .col2-set {
	padding: 69px 2rem;
}

.mylaw-auth .col2-set .col-1,
.mylaw-auth .col2-set .col-2 {
	float: none;
	width: 100%;
	max-width: 487px;
	margin: 0 auto;
}

.mylaw-auth[data-view="login"] .col-2,
.mylaw-auth[data-view="signup"] .col-1,
.mylaw-auth[data-view="login"] .mylaw-auth__switch-signup,
.mylaw-auth[data-view="signup"] .mylaw-auth__switch-login {
	display: none;
}

.mylaw-auth h2 {
	margin: 0 0 40px;
	color: var(--navy);
	font-family: "PP Editorial New", Georgia, serif;
	font-size: 56px;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-align: center;
}

.woocommerce .mylaw-auth form.login,
.woocommerce .mylaw-auth form.register {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce .mylaw-auth form .form-row {
	margin: 0 0 19px;
	padding: 0;
}

.woocommerce .mylaw-auth form .form-row label {
	display: block;
	margin-bottom: 8px;
	padding-left: 16px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.mylaw-auth .required {
	display: none;
}

.woocommerce .mylaw-auth form .form-row .input-text {
	height: 56px;
	padding: 18px 16px;
	border: 1px solid var(--auth-line);
	border-radius: 48px;
	color: #000;
	font-size: 16px;
	line-height: 1.3;
}

.woocommerce .mylaw-auth form .form-row .input-text:focus {
	border-color: var(--navy);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 70, 114, 0.15);
}

.woocommerce .mylaw-auth form .show-password-input {
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: #3a3939;
}

.woocommerce .mylaw-auth form .form-row .input-text[type="password"] {
	padding-right: 48px;
}

/* Remember me row, then the full-width button */
.woocommerce .mylaw-auth form.login .form-row:has(.woocommerce-form-login__rememberme) {
	display: flex;
	flex-direction: column;
}

.woocommerce .mylaw-auth form .form-row label.woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding-left: 12px;
}

.mylaw-auth input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--navy);
}

.woocommerce .mylaw-auth form button.button {
	width: 100%;
	margin: 32px 0 0;
	padding: 18px;
	border-radius: 999px;
	background: var(--auth-orange);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.woocommerce .mylaw-auth form button.button:hover {
	background: var(--auth-orange-dark);
	color: var(--white);
}

/* Privacy line under the button, as on the live site (WooCommerce prints it above) */
.woocommerce .mylaw-auth form.register {
	display: flex;
	flex-direction: column;
}

.mylaw-auth form.register .woocommerce-privacy-policy-text {
	order: 1;
}

.mylaw-auth .lost_password {
	margin: 19px 0 0;
	text-align: center;
}

.mylaw-auth .lost_password a,
.mylaw-auth__switch a {
	color: var(--navy);
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
}

.mylaw-auth .lost_password a:hover,
.mylaw-auth__switch a:hover {
	color: var(--orange-dark);
}

.mylaw-auth .woocommerce-privacy-policy-text {
	max-width: 300px;
	margin: 18px auto 0;
	color: #7f97ad;
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
}

.mylaw-auth .woocommerce-privacy-policy-text p {
	margin: 0;
}

.mylaw-auth .woocommerce-privacy-policy-text a {
	color: var(--navy);
}

.mylaw-auth__switch {
	padding: 47px 0 31px;
	border-top: 1px solid var(--auth-line);
	text-align: center;
}

.mylaw-auth__switch p {
	margin: 0;
}

.mylaw-auth__switch a {
	margin-left: 8px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.mylaw-auth .col2-set {
		padding: 40px var(--gutter);
	}

	.mylaw-auth h2 {
		font-size: 44px;
	}
}
