/* =============================================================================================================
   My account: login / registration and the logged-in dashboard. (A fully custom dashboard design replaces the
   dashboard part in a later phase; the login screen keeps the legacy layout.)
   ============================================================================================================= */
.woocommerce-account .dm-container { padding-block-end: 20px; }
.u-columns#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; max-inline-size: 1000px; margin-inline: auto; padding-block: 20px 40px; }
.u-columns#customer_login .u-column1 { padding-inline-end: 40px; border-inline-end: 1px solid var(--dm-line); }
.u-columns#customer_login .u-column2 { padding-inline-start: 40px; text-align: center; }
.u-columns#customer_login h2 { margin: 0 0 24px; color: #242424; font-size: 22px; font-weight: 700; line-height: 1.3; }
.u-columns#customer_login .u-column2 h2 { margin-block-end: 16px; }
.dm-reg-promo p { margin: 0 0 20px; color: #767676; font-size: 15px; line-height: 1.9; }
.dm-reg-promo .button { min-inline-size: 120px; }
.u-column2.is-open .dm-reg-promo { display: none; }
.u-column2:not(.is-open) form.register { display: none; }
.u-column2.is-open { text-align: start; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #555; }
.woocommerce-form-login .form-row:last-of-type { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce-form-login__submit { inline-size: 100%; min-block-size: 46px; margin-block: 6px 12px; order: 3; }
.woocommerce-LostPassword { margin: 0; font-size: 14px; }
.woocommerce-LostPassword a { color: var(--dm-orange); }
.password-input { position: relative; display: block; }
.password-input .show-password-input { position: absolute; inset-block: 0; inset-inline-start: 12px; inline-size: 24px; border: 0; background: transparent; cursor: pointer; opacity: .55; }
.password-input .show-password-input::before {
	content: ""; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.600-7 10-7 10 7 10 7-3.600 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / 18px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.600-7 10-7 10 7 10 7-3.600 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / 18px no-repeat;
}
.password-input input { padding-inline-start: 44px; }

/* logged-in — WooCommerce's own float/percentage widths must not apply inside the grid */
.woocommerce-account .woocommerce-MyAccount-navigation.dm-account-nav, .woocommerce-account .woocommerce-MyAccount-content { float: none; inline-size: auto; max-inline-size: 100%; box-sizing: border-box; }
.dm-account-nav ul, .dm-account-nav li { min-inline-size: 0; }
.dm-account-nav a > span:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
/* logged-in */
.woocommerce-account.logged-in .woocommerce, .woocommerce-account .woocommerce:has(.dm-account-nav) { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; padding-block: 10px 40px; }
.dm-account-nav { position: sticky; inset-block-start: 130px; padding: 18px; border-radius: 20px; background: var(--dm-surface); }
.dm-account-nav__me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; margin-block-end: 8px; border-block-end: 1px solid var(--dm-line); }
.dm-account-nav__avatar { flex: none; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--dm-orange); color: #fff; font-size: 20px; font-weight: 700; }
.dm-account-nav__who { display: grid; min-inline-size: 0; }
.dm-account-nav__who strong { overflow: hidden; color: #242424; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.dm-account-nav__who small { overflow: hidden; color: #767676; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dm-account-nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dm-account-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: transparent; color: #3e3e3e; font-size: 15px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.dm-account-nav a:hover { background: #f3f3f3; color: #242424; }
.dm-account-nav .is-active a { background: var(--dm-orange); color: #fff; }
.dm-account-nav__ico { flex: none; inline-size: 20px; block-size: 20px; background: currentColor; -webkit-mask: var(--ic, var(--ic-default)) center / contain no-repeat; mask: var(--ic, var(--ic-default)) center / contain no-repeat; }
.dm-account-nav, .dm-tile { --ic-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><path d='M12 8v4l3 2'/></svg>"); }
.woocommerce-MyAccount-navigation-link--dashboard { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M4 11 12 4l8 7v8a1 1 0 0 1-1 1h-4v-6H9v6H5a1 1 0 0 1-1-1z'/></svg>"); }
.woocommerce-MyAccount-navigation-link--orders { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8h14l-1.200 11H6.200z'/><path d='M9 8V6.500a3 3 0 0 1 6 0V8'/></svg>"); }
.woocommerce-MyAccount-navigation-link--downloads { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11m0 0-4-4m4 4 4-4M5 20h14'/></svg>"); }
.woocommerce-MyAccount-navigation-link--edit-address { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z'/><circle cx='12' cy='10' r='2.500'/></svg>"); }
.woocommerce-MyAccount-navigation-link--edit-account { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.200 3.600-7 8-7s8 2.800 8 7'/></svg>"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M10 4H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h4M15 8l4 4-4 4M19 12H9'/></svg>"); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #c0392b; }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fdecea; color: #c0392b; }

.woocommerce-MyAccount-content { min-inline-size: 0; padding: 26px; border-radius: 20px; background: var(--dm-surface); }
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content h3 { color: #242424; font-size: 18px; font-weight: 700; }
.woocommerce-MyAccount-content p { color: #555; line-height: 1.9; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--dm-orange); }

/* dashboard */
.dm-dash__hello h2 { margin: 0 0 6px; color: #242424; font-size: 22px; font-weight: 700; }
.dm-dash__hello p { margin: 0 0 22px; }
.dm-dash__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.dm-tile a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico val" "ico label"; align-items: center; column-gap: 14px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--dm-line); transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
.dm-tile a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--dm-orange); }
.dm-tile__ico { grid-area: ico; inline-size: 44px; block-size: 44px; border-radius: 14px; background: rgba(253, 141, 31, .12); position: relative; }
.dm-tile__ico::after { content: ""; position: absolute; inset: 11px; background: var(--dm-orange); -webkit-mask: var(--ic, var(--ic-default)) center / contain no-repeat; mask: var(--ic, var(--ic-default)) center / contain no-repeat; }
.dm-tile--orders { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8h14l-1.200 11H6.200z'/><path d='M9 8V6.500a3 3 0 0 1 6 0V8'/></svg>"); }
.dm-tile--wishlist { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'><path d='M20.800 4.600a5.500 5.500 0 0 0-7.800 0L12 5.700l-1.100-1.100a5.500 5.500 0 0 0-7.800 7.800l1.100 1.100L12 21.200l7.800-7.800 1-1.100a5.500 5.500 0 0 0 0-7.700z'/></svg>"); }
.dm-tile__val { grid-area: val; align-self: end; color: #242424; font-size: 20px; font-weight: 700; line-height: 1.3; }
.dm-tile__label { grid-area: label; align-self: start; color: #767676; font-size: 13px; }
.dm-dash__links { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 26px; }
.dm-dash__links a { padding: 8px 16px; border-radius: 35px; background: #fff; box-shadow: 0 0 0 1px var(--dm-line); color: #3e3e3e !important; font-size: 14px; font-weight: 600; transition: box-shadow .2s ease, color .2s ease; }
.dm-dash__links a:hover { box-shadow: 0 0 0 1.5px var(--dm-orange); color: var(--dm-orange) !important; }
.dm-dash__title { margin: 0 0 12px; }
.dm-dash__orders { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dm-dash__orders a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--dm-line); color: #242424 !important; font-size: 14px; transition: box-shadow .2s ease; }
.dm-dash__orders a:hover { box-shadow: 0 0 0 1.5px var(--dm-orange); }
.dm-order__no { font-weight: 700; }
.dm-order__date { color: #767676; }
.dm-order__status { padding: 3px 12px; border-radius: 35px; background: #f3f3f3; color: #555; font-size: 12px; font-weight: 600; }
.dm-order__status--completed { background: #e8f6ec; color: #2f8f4e; }
.dm-order__status--processing, .dm-order__status--on-hold { background: rgba(253, 141, 31, .14); color: #c76400; }
.dm-order__status--cancelled, .dm-order__status--failed, .dm-order__status--refunded { background: #fdecea; color: #c0392b; }
.dm-order__total { font-weight: 700; color: var(--dm-orange); }

/* orders table → stacked cards on small screens */
.woocommerce-orders-table { border: 0; border-collapse: separate; border-spacing: 0 8px; }
.woocommerce-orders-table th { padding: 6px 14px; color: #767676; font-size: 13px; font-weight: 600; text-align: start; }
.woocommerce-orders-table td { padding: 14px; background: #fff; font-size: 14px; }
.woocommerce-orders-table td:first-child { border-radius: 0 14px 14px 0; }
.woocommerce-orders-table td:last-child { border-radius: 14px 0 0 14px; }
.woocommerce-orders-table .button { min-block-size: 36px; padding: 4px 16px; font-size: 12px; }
.woocommerce-pagination--without-numbers { display: flex; gap: 10px; margin-block-start: 14px; }

@media (max-width: 1024px) {
	.woocommerce-account.logged-in .woocommerce, .woocommerce-account .woocommerce:has(.dm-account-nav) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dm-account-nav { position: static; padding: 12px; }
	.dm-account-nav ul { display: flex; overflow-x: auto; gap: 8px; padding-block-end: 4px; scrollbar-width: none; }
	.dm-account-nav li { flex: none; }
	.dm-account-nav a { padding: 9px 14px; background: #fff; box-shadow: 0 0 0 1px var(--dm-line); white-space: nowrap; }
	.dm-account-nav .is-active a { box-shadow: none; }
	.woocommerce-MyAccount-content { padding: 18px; }
}
@media (max-width: 640px) {
	.dm-dash__tiles { grid-template-columns: minmax(0, 1fr); }
	.dm-dash__orders a { grid-template-columns: auto 1fr; }
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table, .woocommerce-orders-table tbody, .woocommerce-orders-table tr, .woocommerce-orders-table td { display: block; inline-size: 100%; }
	.woocommerce-orders-table tr { margin-block-end: 12px; padding: 4px 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--dm-line); }
	.woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 0 !important; }
	.woocommerce-orders-table td::before { content: attr(data-title); color: #767676; font-weight: 600; }
}
@media (max-width: 767px) {
	.u-columns#customer_login { grid-template-columns: 1fr; }
	.u-columns#customer_login .u-column1 { padding-inline-end: 0; padding-block-end: 30px; border-inline-end: 0; border-block-end: 1px solid var(--dm-line); }
	.u-columns#customer_login .u-column2 { padding-inline-start: 0; padding-block-start: 30px; }
}

/* ------------------------------------------------------------------ cart (WooCommerce block) */
.wp-block-woocommerce-cart { margin-block-end: 40px; }
.wc-block-cart__submit-container .wc-block-components-button { background: var(--dm-orange); color: #fff; border-radius: 30px; }
.wc-block-components-button:not(.is-link) { border-radius: var(--dm-r-pill); font-weight: 600; }
.wc-block-components-totals-wrapper, .wc-block-cart-items { font-size: 14px; }
.wc-block-components-product-name { color: #242424; font-weight: 600; }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title, .wp-block-woocommerce-empty-cart-block h2 { color: #242424; font-size: 18px; font-weight: 600; text-align: center; }
.wc-block-grid__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 20px 0; padding: 0; list-style: none; }
.wc-block-grid__product { margin: 0; padding: 0; text-align: center; }
.wc-block-grid__product-image img { inline-size: 100%; block-size: auto; border-radius: 20px; }
.wc-block-grid__product-title { margin: 12px 0 6px; color: var(--dm-orange); font-size: 16px; font-weight: 600; }
.wc-block-grid__product-price { color: var(--dm-orange); font-weight: 600; }
.wc-block-grid__product-add-to-cart .wp_block_button__link, .wc-block-grid__product .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-block-size: 42px; padding: 5px 24px;
	border: 0; border-radius: var(--dm-r-pill); background: var(--dm-orange); color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase;
}
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
	content: ""; display: block; inline-size: 64px; block-size: 64px; margin: 0 auto 20px; background: #d9d9d9;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h2l2.200 10.500h10.600L20 7H6'/><circle cx='9' cy='19' r='1.400'/><circle cx='17' cy='19' r='1.400'/><path d='m10 8 4 4m0-4-4 4' /></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h2l2.200 10.500h10.600L20 7H6'/><circle cx='9' cy='19' r='1.400'/><circle cx='17' cy='19' r='1.400'/><path d='m10 8 4 4m0-4-4 4' /></svg>") center / contain no-repeat;
}
.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before { display: none; }
@media (max-width: 1024px) { .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ addresses */
.woocommerce-account .dm-addr-intro { margin: 0 0 18px; color: var(--dm-muted); font-size: 14px; }
.woocommerce-account .dm-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dm-grid-gap, 20px); }
.woocommerce-account .dm-addr-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--dm-line); border-radius: var(--dm-r-lg); background: #fff; }
.woocommerce-account .dm-addr-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.woocommerce-account .dm-addr-card h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--dm-text); }
.woocommerce-account .dm-addr-card .edit.button { min-block-size: 36px; padding: 4px 16px; font-size: 13px; }
.woocommerce-account .dm-addr-card address { margin: 0; color: #4a4a4a; font-style: normal; font-size: 14px; line-height: 2; }
.woocommerce-account .dm-addr-empty { color: var(--dm-muted); }
@media (max-width: 767px) { .woocommerce-account .dm-addr-grid { grid-template-columns: 1fr; } }

