/* Wepic — My account (/my-account/): WooCommerce's account templates without WooCommerce's stylesheets. */

.account { min-width: 0; color: var(--text); }
.account p { margin: 0 0 1em; }
.account a:not(.button) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.account a:not(.button):hover { color: var(--ink); }
.account strong, .account mark { color: var(--ink); font-weight: 700; }
.account mark { background: none; }
.account h2 { margin: 0 0 .6em; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.account address { font-style: normal; line-height: 1.7; }

/* Logged in: menu beside the content */
.account > .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.account > .woocommerce > * { min-width: 0; } /* lets the phone tab row scroll instead of widening the page */
@media (min-width: 900px) {
	.account > .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
	.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-h) + 24px); }
}
.woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; margin: 0; padding: 10px; list-style: none; border-radius: var(--radius-lg); background: var(--sand); }
.account .woocommerce-MyAccount-navigation a {
	display: block; padding: 11px 14px; border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none;
	transition: background-color .15s, color .15s;
}
.account .woocommerce-MyAccount-navigation a:hover { background: var(--white); color: var(--ink); }
.account .woocommerce-MyAccount-navigation .is-active a { background: var(--charcoal); color: var(--white); }
.account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); font-weight: 500; }
/* Phones: the menu becomes a row of swipeable tabs. */
@media (max-width: 899px) {
	.woocommerce-MyAccount-navigation ul {
		display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px;
		margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding-inline: var(--gutter);
	}
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.account .woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 10px 14px; font-size: .92rem; }
}

/* Notices */
.account :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin: 0 0 24px; padding: 16px 18px; border-radius: var(--radius); list-style: none; font-size: .95rem;
}
.account .woocommerce-info { background: var(--sand); color: var(--ink); }
.account .woocommerce-message { background: #e9f6ee; color: #165c32; }
.account .woocommerce-error { display: block; background: #fbeaea; color: #8a1f1f; }
.account .woocommerce-error li + li { margin-top: 4px; }
.account :is(.woocommerce-info, .woocommerce-message) .button { order: 2; }

/* Buttons */
.account :is(.button, button[type="submit"]) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--radius);
	background: var(--charcoal); color: var(--white); font: inherit; font-weight: 700; font-size: .93rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s;
}
.account :is(.button, button[type="submit"]):hover { background: var(--accent-text); color: var(--white); }
.account .woocommerce-info .button { min-height: 40px; padding: 8px 16px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.account .woocommerce-info .button:hover { background: var(--charcoal); color: var(--white); box-shadow: none; }

/* Forms */
.account form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.account .form-row { display: grid; gap: 6px; margin: 0; }
@media (min-width: 600px) {
	.account form:has(.form-row-first) { grid-template-columns: 1fr 1fr; }
	.account form > :not(.form-row-first, .form-row-last) { grid-column: 1 / -1; }
	.account .woocommerce-address-fields { grid-column: 1 / -1; }
	.account .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
	.account .woocommerce-address-fields__field-wrapper > :not(.form-row-first, .form-row-last) { grid-column: 1 / -1; }
}
.account .woocommerce-address-fields__field-wrapper { display: grid; gap: 16px; margin-bottom: 20px; }
.account .clear { display: none; }
.account label { color: var(--ink); font-weight: 600; font-size: .9rem; }
.account .required { color: var(--accent-text); text-decoration: none; }
.account .optional { color: var(--muted); font-weight: 400; }
.account :is(input.input-text, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea) {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.account :is(input, select, textarea):focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(201 120 20 / 0.25); outline: none; }
.account .form-row em, .account .form-row span > em { color: var(--muted); font-size: .82rem; font-style: normal; }
.account fieldset { display: grid; gap: 16px; margin: 8px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account legend { padding: 0 8px; color: var(--ink); font-weight: 700; }
.account .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.account input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--charcoal); }
/* WooCommerce's show/hide password button */
.account .password-input { position: relative; display: block; }
.account .password-input input { padding-right: 52px; }
.account .show-password-input {
	position: absolute; top: 50%; right: 6px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; transform: translateY(-50%);
	background: var(--muted); cursor: pointer;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.account .show-password-input.display-password { background: var(--ink); }
/* Country / region pickers (selectWoo) */
.account .select2-container { width: 100% !important; }
.account .select2-container .select2-selection--single { height: 50px; border: 1px solid var(--line); border-radius: var(--radius); }
.account .select2-container .select2-selection__rendered { padding: 0 40px 0 14px; color: var(--ink); line-height: 48px; }
.account .select2-container .select2-selection__arrow { top: 12px; right: 10px; }
.account .woocommerce-input-wrapper strong { display: block; padding: 12px 0; }

/* Login (logged out) */
.account > .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) { max-width: 480px; }
.account .woocommerce-form-login, .account .lost_reset_password {
	padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--sand);
}
.account .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.account .woocommerce-form-login__submit { order: 2; flex: 1 1 100%; }
.account .lost_password { margin: 0; text-align: center; font-size: .92rem; }

/* Tables: orders list, order details, downloads */
.account .shop_table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: .95rem; }
.account .shop_table :is(th, td) { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.account .shop_table thead th { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.account .shop_table tfoot th { color: var(--ink); }
.account .shop_table tfoot tr:last-child :is(th, td) { border-bottom: 0; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.account .shop_table .button { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.account .woocommerce-orders-table__cell-order-number a { font-weight: 700; }
.account .woocommerce-orders-table__cell-order-actions { text-align: right; }
.account .shop_table .product-quantity { color: var(--muted); font-weight: 600; }
.account .wc-item-meta { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.account .wc-item-meta p { display: inline; margin: 0; }
@media (max-width: 767px) {
	/* Each order becomes a small card: label on the left, value on the right. */
	.account .shop_table_responsive thead { display: none; }
	.account .shop_table_responsive tr { display: block; margin-bottom: 12px; padding: 6px 16px; border-radius: var(--radius-lg); background: var(--sand); }
	.account .shop_table_responsive :is(td, th) { display: block; padding: 10px 0; text-align: right !important; }
	.account .shop_table_responsive :is(td, th):last-child { border-bottom: 0; }
	.account .shop_table_responsive :is(td, th)::before { content: attr(data-title); float: left; margin-right: 16px; color: var(--muted); font-weight: 600; }
	.account .shop_table_responsive .woocommerce-orders-table__cell-order-actions::before { content: none; }
}

/* Addresses */
.account .woocommerce-Addresses { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) { .account .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.account .woocommerce-Address { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--sand); }
.account .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.account .woocommerce-Address-title h2 { margin: 0; font-size: 1.5rem; }
.account .woocommerce-Address-title .edit { font-size: .88rem; font-weight: 600; }

/* Single order */
.account :is(.woocommerce-order-details, .woocommerce-customer-details) { margin-top: 32px; }
.account .woocommerce-customer-details .woocommerce-columns { display: grid; gap: 16px; }
@media (min-width: 700px) { .account .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr 1fr; } }
.account .woocommerce-customer-details address { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--sand); }
.account .woocommerce-customer-details--phone, .account .woocommerce-customer-details--email { margin: 6px 0 0; }
.account .order-again { margin-top: 8px; }

/* Pagination */
.account .woocommerce-pagination { display: flex; gap: 8px; }
