/* ==========================================================
   EcoBen Store: My account + order received (thank-you) pages.
   Account markup additions: Account\AccountPages. Mobile first.
   ========================================================== */

/* ---------- Shell: greeting, pill menu, content ---------- */
.woocommerce-account .page-content > .woocommerce{ max-width:1000px; margin:28px auto var(--eb-section); }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{ float:none; width:auto; }
.woocommerce-account .woocommerce-notices-wrapper:empty{ display:none; }
.woocommerce-account .woocommerce-MyAccount-content{ font-size:15px; line-height:1.6; min-width:0; }
.woocommerce-account .woocommerce-MyAccount-content::after{ content:""; display:table; clear:both; }
.woocommerce-account .woocommerce-MyAccount-content mark{ background:none; color:inherit; }

.eb-acc-head{ display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.eb-acc-head__avatar{ flex:0 0 auto; width:52px; height:52px; border-radius:50%; background:var(--eb-tint); color:var(--eb-primary); display:inline-flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; }
.eb-acc-head__text{ display:flex; flex-direction:column; min-width:0; }
.eb-acc-head__hi{ font-size:14px; font-weight:600; color:var(--eb-accent-deep); }
.eb-acc-head__title{ font-size:clamp(24px,4vw,32px); font-weight:700; line-height:1.15; color:var(--eb-ink-strong); }

/* Pill menu: one scrolling row on phones, wraps on wide screens. Icons: inline CSS masks (AccountPages). */
.woocommerce-account .woocommerce-MyAccount-navigation{ margin:0 -16px 22px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul{ position:relative; display:flex; gap:8px; list-style:none; margin:0; padding:2px 16px 6px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{ display:none; }
.woocommerce-account .woocommerce-MyAccount-navigation li{ flex:0 0 auto; margin:0; padding:0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a{ display:flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border:1px solid var(--eb-line); border-radius:999px; background:var(--eb-paper); color:var(--eb-ink-strong); font-size:14.5px; font-weight:600; white-space:nowrap; text-decoration:none; transition:border-color .15s,color .15s,background .15s; }
.woocommerce-account .woocommerce-MyAccount-navigation li a::before{ content:""; flex:0 0 18px; width:18px; height:18px; background-color:currentColor; -webkit-mask:center/contain no-repeat; mask:center/contain no-repeat; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{ border-color:var(--eb-primary); color:var(--eb-primary); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{ background:var(--eb-primary); border-color:var(--eb-primary); color:#fff; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a{ color:var(--eb-ink-faint); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover{ border-color:var(--eb-danger); color:var(--eb-danger); }

/* ---------- Shared pieces ---------- */
.eb-acc-card{ border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); padding:20px; }
.eb-acc-eyebrow{ margin:0; font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--eb-ink-faint); }
.eb-acc-status{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px; background:var(--eb-cream); color:var(--eb-ink-soft); font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; }
.eb-acc-status::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.eb-acc-status--completed{ background:var(--eb-tint); color:var(--eb-success); }
.eb-acc-status--processing{ background:#EAF2FD; color:#1E5FB4; }
.eb-acc-status--on-hold{ background:#FDF4E3; color:#96600F; }
.eb-acc-status--cancelled,
.eb-acc-status--failed{ background:#FDECEC; color:var(--eb-danger); }

.woocommerce-account .eb-acc-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.woocommerce-account .woocommerce a.button.eb-acc-btn,
.woocommerce-account .woocommerce-MyAccount-content a.button.eb-reorder{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:var(--eb-radius); background:var(--eb-primary); color:#fff; font-size:15px; line-height:1.2; }
.woocommerce-account .woocommerce a.button.eb-acc-btn:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button.eb-reorder:hover{ background:var(--eb-primary-soft); color:#fff; }
.eb-acc-btn svg{ width:18px; height:18px; flex:0 0 auto; }
.eb-acc-ghost,
.woocommerce-account .woocommerce-MyAccount-content a.button.view{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border:1px solid var(--eb-line); border-radius:var(--eb-radius); background:var(--eb-paper); color:var(--eb-ink-strong); font-size:15px; font-weight:600; line-height:1.2; text-decoration:none; transition:border-color .15s,color .15s; }
.eb-acc-ghost:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button.view:hover{ border-color:var(--eb-primary); background:var(--eb-paper); color:var(--eb-primary); }

.eb-acc-thumbs{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.eb-acc-thumb{ position:relative; width:56px; height:56px; border:1px solid var(--eb-line); border-radius:12px; background:var(--eb-cream); overflow:hidden; }
.eb-acc-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.eb-acc-thumb__qty{ position:absolute; right:3px; bottom:3px; padding:1px 5px; border-radius:999px; background:rgb(26 46 26 / .82); color:#fff; font-size:11px; font-weight:600; line-height:1.4; }
.eb-acc-thumb--more{ display:flex; align-items:center; justify-content:center; color:var(--eb-ink-soft); font-size:14px; font-weight:600; }

/* ---------- Dashboard ---------- */
.woocommerce-dashboard .woocommerce-MyAccount-content > p{ display:none; } /* default text; the menu has the links */
.eb-acc-dash{ display:flex; flex-direction:column; gap:16px; }
.eb-acc-tiles{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.eb-acc-tile{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:14px 12px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-card); background:var(--eb-paper); color:var(--eb-ink-strong); text-decoration:none; transition:border-color .15s,box-shadow .15s; min-width:0; }
.eb-acc-tile:hover{ border-color:var(--eb-primary); box-shadow:var(--eb-shadow); color:var(--eb-ink-strong); }
.eb-acc-tile__icon{ position:relative; width:40px; height:40px; margin-bottom:8px; border-radius:12px; background:var(--eb-tint); color:var(--eb-primary); display:inline-flex; align-items:center; justify-content:center; }
.eb-acc-tile__badge{ position:absolute; top:-6px; right:-8px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:var(--eb-accent); color:#fff; font-size:11.5px; font-weight:700; line-height:20px; text-align:center; }
.eb-acc-tile__title{ font-size:15px; font-weight:700; line-height:1.25; }
.eb-acc-tile__sub{ font-size:12.5px; color:var(--eb-ink-faint); line-height:1.35; overflow-wrap:anywhere; }

.eb-acc-last{ display:flex; flex-direction:column; gap:14px; }
.eb-acc-last__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.eb-acc-last__main{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; }
.eb-acc-last__no{ font-size:24px; font-weight:700; color:var(--eb-ink-strong); text-decoration:none; }
.eb-acc-last__date{ font-size:14px; color:var(--eb-ink-faint); }
.eb-acc-last__total{ margin-left:auto; font-size:18px; color:var(--eb-ink-strong); }
.eb-acc-last .eb-acc-actions > *{ flex:1 1 auto; }

.eb-acc-empty{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:32px 22px; text-align:center; background:var(--eb-tint); border-color:transparent; }
.eb-acc-empty__icon{ width:56px; height:56px; border-radius:50%; background:var(--eb-paper); color:var(--eb-primary); display:inline-flex; align-items:center; justify-content:center; }
.eb-acc-empty__title{ margin:4px 0 0; font-size:20px; color:var(--eb-ink-strong); }
.eb-acc-empty p{ max-width:44ch; margin:0 0 6px; color:var(--eb-ink-soft); }

/* ---------- Orders: WooCommerce table shown as cards ---------- */
.woocommerce-account .woocommerce table.woocommerce-orders-table{ display:block; border:0; margin:0; border-radius:0; }
.woocommerce-account .woocommerce table.woocommerce-orders-table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody{ display:flex; flex-direction:column; gap:12px; }
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody tr{ display:grid; grid-template-columns:1fr auto; grid-template-areas:"num status" "date total" "items items" "actions actions"; gap:6px 12px; padding:18px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); }
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody th,
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody td{ display:block; padding:0; border:0; background:none; text-align:left !important; font-size:15px; line-height:1.4; }
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody th::before,
.woocommerce-account .woocommerce table.woocommerce-orders-table tbody td::before{ display:none; }
.woocommerce-orders-table__cell-order-number{ grid-area:num; }
.woocommerce-orders-table__cell-order-number a{ font-size:18px; font-weight:700; color:var(--eb-ink-strong); text-decoration:none; }
.woocommerce-orders-table__cell-order-number a:hover{ color:var(--eb-primary); }
.woocommerce-orders-table__cell-order-date{ grid-area:date; color:var(--eb-ink-faint); font-size:14px !important; }
.woocommerce-orders-table__cell-order-status{ grid-area:status; justify-self:end; }
.woocommerce-orders-table__cell-order-total{ grid-area:total; justify-self:end; color:var(--eb-ink-faint); font-size:14px !important; }
.woocommerce-orders-table__cell-order-total .amount{ color:var(--eb-ink-strong); font-size:16px; font-weight:700; }
.woocommerce-orders-table__cell-eb-items{ grid-area:items; padding-top:8px !important; }
.woocommerce-account .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{ grid-area:actions; display:flex; flex-wrap:wrap; gap:8px; padding-top:8px; }
.woocommerce-orders-table__cell-order-actions .button{ flex:1 1 auto; margin:0 !important; }
/* Status pill from the row class (the cell holds plain text). */
.woocommerce-orders-table__cell-order-status{ display:inline-flex !important; align-items:center; gap:6px; padding:4px 11px !important; border-radius:999px; background:var(--eb-cream) !important; color:var(--eb-ink-soft); font-size:13px !important; font-weight:600; white-space:nowrap; align-self:start; }
.woocommerce-orders-table__cell-order-status::before{ content:"" !important; display:block !important; float:none !important; width:7px; height:7px; border-radius:50%; background:currentColor; }
.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status{ background:var(--eb-tint) !important; color:var(--eb-success); }
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status{ background:#EAF2FD !important; color:#1E5FB4; }
.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status{ background:#FDF4E3 !important; color:#96600F; }
.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status{ background:#FDECEC !important; color:var(--eb-danger); }

.woocommerce-account .woocommerce-pagination{ display:flex; justify-content:space-between; gap:10px; margin-top:18px; }
.woocommerce-account .woocommerce-pagination .button{ min-height:44px; border:1px solid var(--eb-line); background:var(--eb-paper); color:var(--eb-ink-strong); }
.woocommerce-account .woocommerce-pagination .button:hover{ border-color:var(--eb-primary); background:var(--eb-paper); color:var(--eb-primary); }
.woocommerce-account .woocommerce-pagination .woocommerce-button--next{ margin-left:auto; }

/* Notices inside the account (empty orders list, e-mail confirmation prompt, order again). */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 16px; padding:16px 18px 16px 50px; border:0; border-radius:var(--eb-radius-card); background:var(--eb-tint); color:var(--eb-ink-strong); font-size:14.5px; line-height:1.5; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{ background:#FDECEC; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before{ content:""; top:50%; left:16px; width:22px; height:22px; transform:translateY(-50%); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center/contain no-repeat; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C62828' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16h.01'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button{ order:2; float:none; margin:0; padding:10px 16px; font-size:14px; }

/* ---------- Single order ---------- */
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type{ margin:0 0 18px; }
.eb-acc-order{ display:grid; grid-template-columns:1fr auto; gap:12px; align-items:start; padding:20px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); }
.eb-acc-order__main{ display:flex; flex-direction:column; gap:2px; }
.eb-acc-order__no{ font-size:22px; font-weight:700; line-height:1.2; color:var(--eb-ink-strong); }
.eb-acc-order__date{ font-size:14px; color:var(--eb-ink-faint); }
.eb-acc-order .eb-acc-actions{ grid-column:1 / -1; }
.eb-acc-order .eb-acc-actions > *{ flex:1 1 auto; }

.woocommerce-view-order .woocommerce-MyAccount-content h2{ margin:26px 0 12px; font-size:20px; color:var(--eb-ink-strong); }
.woocommerce-view-order .woocommerce-OrderUpdates{ list-style:none; margin:0; padding:0; }
.woocommerce-view-order .woocommerce-OrderUpdate{ margin:0 0 10px; padding:14px 16px; border-radius:var(--eb-radius-card); background:var(--eb-cream); }
.woocommerce-view-order .woocommerce-OrderUpdate-meta{ margin:0 0 4px; font-size:13px; color:var(--eb-ink-faint); }
.woocommerce-view-order .woocommerce-OrderUpdate-description p{ margin:0; }

.woocommerce-view-order .woocommerce table.woocommerce-table--order-details{ table-layout:fixed; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); border-collapse:separate; border-spacing:0; overflow:hidden; margin:0; }
.woocommerce-view-order .woocommerce table.woocommerce-table--order-details thead th.product-total{ width:34%; text-align:right; }
.woocommerce-view-order .woocommerce table.woocommerce-table--order-details th,
.woocommerce-view-order .woocommerce table.woocommerce-table--order-details td{ padding:14px 16px; border-top:1px solid var(--eb-line); vertical-align:middle; font-size:15px; }
.woocommerce-view-order .woocommerce table.woocommerce-table--order-details thead th{ border-top:0; background:var(--eb-cream); font-size:12.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--eb-ink-faint); }
.woocommerce-view-order .woocommerce table.woocommerce-table--order-details td.product-name{ display:grid; grid-template-columns:56px 1fr; column-gap:12px; align-items:center; }
.woocommerce-view-order .woocommerce-table--order-details td.product-name > :not(.eb-acc-item__img){ grid-column:2; }
.eb-acc-item__img{ grid-row:1 / span 4; width:56px; height:56px; border:1px solid var(--eb-line); border-radius:12px; overflow:hidden; background:var(--eb-cream); }
.eb-acc-item__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.eb-acc-item__name a{ color:var(--eb-ink-strong); font-weight:600; text-decoration:none; }
.eb-acc-item__name a:hover{ color:var(--eb-primary); }
.woocommerce-view-order .woocommerce-table--order-details .product-quantity{ font-weight:600; color:var(--eb-ink-faint); }
.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta{ margin:4px 0 0; padding:0; list-style:none; font-size:13px; color:var(--eb-ink-faint); }
.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta p{ display:inline; margin:0; }
.woocommerce-view-order .woocommerce-table--order-details td.product-total,
.woocommerce-view-order .woocommerce-table--order-details tfoot td{ text-align:right; overflow-wrap:anywhere; }
.woocommerce-view-order .woocommerce-table--order-details tfoot td small{ display:block; font-weight:400; color:var(--eb-ink-faint); }
.woocommerce-view-order .woocommerce-table--order-details tfoot th{ font-weight:500; color:var(--eb-ink-soft); }
.woocommerce-view-order .woocommerce-table--order-details tfoot td{ font-weight:600; color:var(--eb-ink-strong); }
.woocommerce-view-order .woocommerce-customer-details{ margin-top:8px; }
.woocommerce-view-order .woocommerce-customer-details .col2-set{ display:grid; gap:14px; }
.woocommerce-view-order .woocommerce-customer-details .col2-set::before,
.woocommerce-view-order .woocommerce-customer-details .col2-set::after{ display:none; }
.woocommerce-view-order .woocommerce-customer-details .col2-set .col-1,
.woocommerce-view-order .woocommerce-customer-details .col2-set .col-2{ float:none; width:auto; }
.woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title{ margin:12px 0 10px; font-size:18px; }
.woocommerce-account .woocommerce-customer-details address{ padding:18px 20px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); font-style:normal; line-height:1.7; }
.woocommerce-account .woocommerce-customer-details address p{ margin:6px 0 0; }
.woocommerce-account .woocommerce-customer-details address p::before{ margin-right:8px; color:var(--eb-primary); }

/* ---------- Addresses ---------- */
.woocommerce-edit-address .woocommerce-MyAccount-content > p:first-of-type{ margin:0 0 16px; color:var(--eb-ink-soft); }
.woocommerce-account .woocommerce-Addresses{ display:grid; gap:14px; }
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after{ display:none; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address{ float:none; width:auto; margin:0; padding:20px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); }
.woocommerce-account .woocommerce-Address-title{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin:0 0 12px; }
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after{ display:none; }
.woocommerce-account .woocommerce-Address-title h2{ display:flex; align-items:center; gap:10px; margin:0; font-size:19px; color:var(--eb-ink-strong); }
.woocommerce-account .woocommerce-Address-title h2::before{ content:""; flex:0 0 36px; width:36px; height:36px; border-radius:10px; background:var(--eb-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/20px no-repeat; }
.woocommerce-account .woocommerce-Address-title .edit{ float:none; display:inline-flex; align-items:center; min-height:38px; padding:0 14px; border:1px solid var(--eb-line); border-radius:999px; color:var(--eb-primary); font-size:14px; font-weight:600; text-decoration:none; }
.woocommerce-account .woocommerce-Address-title .edit:hover{ border-color:var(--eb-primary); background:var(--eb-tint); }
.woocommerce-account .woocommerce-Address address{ font-style:normal; line-height:1.7; color:var(--eb-ink); }

/* ---------- Forms: edit address, account details ---------- */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields{ max-width:680px; }
.woocommerce-account .woocommerce-MyAccount-content > form{ padding:20px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); max-width:680px; }
.woocommerce-account .woocommerce-MyAccount-content > form > h2,
.woocommerce-account .woocommerce-MyAccount-content > form > h3{ margin:0 0 16px; font-size:20px; color:var(--eb-ink-strong); }
.woocommerce-account .woocommerce-address-fields__field-wrapper,
.woocommerce-account form.edit-account{ display:grid; grid-template-columns:minmax(0,1fr); column-gap:16px; }
.woocommerce-account form.edit-account > .clear,
.woocommerce-account .woocommerce-address-fields__field-wrapper > .clear{ display:none; }
.woocommerce-account .woocommerce-MyAccount-content form .form-row{ float:none; width:auto; margin:0 0 14px; padding:0; }
.woocommerce-account .woocommerce-MyAccount-content form .form-row label{ display:block; margin:0 0 6px; font-size:14px; font-weight:600; line-height:1.4; color:var(--eb-ink-strong); }
.woocommerce-account .woocommerce-MyAccount-content form .form-row .required{ color:var(--eb-danger); text-decoration:none; }
.woocommerce-account .woocommerce-MyAccount-content form .form-row .optional{ font-weight:400; color:var(--eb-ink-faint); }
.woocommerce-account .woocommerce-MyAccount-content form .form-row .input-text,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select{ min-height:48px; padding:12px 14px; border:1px solid var(--eb-line); border-radius:var(--eb-radius); background:var(--eb-paper); font-size:16px; }
.woocommerce-account .woocommerce-MyAccount-content form .form-row .input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select:focus{ border-color:var(--eb-primary); box-shadow:0 0 0 1px var(--eb-primary); outline:0; }
.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single{ height:48px; border:1px solid var(--eb-line); border-radius:var(--eb-radius); }
.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__rendered{ line-height:46px; padding-left:14px; }
.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__arrow{ height:46px; right:8px; }
.woocommerce-account .woocommerce-MyAccount-content form .form-row span em,
.woocommerce-account #account_display_name_description{ display:block; margin-top:6px; font-size:13px; font-style:normal; color:var(--eb-ink-faint); }
.woocommerce-account form.edit-account fieldset{ grid-column:1 / -1; margin:8px 0 16px; padding:18px 18px 4px; border:0; border-radius:var(--eb-radius-card); background:var(--eb-cream); }
.woocommerce-account form.edit-account fieldset legend{ float:left; width:100%; margin:0 0 12px; padding:0; font-size:17px; font-weight:700; color:var(--eb-ink-strong); }
.woocommerce-account form.edit-account fieldset legend + *{ clear:both; }
.woocommerce-account .woocommerce-MyAccount-content form .button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content form button.button{ width:100%; min-height:50px; margin-top:4px; background:var(--eb-primary); font-size:16px; }
.woocommerce-account .woocommerce-MyAccount-content form .button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content form button.button:hover{ background:var(--eb-primary-soft); }
.woocommerce-account form.edit-account > p:last-of-type{ grid-column:1 / -1; margin:0; }
.woocommerce-account .woocommerce-address-fields > p:last-child{ margin:4px 0 0; }

/* ---------- Logged out: login (register, lost password) like the login popup ---------- */
.woocommerce-account:not(.logged-in) .page-content > .woocommerce{ max-width:460px; margin:32px auto var(--eb-section); }
.eb-acc-auth{ padding:28px 22px 24px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); background:var(--eb-paper); box-shadow:var(--eb-shadow); text-align:center; }
.eb-acc-auth__icon{ width:52px; height:52px; margin:0 auto 10px; border-radius:50%; background:var(--eb-tint); color:var(--eb-primary); display:flex; align-items:center; justify-content:center; }
.eb-acc-auth h2{ margin:0 0 4px; font-size:24px; color:var(--eb-ink-strong); text-align:center; }
.eb-acc-auth__sub{ margin:0 0 18px; font-size:14px; line-height:1.5; color:var(--eb-ink-faint); text-align:center; }
.woocommerce-account .eb-acc-auth form.login,
.woocommerce-account .eb-acc-auth form.register{ margin:0; padding:0; border:0; border-radius:0; text-align:left; }
.woocommerce-account .eb-acc-auth .col2-set{ display:grid; gap:28px; width:auto; }
.woocommerce-account .eb-acc-auth .col2-set::before,
.woocommerce-account .eb-acc-auth .col2-set::after{ display:none; }
.woocommerce-account .eb-acc-auth .col2-set .col-1,
.woocommerce-account .eb-acc-auth .col2-set .col-2{ float:none; width:auto; }
.woocommerce-account .eb-acc-auth .col2-set .col-2{ padding-top:24px; border-top:1px solid var(--eb-line); }
.woocommerce-account .woocommerce form.login .form-row,
.woocommerce-account .woocommerce form.register .form-row,
.woocommerce-account .woocommerce form.lost_reset_password .form-row{ float:none; width:auto; margin:0 0 12px; padding:0; }
.woocommerce-account .woocommerce form.login label,
.woocommerce-account .woocommerce form.register label,
.woocommerce-account .woocommerce form.lost_reset_password label{ display:block; margin:0 0 6px; font-size:14px; font-weight:600; line-height:1.4; color:var(--eb-ink-strong); }
.woocommerce-account .woocommerce form .form-row .required{ color:var(--eb-danger); text-decoration:none; }
.woocommerce-account .woocommerce form .form-row input.input-text{ min-height:48px; padding:12px 14px; border:1px solid var(--eb-line); border-radius:var(--eb-radius); font-size:16px; }
.woocommerce-account .woocommerce form .form-row input.input-text:focus{ border-color:var(--eb-primary); outline:0; box-shadow:0 0 0 1px var(--eb-primary); }
.woocommerce-account .woocommerce form.login .woocommerce-form-login__rememberme{ display:inline-flex; align-items:center; gap:8px; margin:2px 0 12px; font-weight:400; }
.woocommerce-account .woocommerce form.login .woocommerce-form-login__submit,
.woocommerce-account .woocommerce form.register .woocommerce-form-register__submit,
.woocommerce-account .woocommerce form.lost_reset_password .button{ float:none; width:100%; min-height:50px; margin:0; border-radius:var(--eb-radius); background:var(--eb-primary); font-size:16px; font-weight:700; }
.woocommerce-account .woocommerce form.login .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce form.register .woocommerce-form-register__submit:hover,
.woocommerce-account .woocommerce form.lost_reset_password .button:hover{ background:var(--eb-primary-soft); }
.woocommerce-account .woocommerce form.login .lost_password{ margin:12px 0 0; font-size:14px; text-align:center; }
.woocommerce-account .woocommerce form.lost_reset_password{ padding:24px 22px; border:1px solid var(--eb-line); border-radius:var(--eb-radius-l); box-shadow:var(--eb-shadow); }
.woocommerce-account .woocommerce form.lost_reset_password > p:first-child{ color:var(--eb-ink-soft); }
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper .woocommerce-error{ border-radius:var(--eb-radius-card); }
/* "Send me a login link" (Account\MagicLink), same look as in the login popup. */
.eb-login-link{ margin-top:16px; text-align:center; }
.eb-login-link__or{ display:flex; align-items:center; gap:12px; margin:0 0 12px; font-size:13px; color:var(--eb-ink-faint); }
.eb-login-link__or::before, .eb-login-link__or::after{ content:""; flex:1; height:1px; background:var(--eb-line); }
.eb-login-link__btn{ width:100%; min-height:46px; border:1.5px solid var(--eb-accent); border-radius:var(--eb-radius); background:var(--eb-paper); color:var(--eb-primary); font-weight:600; font-size:15px; }
.eb-login-link__btn:hover{ background:var(--eb-tint); }
.eb-login-link__btn:disabled{ opacity:.6; }
.eb-login-link__msg{ margin:10px 0 0; padding:10px 12px; border-radius:var(--eb-radius-s); background:var(--eb-tint); font-size:13.5px; text-align:left; color:var(--eb-ink-strong); }
.eb-login-link__msg.is-error{ background:#FDECEC; color:var(--eb-danger); }

/* ---------- Wider screens ---------- */
@media (min-width:600px){
	.eb-acc-tile{ flex-direction:row; flex-wrap:wrap; align-items:center; column-gap:12px; padding:16px; }
	.eb-acc-tile__icon{ margin:0; }
	.eb-acc-tile__title{ flex:1 1 0; }
	.eb-acc-tile__sub{ flex:1 1 100%; }
	.eb-acc-last .eb-acc-actions > *,
	.eb-acc-order .eb-acc-actions > *{ flex:0 0 auto; }
	.woocommerce-account .woocommerce-Addresses,
	.woocommerce-view-order .woocommerce-customer-details .col2-set{ grid-template-columns:repeat(2,minmax(0,1fr)); }
	.woocommerce-account .woocommerce-address-fields__field-wrapper,
	.woocommerce-account form.edit-account{ grid-template-columns:repeat(2,minmax(0,1fr)); }
	.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row,
	.woocommerce-account form.edit-account > *{ grid-column:1 / -1; }
	.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first,
	.woocommerce-account form.edit-account > .form-row-first{ grid-column:1; }
	.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last,
	.woocommerce-account form.edit-account > .form-row-last{ grid-column:2; }
	.woocommerce-account .woocommerce-MyAccount-content > form{ padding:26px 28px; }
	.woocommerce-account .woocommerce-MyAccount-content form .button[type="submit"],
	.woocommerce-account .woocommerce-MyAccount-content form button.button{ width:auto; padding:0 28px; }
	.eb-acc-auth{ padding:32px 32px 26px; }
}
@media (min-width:900px){
	.woocommerce-account .page-content > .woocommerce{ margin-top:40px; }
	.woocommerce-account .woocommerce-MyAccount-navigation{ margin:0 0 26px; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul{ flex-wrap:wrap; padding:0; overflow:visible; }
	.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{ margin-left:auto; }
	.woocommerce-account .woocommerce table.woocommerce-orders-table tbody tr{ grid-template-areas:"num status" "date total" "items actions"; gap:4px 18px; padding:20px 22px; }
	.woocommerce-orders-table__cell-eb-items{ padding-top:10px !important; }
	.woocommerce-account .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{ align-self:end; }
	.woocommerce-account .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{ justify-content:flex-end; padding-top:0; }
	.woocommerce-orders-table__cell-order-actions .button{ flex:0 0 auto; }
	.eb-acc-order{ grid-template-columns:1fr auto auto; align-items:center; gap:16px; padding:22px 24px; }
	.eb-acc-order .eb-acc-actions{ grid-column:auto; grid-row:1; grid-column-start:3; }
	.eb-acc-order .eb-acc-status{ grid-row:1; grid-column:2; }
	.woocommerce-account:not(.logged-in) .woocommerce:has(.col2-set){ max-width:900px; }
	.woocommerce-account .eb-acc-auth .col2-set{ grid-template-columns:1fr 1fr; gap:36px; }
	.woocommerce-account .eb-acc-auth .col2-set .col-2{ padding:0 0 0 36px; border-top:0; border-left:1px solid var(--eb-line); }
}

/* Order received */
.woocommerce-order .woocommerce-table{ border-radius:var(--eb-radius); overflow:hidden; border-color:var(--eb-line); }
.woocommerce-order{ max-width:860px; margin:24px auto 56px; }
.woocommerce-order .woocommerce-notice--success{ font-size:28px; font-weight:700; color:var(--eb-primary); text-align:center; margin:12px 0 26px; }
.woocommerce-order ul.order_details{ display:flex; flex-wrap:wrap; gap:0; padding:0; margin:0 0 30px; border:1px solid var(--eb-line); border-radius:18px; overflow:hidden; }
.woocommerce-order ul.order_details li{ flex:1 1 160px; margin:0; padding:16px 18px; border-right:1px solid var(--eb-line); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--eb-ink-faint); }
.woocommerce-order ul.order_details li strong{ display:block; margin-top:6px; font-size:15px; text-transform:none; letter-spacing:0; color:var(--eb-ink); }
.woocommerce-order ul.order_details li:last-child{ border-right:0; }

/* Thank-you page: "your account is ready" (Account\AutoAccount) */
.eb-ty-account{ display:flex; flex-direction:column; gap:4px; margin:0 0 24px; padding:16px 18px 16px 52px; position:relative; border-radius:var(--eb-radius-card); background:var(--eb-tint); font-size:14.5px; line-height:1.5; color:var(--eb-ink-soft); }
.eb-ty-account::before{ content:""; position:absolute; left:16px; top:17px; width:22px; height:22px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.eb-ty-account strong{ color:var(--eb-ink-strong); font-size:16px; }
