/*
 * My Account and the classic login, register and lost-password forms ([woocommerce_my_account] in
 * templates/page-my-account.html). Adapted from the kit reference (reference/pascal-starter-theme/assets/css/account.css).
 * CSS only: this is the PHP-printed markup of WooCommerce. The Downloads tab stays. Token variables only.
 */

.woocommerce::before, .woocommerce::after { display: none !important; }
.woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; gap: var(--wp--preset--spacing--50); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 782px) { .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: var(--wp--custom--layout--sidebar) minmax(0, 1fr); align-items: start; } }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: var(--wp--preset--spacing--20); list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: var(--wp--custom--control--min); padding: 0 var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--button); color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: var(--wp--custom--font-weight--semibold); }
.woocommerce-MyAccount-navigation a:hover { background: var(--wp--preset--color--accent-5); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--on-contrast); }
.woocommerce-MyAccount-content { box-sizing: border-box; min-width: 0; padding: var(--wp--preset--spacing--50); border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--surface); border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent-6); }
.woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-MyAccount-content p { margin-block: 0 var(--wp--preset--spacing--30); }
.woocommerce-Addresses { display: grid; gap: var(--wp--preset--spacing--40); }
/* WooCommerce's clearfix ::before/::after on .col2-set became grid items and took the first cell (Billing pushed right, Shipping down). */
.woocommerce-Addresses::before, .woocommerce-Addresses::after { content: none !important; display: none !important; }
@container (min-width: 520px) { .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Title, then the edit link under it, both left-aligned (WooCommerce floats the link right). */
.woocommerce-account .woocommerce-Address-title { display: grid; justify-items: start; gap: var(--wp--preset--spacing--20); margin-bottom: var(--wp--preset--spacing--30); }
.woocommerce-account .woocommerce-Address-title::before, .woocommerce-account .woocommerce-Address-title::after { content: none; }
.woocommerce-account .addresses .woocommerce-Address-title .edit { float: none; font-size: var(--wp--preset--font-size--small); }
.woocommerce-Address address { margin: 0; font-style: normal; }
.woocommerce-Addresses .col-1, .woocommerce-Addresses .col-2, .woocommerce-Address { float: none; width: auto; padding: var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--input); background: var(--wp--preset--color--accent-5); }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: var(--wp--preset--font-size--large); margin: 0; }
/* ---------- Orders table: one quiet line per order; View is the action, Invoice a download link beside it ---------- */
.woocommerce-orders-table tbody td, .woocommerce-orders-table tbody th { vertical-align: middle; }
.woocommerce-orders-table__cell-order-date, .woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }
.woocommerce-orders-table__cell-order-total { color: var(--wp--preset--color--accent-4); }
.woocommerce-orders-table__cell-order-total .amount { display: block; color: var(--wp--preset--color--contrast); font-weight: var(--wp--custom--font-weight--semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* woocommerce-blocktheme.css makes these links blocks with 1em below (".woocommerce-account …cell-order-actions a"). */
.woocommerce .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button { display: inline-flex; margin: 0; }
.woocommerce .woocommerce-orders-table a.button { min-height: var(--wp--custom--control--button-height-small); padding: 0 var(--wp--preset--spacing--40); box-shadow: none; vertical-align: middle; }
.woocommerce .woocommerce-orders-table a.button + a.button { margin-left: var(--wp--preset--spacing--30); }
.woocommerce .woocommerce-orders-table a.button.view { background: transparent; color: var(--wp--preset--color--contrast); box-shadow: inset 0 0 0 var(--wp--custom--border--hairline) var(--wp--preset--color--border-strong); }
.woocommerce .woocommerce-orders-table a.button.view:hover { background: var(--wp--preset--color--accent-5); }
.woocommerce .woocommerce-orders-table a.button.invoice { padding-inline: var(--wp--preset--spacing--20); background: transparent; color: var(--wp--preset--color--link); text-decoration: underline; text-underline-offset: 0.2em; }
.woocommerce .woocommerce-orders-table a.button.invoice::before { content: ""; width: var(--wp--custom--icon--sm); height: var(--wp--custom--icon--sm); flex: none; background: currentColor; -webkit-mask: url(../icons/wp/download-simple.svg) center / contain no-repeat; mask: url(../icons/wp/download-simple.svg) center / contain no-repeat; }
.woocommerce .woocommerce-orders-table a.button.invoice:hover { background: transparent; color: var(--wp--preset--color--contrast); }
/* Status as a coloured dot (WooCommerce prints it as plain text). The dot replaces WooCommerce's phone "Status:" label. */
.woocommerce .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status::before { content: ""; float: none; display: inline-block; width: var(--wp--preset--spacing--20); height: var(--wp--preset--spacing--20); margin-right: var(--wp--preset--spacing--20); border-radius: 50%; background: var(--wp--preset--color--accent-4); vertical-align: 0.1em; }
.woocommerce .woocommerce-orders-table__row--status-completed td.woocommerce-orders-table__cell-order-status::before { background: var(--wp--preset--color--success); }
.woocommerce .woocommerce-orders-table__row--status-processing td.woocommerce-orders-table__cell-order-status::before { background: var(--wp--preset--color--info); }
.woocommerce .woocommerce-orders-table__row--status-on-hold td.woocommerce-orders-table__cell-order-status::before, .woocommerce .woocommerce-orders-table__row--status-pending td.woocommerce-orders-table__cell-order-status::before { background: var(--wp--preset--color--warning); }
.woocommerce .woocommerce-orders-table__row--status-failed td.woocommerce-orders-table__cell-order-status::before, .woocommerce .woocommerce-orders-table__row--status-cancelled td.woocommerce-orders-table__cell-order-status::before { background: var(--wp--preset--color--error); }

/* Where five columns don't fit (beside the menu on most screens, and phones), each order is a two-line entry:
   number · status · total, then date · actions. Replaces WooCommerce's phone layout (labels, right-aligned cells). */
.woocommerce-MyAccount-content { container-type: inline-size; }
@container (max-width: 720px) {
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table, .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { display: block; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40); padding: var(--wp--preset--spacing--40); border-bottom: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent-6); }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:last-child { border-bottom: 0; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody th, .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td { display: block; padding: 0; border: 0; text-align: left !important; background: none; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td:not(.woocommerce-orders-table__cell-order-status)::before { content: none; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody th { grid-column: 1; grid-row: 1; font-weight: var(--wp--custom--font-weight--semibold); }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status { grid-column: 2; grid-row: 1; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total { grid-column: 3; grid-row: 1; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-total, .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions { text-align: right !important; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total .amount { display: inline; margin-right: var(--wp--preset--spacing--20); }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date { grid-column: 1 / 3; grid-row: 2; color: var(--wp--preset--color--accent-4); }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { grid-column: 3; grid-row: 2; }
}
@container (max-width: 440px) {
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr { grid-template-columns: minmax(0, 1fr) auto; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total { grid-column: 2; grid-row: 1; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total .amount { display: block; margin: 0; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status { grid-column: 1; grid-row: 2; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date { grid-column: 2; grid-row: 2; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-date { text-align: right !important; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; grid-row: 3; }
	.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions { text-align: left !important; padding-top: var(--wp--preset--spacing--20); }
}
.woocommerce-orders-table__cell-order-status mark, .woocommerce mark.order-status { background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--contrast); padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30); border-radius: var(--wp--custom--radius--badge); font-size: var(--wp--preset--font-size--x-small); font-weight: var(--wp--custom--font-weight--semibold); }

/* ---------- classic login, register, lost password ---------- */
.woocommerce form.woocommerce-form-login, .woocommerce form.woocommerce-form-register, .woocommerce form.lost_reset_password, .woocommerce form.edit-account, .woocommerce form.woocommerce-EditAccountForm { display: grid; gap: var(--wp--preset--spacing--40); max-width: var(--wp--custom--layout--content); padding: var(--wp--preset--spacing--50); border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent-6); border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--surface); margin: 0; }
.woocommerce form .form-row { float: none; width: 100%; margin: 0; padding: 0; display: grid; gap: var(--wp--preset--spacing--20); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
.woocommerce form .form-row::before, .woocommerce form .form-row::after { display: none; }
.woocommerce form.woocommerce-form-login .form-row:last-of-type, .woocommerce form .woocommerce-form-login__submit { display: flex; align-items: center; gap: var(--wp--preset--spacing--40); flex-wrap: wrap; }
.woocommerce form.woocommerce-form-login .form-row::before { display: none; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: var(--wp--preset--spacing--30); min-height: var(--wp--custom--control--min); }
.woocommerce .password-input { position: relative; display: block; }
.woocommerce .show-password-input { position: absolute; right: 0; top: 0; width: var(--wp--custom--control--height); height: var(--wp--custom--control--height); border: 0; background: transparent; cursor: pointer; padding: 0; }
.woocommerce .show-password-input::after { content: ""; position: absolute; inset: 0; margin: auto; width: var(--wp--custom--icon--sm); height: var(--wp--custom--icon--sm); background: var(--wp--preset--color--contrast); -webkit-mask: url(../icons/wp/eye.svg) center / contain no-repeat; mask: url(../icons/wp/eye.svg) center / contain no-repeat; }
.woocommerce .show-password-input.display-password::after { -webkit-mask-image: url(../icons/wp/eye-slash.svg); mask-image: url(../icons/wp/eye-slash.svg); }
.woocommerce form.lost_reset_password .form-row-first { width: 100%; }
.woocommerce-password-strength { padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--input); font-size: var(--wp--preset--font-size--small); background: var(--wp--preset--color--accent-5); }
.woocommerce-password-strength.good { background: var(--wp--preset--color--success-surface); color: var(--wp--preset--color--success); }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { background: var(--wp--preset--color--error-surface); color: var(--wp--preset--color--error); }
.woocommerce .u-columns { display: grid; gap: var(--wp--preset--spacing--50); }
@media (min-width: 782px) { .woocommerce .u-columns.col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce .u-columns .u-column1, .woocommerce .u-columns .u-column2 { float: none; width: auto; }

/* ---------- My Account, kit revision (kit: account) ---------- */
/* nav: icon + label pills, current item ink */
.woocommerce-MyAccount-navigation li a::before { content: ""; width: var(--wp--custom--icon--sm); height: var(--wp--custom--icon--sm); flex: none; margin-right: var(--wp--preset--spacing--30); background: currentColor; -webkit-mask: var(--sk-nav-icon, url(../icons/wp/caret-right.svg)) center / contain no-repeat; mask: var(--sk-nav-icon, url(../icons/wp/caret-right.svg)) center / contain no-repeat; }
.woocommerce-MyAccount-navigation-link--dashboard { --sk-nav-icon: url(../icons/wp/house.svg); }
.woocommerce-MyAccount-navigation-link--orders { --sk-nav-icon: url(../icons/wp/package.svg); }
.woocommerce-MyAccount-navigation-link--downloads { --sk-nav-icon: url(../icons/wp/download-simple.svg); }
.woocommerce-MyAccount-navigation-link--edit-address { --sk-nav-icon: url(../icons/wp/map-pin.svg); }
.woocommerce-MyAccount-navigation-link--payment-methods { --sk-nav-icon: url(../icons/wp/credit-card.svg); }
.woocommerce-MyAccount-navigation-link--edit-account { --sk-nav-icon: url(../icons/wp/user.svg); }
.woocommerce-MyAccount-navigation-link--customer-logout { --sk-nav-icon: url(../icons/wp/arrow-right.svg); margin-top: var(--wp--preset--spacing--30); padding-top: var(--wp--preset--spacing--30); border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent-6); }
.woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:not(.button) { color: var(--wp--preset--color--accent-4); }
@media (min-width: 782px) { .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--custom--layout--header-height) + var(--wp--preset--spacing--40)); } }
.woocommerce .woocommerce-MyAccount-navigation li a:not(.button) { text-decoration: none; }
.woocommerce-MyAccount-navigation ul { gap: var(--wp--preset--spacing--20) !important; }
.woocommerce-MyAccount-navigation li { margin: 0; }
/* WooCommerce's block-theme CSS pads every item (about 18px above and below): one 44px row per item, 8px apart */
.woocommerce .woocommerce-MyAccount-navigation ul li { padding: 0; }
.woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: var(--wp--preset--spacing--20); padding-top: var(--wp--preset--spacing--30); }

/* ---------- Google / Facebook sign-in (Nextend, added by rc-site inc/social-login.php) ---------- */
.rc-social-login { display: grid; gap: var(--wp--preset--spacing--30); padding-top: var(--wp--preset--spacing--40); border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent-6); }
.rc-social-login__label { margin: 0; font-size: var(--wp--preset--font-size--small); }
.rc-social-login .nsl-container .nsl-container-buttons a { min-height: var(--wp--custom--control--min); }
