/*
 * COOKD Account
 * A deliberately small layer on top of WooCommerce My Account.
 */

body.cookd-account-active {
	--cookd-account-text: #18221e;
	--cookd-account-muted: #68716d;
}

body.cookd-account-active .woocommerce {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 40px));
	max-width: 1180px;
	margin: 48px auto;
	color: var(--cookd-account-text);
	font-size: 16px;
	line-height: 1.6;
}

body.cookd-account-active .woocommerce::after {
	display: table;
	clear: both;
	content: "";
}

body.cookd-account-active .woocommerce *,
body.cookd-account-active .woocommerce *::before,
body.cookd-account-active .woocommerce *::after {
	box-sizing: border-box;
}

body.cookd-account-active .woocommerce-MyAccount-navigation {
	float: left !important;
	width: 240px !important;
	margin: 0 !important;
	padding: 8px !important;
	border: 1px solid var(--cookd-account-border) !important;
	border-radius: 14px;
	background: #fff;
}

body.cookd-account-active .woocommerce-MyAccount-navigation ul {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.cookd-account-active .woocommerce-MyAccount-navigation li {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.cookd-account-active .woocommerce-MyAccount-navigation a {
	display: block !important;
	width: 100%;
	padding: 11px 13px !important;
	border: 0 !important;
	border-radius: 9px;
	color: #34413c !important;
	font-size: 15px !important;
	font-weight: 650 !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
}

body.cookd-account-active .woocommerce-MyAccount-navigation a:hover {
	background: #f3f0e9;
	color: var(--cookd-account-primary) !important;
}

body.cookd-account-active .woocommerce-MyAccount-navigation .is-active > a {
	background: var(--cookd-account-primary) !important;
	color: #fff !important;
}

body.cookd-account-active .woocommerce-MyAccount-content {
	float: right !important;
	width: calc(100% - 276px) !important;
	min-width: 0;
	margin: 0 !important;
	padding: 32px !important;
	border: 1px solid var(--cookd-account-border);
	border-radius: 16px;
	background: #fff;
}

body.cookd-account-active .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

body.cookd-account-active .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

body.cookd-account-active .woocommerce-MyAccount-content h1,
body.cookd-account-active .woocommerce-MyAccount-content h2,
body.cookd-account-active .woocommerce-MyAccount-content h3 {
	color: var(--cookd-account-primary);
	font-family: inherit;
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

body.cookd-account-active .woocommerce-MyAccount-content h1 {
	margin: 4px 0 8px;
	font-size: clamp(30px, 4vw, 44px);
}

body.cookd-account-active .woocommerce-MyAccount-content h2 {
	font-size: clamp(24px, 3vw, 32px);
}

body.cookd-account-active .cookd-account-eyebrow,
body.cookd-account-active .cookd-eyebrow {
	display: block;
	margin-bottom: 4px;
	color: #8a6c23;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.cookd-account-active .cookd-weekmenu-cta {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 28px;
	width: 100% !important;
	margin: 0 !important;
	padding: clamp(24px, 4vw, 38px) !important;
	border: 0 !important;
	border-radius: 14px;
	background: var(--cookd-account-primary);
	color: #fff;
}

body.cookd-account-active .cookd-weekmenu-cta__copy {
	min-width: 0;
}

body.cookd-account-active .cookd-weekmenu-cta h2 {
	margin: 2px 0 8px !important;
	color: #fff !important;
	font-size: clamp(26px, 3vw, 36px);
}

body.cookd-account-active .cookd-weekmenu-cta p {
	max-width: 600px;
	margin: 0 !important;
	color: rgba(255,255,255,.78);
}

body.cookd-account-active .cookd-weekmenu-cta .cookd-account-eyebrow {
	color: #ead28d;
}

body.cookd-account-active .woocommerce .button,
body.cookd-account-active .woocommerce button.button,
body.cookd-account-active .woocommerce input.button {
	min-height: 44px;
	padding: 11px 18px !important;
	border: 1px solid var(--cookd-account-primary) !important;
	border-radius: 8px !important;
	background: var(--cookd-account-primary) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 750 !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
	text-transform: none !important;
}

body.cookd-account-active .woocommerce .button:hover,
body.cookd-account-active .woocommerce button.button:hover,
body.cookd-account-active .woocommerce input.button:hover {
	border-color: #214d40 !important;
	background: #214d40 !important;
	color: #fff !important;
}

body.cookd-account-active .cookd-weekmenu-cta__button {
	flex: 0 0 auto;
	border-color: var(--cookd-account-accent) !important;
	background: var(--cookd-account-accent) !important;
	color: #1c2b25 !important;
	white-space: nowrap;
}

body.cookd-account-active .cookd-weekmenu-cta__button:hover {
	border-color: #e1c77f !important;
	background: #e1c77f !important;
	color: #1c2b25 !important;
}

/* Native WooCommerce tables, addresses and forms. */
body.cookd-account-active .woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 24px !important;
	border: 1px solid var(--cookd-account-border) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border-radius: 10px !important;
	background: #fff;
	font-size: 14px;
}

body.cookd-account-active .woocommerce table.shop_table th,
body.cookd-account-active .woocommerce table.shop_table td {
	padding: 14px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--cookd-account-border) !important;
	text-align: left;
	vertical-align: middle;
}

body.cookd-account-active .woocommerce table.shop_table th {
	background: #f8f6f1;
	color: var(--cookd-account-primary);
	font-weight: 750;
}

body.cookd-account-active .woocommerce table.shop_table tr:last-child td {
	border-bottom: 0 !important;
}

body.cookd-account-active .woocommerce-Address {
	margin-bottom: 24px;
	padding: 22px !important;
	border: 1px solid var(--cookd-account-border);
	border-radius: 10px;
	background: #fff;
}

body.cookd-account-active .woocommerce-Address-title h2 {
	margin-top: 0;
}

body.cookd-account-active .woocommerce form .form-row {
	margin: 0 0 18px !important;
	padding: 0 !important;
}

body.cookd-account-active .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	color: #34413c;
	font-size: 14px;
	font-weight: 700;
}

body.cookd-account-active .woocommerce form .input-text,
body.cookd-account-active .woocommerce form input[type="email"],
body.cookd-account-active .woocommerce form input[type="password"],
body.cookd-account-active .woocommerce form input[type="text"],
body.cookd-account-active .woocommerce form input[type="tel"],
body.cookd-account-active .woocommerce form select,
body.cookd-account-active .woocommerce form textarea {
	width: 100% !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid #cfc9bf !important;
	border-radius: 7px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--cookd-account-text) !important;
	font: inherit !important;
}

body.cookd-account-active .woocommerce form .input-text:focus,
body.cookd-account-active .woocommerce form input:focus,
body.cookd-account-active .woocommerce form select:focus,
body.cookd-account-active .woocommerce form textarea:focus {
	border-color: var(--cookd-account-primary) !important;
	outline: 2px solid rgba(23,53,44,.14) !important;
	outline-offset: 1px;
}

body.cookd-account-active .woocommerce fieldset {
	margin: 28px 0 20px !important;
	padding: 22px !important;
	border: 1px solid var(--cookd-account-border) !important;
	border-radius: 10px;
}

body.cookd-account-active .woocommerce legend {
	padding: 0 8px;
	color: var(--cookd-account-primary);
	font-weight: 750;
}

body.cookd-account-active .woocommerce-message,
body.cookd-account-active .woocommerce-info,
body.cookd-account-active .woocommerce-error,
body.cookd-account-active .cookd-account-alert {
	margin: 0 0 22px !important;
	padding: 15px 18px !important;
	border: 1px solid #d8d2c8 !important;
	border-top: 0 !important;
	border-left: 4px solid var(--cookd-account-primary) !important;
	border-radius: 8px;
	background: #f8f6f1 !important;
	color: var(--cookd-account-text) !important;
}

body.cookd-account-active .woocommerce-error,
body.cookd-account-active .cookd-account-alert--error {
	border-left-color: #a74338 !important;
}

/* Login and verification stay simple and use WooCommerce structure. */
body.cookd-account-logged-out .woocommerce {
	max-width: 980px;
}

body.cookd-account-active .woocommerce form.login,
body.cookd-account-active .woocommerce form.register,
body.cookd-account-active .cookd-verification-pending,
body.cookd-account-active .cookd-resend-box {
	padding: 26px !important;
	border: 1px solid var(--cookd-account-border) !important;
	border-radius: 12px !important;
	background: #fff;
}

body.cookd-account-active .cookd-verification-pending {
	max-width: 680px;
}

body.cookd-account-active .cookd-verification-pending h1 {
	margin-top: 4px;
}

body.cookd-account-active .cookd-resend-box {
	margin-top: 20px;
}

body.cookd-account-active .cookd-resend-box summary {
	cursor: pointer;
	color: var(--cookd-account-primary);
	font-weight: 750;
}

body.cookd-account-active .cookd-resend-form {
	margin-top: 18px;
}

@media (max-width: 780px) {
	body.cookd-account-active .woocommerce {
		width: min(100% - 28px, 720px);
		margin: 24px auto;
	}

	body.cookd-account-active .woocommerce-MyAccount-navigation,
	body.cookd-account-active .woocommerce-MyAccount-content {
		float: none !important;
		width: 100% !important;
	}

	body.cookd-account-active .woocommerce-MyAccount-navigation {
		margin-bottom: 18px !important;
		overflow-x: auto;
	}

	body.cookd-account-active .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		gap: 4px;
		min-width: max-content;
	}

	body.cookd-account-active .woocommerce-MyAccount-navigation li {
		width: auto !important;
	}

	body.cookd-account-active .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}

	body.cookd-account-active .woocommerce-MyAccount-content {
		padding: 22px !important;
	}

	body.cookd-account-active .cookd-weekmenu-cta {
		align-items: flex-start !important;
		flex-direction: column !important;
		gap: 20px;
	}

	body.cookd-account-active .cookd-weekmenu-cta__button {
		width: 100%;
		text-align: center;
	}

	body.cookd-account-active .woocommerce table.shop_table_responsive thead {
		display: none;
	}

	body.cookd-account-active .woocommerce table.shop_table_responsive tr,
	body.cookd-account-active .woocommerce table.shop_table_responsive td {
		display: block;
		width: 100%;
	}

	body.cookd-account-active .woocommerce table.shop_table_responsive td {
		text-align: right;
	}

	body.cookd-account-active .woocommerce table.shop_table_responsive td::before {
		float: left;
		font-weight: 750;
	}
}

@media (max-width: 480px) {
	body.cookd-account-active .woocommerce {
		width: min(100% - 20px, 460px);
	}

	body.cookd-account-active .woocommerce-MyAccount-content {
		padding: 18px !important;
		border-radius: 12px;
	}

	body.cookd-account-active .cookd-weekmenu-cta {
		padding: 22px !important;
	}

	body.cookd-account-active .woocommerce table.shop_table th,
	body.cookd-account-active .woocommerce table.shop_table td {
		padding: 12px !important;
	}
}
