/* Beauty Touch — My Account (WooCommerce endpoints: dashboard, orders,
   addresses, account details, wishlist, rewards/referrals stubs).
   Loaded only on My Account pages. */

body.woocommerce-account{ background:var(--btpk-pink-tint); }
.woocommerce-account .woocommerce{ max-width:none; margin:0 auto; padding:32px clamp(16px,4vw,24px) 64px; box-sizing:border-box; }
.woocommerce-account .woocommerce-MyAccount-navigation{ display:none; } /* legacy selector, harmless now that navigation.php renders .btpk-account-nav directly inside the shell */
.btpk-account-shell{ display:grid; grid-template-columns:250px 1fr; background:#fff; border-radius:16px; box-shadow:0 20px 50px rgba(0,0,0,0.08); overflow:hidden; align-items:start; width:100%; box-sizing:border-box; }
.woocommerce-account .woocommerce-MyAccount-content{ padding:0 !important; width:100% !important; float:none !important; min-width:0; }

.btpk-account-nav{ background:var(--btpk-pink); padding:36px 0; }
.btpk-account-nav-user{ padding:0 28px 24px; border-bottom:1px solid rgba(255,255,255,0.18); margin-bottom:16px; }
.btpk-account-nav-avatar{ width:54px; height:54px; border-radius:50%; background:#fff; color:var(--btpk-pink); display:flex; align-items:center; justify-content:center; font-family:var(--font-serif); font-size:19px; font-weight:700; margin-bottom:12px; }
.btpk-account-nav-name{ color:#fff; font-size:14.5px; font-weight:700; }
.btpk-account-nav-email{ color:#F6D3E4; font-size:12px; }
.btpk-account-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.btpk-account-nav li{ border-left:3px solid transparent; }
.btpk-account-nav li a{ display:block; padding:12px 28px; color:#F6D3E4 !important; text-decoration:none; font-size:13.5px; font-weight:600; }
.btpk-account-nav li.is-active{ border-left-color:var(--btpk-gold); background:rgba(255,255,255,0.14); }
.btpk-account-nav li.is-active a{ color:#fff !important; font-weight:700; }
.btpk-account-nav li:last-child{ margin-top:12px; }
.btpk-account-nav li:last-child a{ color:#fff !important; font-weight:700; }

.btpk-account-dashboard, .btpk-account-placeholder, .btpk-account-wishlist,
.woocommerce-account .woocommerce-MyAccount-content > *:not(.btpk-account-shell){ padding:40px 44px; }
.btpk-account-heading{ font-family:var(--font-serif); font-size:24px; font-weight:700; margin:0 0 8px; color:var(--btpk-ink); }
.btpk-account-heading span{ color:var(--btpk-pink); }
.btpk-account-intro{ font-size:13.5px; color:var(--btpk-gray); line-height:1.7; margin:0 0 28px; max-width:640px; }
.btpk-account-intro a{ color:var(--btpk-pink); font-weight:700; }

.btpk-account-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:32px; }
.btpk-account-stat{ background:var(--btpk-pink-tint); border-radius:12px; padding:20px; }
.btpk-account-stat-value{ font-family:var(--font-serif); font-size:26px; font-weight:700; color:var(--btpk-pink); }
.btpk-account-stat-label{ font-size:12px; color:var(--btpk-gray); margin-top:4px; font-weight:600; }

.btpk-account-subheading{ font-family:var(--font-serif); font-size:17px; font-weight:700; margin:0 0 16px; color:var(--btpk-ink); }
.btpk-account-orders-table{ border:1px solid var(--btpk-pink-tint2); border-radius:10px; overflow:hidden; }
.btpk-account-orders-row{ display:grid; grid-template-columns:1fr 1fr 1fr 1fr; padding:14px 18px; font-size:clamp(11px,1.4vw,13px); color:var(--btpk-ink); align-items:center; text-decoration:none; gap:6px; }
.btpk-account-orders-row:not(.btpk-account-orders-head):hover{ background:var(--btpk-pink-tint); }
.btpk-account-orders-head{ background:var(--btpk-pink-tint); font-size:11.5px; font-weight:800; color:var(--btpk-gray); text-transform:uppercase; letter-spacing:0.03em; }
.btpk-account-orders-row:not(.btpk-account-orders-head){ border-top:1px solid var(--btpk-pink-tint2); font-weight:700; }
.btpk-account-status{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:12px; background:var(--btpk-pink-tint); color:var(--btpk-pink); }
.btpk-account-status-completed{ background:#E7F6EC; color:#2E7D45; }
.btpk-account-status-cancelled, .btpk-account-status-failed{ background:#FBEAEA; color:#B23B3B; }

.btpk-account-placeholder{ text-align:center; padding:64px 40px !important; }
.btpk-account-placeholder-icon{ font-size:40px; color:var(--btpk-pink); margin-bottom:16px; }
.btpk-account-placeholder h2{ font-family:var(--font-serif); font-size:19px; font-weight:700; color:var(--btpk-ink); margin:0 0 8px; }
.btpk-account-placeholder p{ font-size:13.5px; color:var(--btpk-gray); margin:0 0 20px; }
.btpk-account-placeholder-btn{ display:inline-block; background:var(--btpk-pink); color:#fff; padding:12px 26px; border-radius:22px; text-decoration:none; font-size:13px; font-weight:700; }

.btpk-wishlist-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.btpk-wishlist-card{ position:relative; border:1px solid var(--btpk-pink-tint2); border-radius:12px; overflow:hidden; }
.btpk-wishlist-remove{ position:absolute; top:10px; right:10px; z-index:2; width:26px; height:26px; border-radius:50%; background:#fff; border:none; color:var(--btpk-ink); font-size:11px; cursor:pointer; }
.btpk-wishlist-card-media{ display:block; aspect-ratio:1/1; background:var(--btpk-pink-tint); }
.btpk-wishlist-card-media img{ width:100%; height:100%; object-fit:cover; }
.btpk-wishlist-card-body{ padding:14px; }
.btpk-wishlist-card-name{ display:block; font-size:13px; font-weight:700; color:var(--btpk-ink); text-decoration:none; margin-bottom:4px; }
.btpk-wishlist-card-price{ font-size:13px; font-weight:800; color:var(--btpk-pink); margin-bottom:10px; }
.btpk-wishlist-add-btn{ display:block; text-align:center; width:100%; background:var(--btpk-pink); color:#fff !important; border:none; padding:9px; border-radius:20px; font-size:12px; font-weight:700; text-decoration:none; }
.btpk-wishlist-oos{ font-size:12px; color:var(--btpk-gray); font-weight:700; }

/* Re-skin WooCommerce's own forms (Addresses/Account Details/Orders list) inside the content panel */
.woocommerce-MyAccount-content table.shop_table{ border:1px solid var(--btpk-pink-tint2); border-radius:10px; overflow:hidden; border-collapse:collapse; width:calc(100% - 88px); margin:0 44px 44px; }
.woocommerce-MyAccount-content table.shop_table th{ background:var(--btpk-pink-tint); font-size:11.5px; font-weight:800; color:var(--btpk-gray); text-transform:uppercase; letter-spacing:0.03em; padding:12px 16px; }
.woocommerce-MyAccount-content table.shop_table td{ padding:12px 16px; font-size:13px; border-top:1px solid var(--btpk-pink-tint2); }
.woocommerce-MyAccount-content .woocommerce-Addresses{ padding:40px 44px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.woocommerce-MyAccount-content .woocommerce-Address{ border:1px solid var(--btpk-pink-tint2); border-radius:12px; padding:20px; }
.woocommerce-MyAccount-content .woocommerce-Address-title h3{ font-family:var(--font-serif); font-size:14.5px; margin:0 0 10px; color:var(--btpk-ink); }
.woocommerce-MyAccount-content .woocommerce-Address-title a.edit{ color:var(--btpk-pink); font-size:12px; font-weight:700; }
.woocommerce-MyAccount-content form.woocommerce-EditAccountForm, .woocommerce-MyAccount-content form.woocommerce-address-fields, .woocommerce-MyAccount-content form.woocommerce-form-login, .woocommerce-MyAccount-content form.woocommerce-form-register{ padding:40px 44px; max-width:520px; }
.woocommerce-MyAccount-content form p.form-row{ margin-bottom:16px; }
.woocommerce-MyAccount-content form input.input-text, .woocommerce-MyAccount-content form select, .woocommerce-MyAccount-content form textarea{ width:100%; padding:12px 14px; border:1px solid var(--btpk-pink-tint2); border-radius:8px; font-size:14px; font-family:var(--font-sans); }
.woocommerce-MyAccount-content form button.button, .woocommerce-MyAccount-content .woocommerce-Button{ background:var(--btpk-pink); color:#fff; border:none; padding:13px 26px; border-radius:24px; font-size:13.5px; font-weight:700; cursor:pointer; }

@media (max-width: 900px){
	.woocommerce-account .woocommerce{ padding:20px 12px 40px; }
	.btpk-account-shell{ grid-template-columns:1fr; border-radius:12px; }
	.btpk-account-nav{ padding:18px 0; }
	.btpk-account-nav ul{ flex-direction:row; overflow-x:auto; padding:0 16px; gap:2px; -webkit-overflow-scrolling:touch; }
	.btpk-account-nav li{ border-left:none; border-bottom:3px solid transparent; flex-shrink:0; }
	.btpk-account-nav li.is-active{ border-bottom-color:var(--btpk-gold); }
	.btpk-account-nav li a{ padding:9px 12px; white-space:nowrap; font-size:12.5px; }
	.btpk-account-nav-user{ padding:0 16px 14px; margin-bottom:10px; }
	.btpk-account-nav-avatar{ width:44px; height:44px; font-size:15px; }
	.btpk-account-nav-name{ font-size:13px; }
	.btpk-account-nav-email{ font-size:11px; word-break:break-all; }

	.btpk-account-dashboard, .btpk-account-placeholder, .btpk-account-wishlist,
	.woocommerce-account .woocommerce-MyAccount-content > *:not(.btpk-account-shell){ padding:22px 16px; }
	.btpk-account-heading{ font-size:19px; }
	.btpk-account-intro{ font-size:12.5px; }
	.btpk-account-stats{ grid-template-columns:1fr 1fr; gap:10px; }
	.btpk-account-stat{ padding:14px; }
	.btpk-account-stat-value{ font-size:19px; word-break:break-word; }

	.btpk-account-orders-table{ overflow-x:auto; }
	.btpk-account-orders-row{ grid-template-columns:repeat(4,minmax(78px,1fr)); min-width:460px; padding:12px 14px; }

	.btpk-wishlist-grid{ grid-template-columns:1fr 1fr; gap:12px; }
	.btpk-wishlist-card-name{ font-size:12px; }
	.btpk-wishlist-card-price{ font-size:12px; }

	.woocommerce-MyAccount-content .woocommerce-Addresses{ grid-template-columns:1fr; padding:20px 16px; gap:12px; }
	.woocommerce-MyAccount-content table.shop_table{ margin:0 16px 20px; width:calc(100% - 32px); font-size:12px; }
	.woocommerce-MyAccount-content table.shop_table th, .woocommerce-MyAccount-content table.shop_table td{ padding:9px 10px; font-size:12px; }
	.woocommerce-MyAccount-content form.woocommerce-EditAccountForm, .woocommerce-MyAccount-content form.woocommerce-address-fields, .woocommerce-MyAccount-content form.woocommerce-form-login, .woocommerce-MyAccount-content form.woocommerce-form-register{ padding:20px 16px; max-width:100%; }
	.woocommerce-MyAccount-content form input.input-text, .woocommerce-MyAccount-content form select, .woocommerce-MyAccount-content form textarea{ font-size:13px; padding:10px 12px; }
}

@media (max-width: 480px){
	.btpk-account-stats{ grid-template-columns:1fr; }
	.btpk-wishlist-grid{ grid-template-columns:1fr; }
	.btpk-account-orders-row{ font-size:11px; }
}
