/* Account, cart and checkout fixes from the logged-in audit (2026-10-19). Loaded last. */

/* 1. Buttons inside the account area keep white text on ink (the content-link rule had made them ink on ink). */
html body.woocommerce-account .woocommerce-MyAccount-content a.button,
html body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button {
	background-color: var(--abq-ink) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-bottom: 0 !important;
	text-decoration: none !important;
	border-radius: 0 !important;
	min-height: 46px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 24px !important;
}
html body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
html body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button:hover {
	background-color: #333333 !important;
	color: #ffffff !important;
	border-bottom: 0 !important;
}
.woocommerce-orders-table__cell-order-actions { white-space: normal; }
.woocommerce-orders-table__cell-order-actions a.button { margin: 0 8px 8px 0 !important; }
.woocommerce-table--order-details td.product-name { overflow-wrap: anywhere; }

/* 2. The chat nudge must not cover account, cart or checkout content; keep room under the content for the launcher. */
body.woocommerce-account #abq-promo,
body.woocommerce-cart #abq-promo,
body.woocommerce-checkout #abq-promo { display: none !important; }
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce,
	body.woocommerce-cart .entry-content,
	body.woocommerce-checkout .entry-content { padding-bottom: 88px; }
}

/* 3. Checkout: floated labels must not collide with typed or saved values. */
html body .wc-block-checkout .wc-block-components-text-input.is-active input,
html body .wc-block-components-text-input.is-active input {
	padding: 20px 16px 4px !important;
}

/* 4. Log out: same voice as the other menu items, readable (muted on white = 5.3:1), 44px target. */
html body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--abq-muted) !important;
}
html body.woocommerce-account .woocommerce-MyAccount-navigation li a { min-height: 48px; }
html body.woocommerce-account .woocommerce-message a:not(.button),
html body.woocommerce-account .woocommerce-info a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }

/* 5. My Coupons is part of the account menu again (WELCOME10 and the bundle offers live there). */
html body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wt-smart-coupon { display: block !important; }
html body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wt-smart-coupon a { display: flex !important; }

/* 6. Square corners (token radius 0) on the pieces Blocksy and WooCommerce Blocks still round; badge text on gold uses ink. */
html body .ct-acount-nav,
html body .woocommerce-account address,
html body .woocommerce-notice,
html body .woocommerce-notice--success,
html body .wc-block-components-address-card,
html body .wc-block-components-radio-control-accordion-option,
html body .wc-block-components-radio-control__option-checked,
html body .wp-block-woocommerce-checkout-order-summary-block,
html body .checkout-order-summary-block-fill-wrapper,
html body .select2-selection,
html body .select2-dropdown,
html body .wc-block-components-skeleton__element { border-radius: 0 !important; }
html body .ct-dynamic-count-cart { color: var(--abq-ink) !important; }

/* 7. Tap targets at least 44px. */
html body .woocommerce-LostPassword a,
html body .lost_password a { display: inline-flex; align-items: center; min-height: 44px; }
html body .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
html body .wc-block-components-address-card__edit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
html body .ct-footer a { display: inline-flex; align-items: center; min-height: 44px; }
html body .ct-footer .ct-social-box a { justify-content: center; min-width: 44px; }

/* round-ups from the re-test */
html body address,
html body .wc-block-components-order-summary-item__quantity { border-radius: 0 !important; }
html body .wc-block-components-address-form__address_2-toggle { min-height: 44px; display: inline-flex; align-items: center; }

/* My Coupons (plugin markup): headings and empty states in the system voice. */
html body.woocommerce-account .woocommerce-MyAccount-content .wt-mycoupons h4,
html body.woocommerce-account .woocommerce-MyAccount-content .wt-used-coupons h4 {
	font-family: Georgia, serif; font-style: italic; font-weight: 300; font-size: 22px; color: var(--abq-ink);
	margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--abq-line);
}
html body.woocommerce-account .woocommerce-MyAccount-content .wt-used-coupons { margin-top: 40px; }
html body.woocommerce-account .woocommerce-MyAccount-content .wt_sc_myaccount_no_available_coupons,
html body.woocommerce-account .woocommerce-MyAccount-content .wt_sc_myaccount_no_used_coupons { color: var(--abq-muted); font-size: 14px; }

/* Orders list on phones: one card per order (number, date, status, total, then the actions in one row). */
@media (max-width: 768px) {
	html body.woocommerce-account table.woocommerce-orders-table { border: 0 !important; box-shadow: none !important; background: transparent !important; }
	html body.woocommerce-account table.woocommerce-orders-table thead { display: none; }
	html body.woocommerce-account table.woocommerce-orders-table tbody,
	html body.woocommerce-account table.woocommerce-orders-table tr,
	html body.woocommerce-account table.woocommerce-orders-table th,
	html body.woocommerce-account table.woocommerce-orders-table td { display: block; }
	html body.woocommerce-account table.woocommerce-orders-table tr.order {
		background: var(--abq-paper); border: 1px solid var(--abq-line); padding: 16px; margin: 0 0 16px;
	}
	html body.woocommerce-account table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number {
		padding: 0 0 8px !important; border: 0 !important; background: transparent !important; font-size: 20px !important;
		font-family: Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0;
	}
	html body.woocommerce-account table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number a {
		color: var(--abq-ink) !important; border-bottom: 1px solid var(--abq-line) !important; text-decoration: none !important;
	}
	html body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell {
		display: block; overflow: hidden; text-align: right !important;
		padding: 8px 0 !important; border: 0 !important; font-size: 14px !important; color: var(--abq-text);
	}
	html body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell::before {
		content: attr(data-title); float: left; text-align: left; margin-right: 16px;
		font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abq-muted);
	}
	html body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 8px; padding-top: 16px !important;
		border-top: 1px solid var(--abq-line) !important;
	}
	html body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { display: none; }
	html body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button { flex: 1 1 96px; margin: 0 !important; }
}

/* Account menu: no stone strip under the last item; guest-order notice reads left-aligned. */
html body.woocommerce-account .ct-acount-nav { background: transparent !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; }
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info { text-align: left !important; }

/* Homepage carousel arrows: square like every other control (token radius 0). */
html body .stk-block-carousel__button { border-radius: 0 !important; }
