/**
 * Tax Exemption - My Account page styles.
 *
 * Every selector is scoped under .indydtf-tax-exemption. The
 * `body.woocommerce-account #primary .woocommerce-MyAccount-content` parent
 * matches inc/indydtf-account-hubs.css so these light cards win over the
 * dark My Account shell and Astra's generic form rules without !important.
 *
 * Mobile first; tablet at 544px, desktop at 922px.
 *
 * @package Astra Child
 */

body.woocommerce-account #primary .woocommerce-MyAccount-content .indydtf-tax-exemption {
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: #202938;
}

body.woocommerce-account #primary .indydtf-tax-exemption *,
body.woocommerce-account #primary .indydtf-tax-exemption *::before,
body.woocommerce-account #primary .indydtf-tax-exemption *::after {
	box-sizing: border-box;
}

body.woocommerce-account #primary .indydtf-tax-exemption :is(h2, h3, p, dt, dd, span, strong, small, label) {
	color: #202938;
}

/* Hero + cards */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hero,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__card {
	min-width: 0;
	max-width: 100%;
	padding: 18px 16px;
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__eyebrow {
	margin: 0;
	color: #245bab;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hero h2 {
	margin: 6px 0 8px;
	font-size: 24px;
	line-height: 1.25;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hero p,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__help,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__status-message {
	margin: 0;
	max-width: 68ch;
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__card h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

/* Notices */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__notice {
	padding: 10px 12px;
	border: 1px solid #bfdbfe;
	border-radius: 7px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__notice--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #14532d;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__notice--error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #7f1d1d;
}

/* Status card */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__status {
	display: grid;
	gap: 12px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__status-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Badge colors keep >= 4.5:1 text contrast on their backgrounds. */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--pending_review { background: #fef3c7; color: #854d0e; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--approved { background: #dcfce7; color: #166534; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--rejected { background: #fee2e2; color: #991b1b; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--expired,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--revoked { background: #e2e8f0; color: #334155; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__badge--not_submitted { background: #e0ecfb; color: #1e3a8a; }

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note {
	padding: 10px 12px;
	border-left: 3px solid #ca8a04;
	border-radius: 4px;
	background: #fffbeb;
	color: #713f12;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note--approved {
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #14532d;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note--rejected,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note--revoked {
	border-left-color: #b91c1c;
	background: #fef2f2;
	color: #7f1d1d;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note--expired {
	border-left-color: #64748b;
	background: #f8fafc;
	color: #334155;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note p {
	margin: 4px 0 0;
	color: inherit;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note strong {
	color: inherit;
}

/* Details */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 12px 0 0;
	border-top: 1px solid #e2e8f0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details div {
	min-width: 0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details dt {
	margin: 0;
	color: #556070;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details dd {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

/* File block */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
	background: #f8fafc;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file-meta {
	display: grid;
	gap: 2px;
	min-width: 0;
	max-width: 100%;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file-meta span,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file-meta small {
	color: #556070;
	font-size: 13px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file-meta strong {
	font-size: 15px;
	overflow-wrap: anywhere;
}

/* Form */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__form-card {
	display: grid;
	gap: 10px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 6px 0 0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__required {
	color: #b91c1c;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field :is(input[type="text"], input[type="email"], input[type="date"], select) {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #b8c5d6;
	border-radius: 4px;
	background: #fff;
	color: #202938;
	font: inherit;
	font-size: 15px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 10px;
	border: 1px dashed #b8c5d6;
	border-radius: 4px;
	background: #f8fafc;
	color: #202938;
	font: inherit;
	font-size: 14px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field small {
	color: #556070;
	font-size: 13px;
}

body.woocommerce-account #primary .indydtf-tax-exemption :is(input, select, button, a):focus-visible {
	outline: 2px solid #245bab;
	outline-offset: 2px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Buttons */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 100%;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--primary {
	background: #245bab;
	color: #fff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--primary:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--primary:focus-visible {
	background: #19457f;
	color: #fff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--secondary {
	background: #fff;
	border-color: #245bab;
	color: #245bab;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--secondary:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--secondary:focus-visible {
	background: #245bab;
	color: #fff;
}

/* Tablet */
@media (min-width: 544px) {
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hero,
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__card {
		padding: 22px 24px;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hero h2 {
		font-size: 26px;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details,
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field--wide,
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__actions {
		grid-column: 1 / -1;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__file .indydtf-tax-exemption__button {
		flex: 0 0 auto;
	}
}

/* Desktop */
@media (min-width: 922px) {
	body.woocommerce-account #primary .woocommerce-MyAccount-content .indydtf-tax-exemption {
		gap: 20px;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__details {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * Phase 2 - staff review (scoped under .indydtf-tax-exemption--review /
 * .indydtf-tax-exemption like everything else in this file)
 * ---------------------------------------------------------------------- */

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__notice--warning {
	border-color: #fde68a;
	background: #fffbeb;
	color: #78350f;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__notice--warning a {
	color: #78350f;
	font-weight: 600;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__back {
	justify-self: start;
	padding: 6px 10px;
	border-radius: 4px;
	background: #fff;
	color: #245bab;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__back:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__back:focus-visible {
	text-decoration: underline;
}

/* Status tabs */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #dbe3ef;
	border-radius: 999px;
	background: #fff;
	color: #202938;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab:focus-visible {
	border-color: #245bab;
	color: #245bab;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab.is-active {
	border-color: #245bab;
	background: #245bab;
	color: #fff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab .indydtf-tax-exemption__tab-count {
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #eef2f7;
	color: #334155;
	font-size: 12px;
	text-align: center;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__tab.is-active .indydtf-tax-exemption__tab-count {
	background: #fff;
	color: #245bab;
}

/* Filters */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__filters {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field input[type="search"],
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #b8c5d6;
	border-radius: 4px;
	background: #fff;
	color: #202938;
	font: inherit;
	font-size: 15px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__field textarea {
	min-height: 104px;
	resize: vertical;
	line-height: 1.5;
}

body.woocommerce-account #primary .indydtf-tax-exemption :is(input, textarea)::placeholder {
	color: #64748b;
	opacity: 1;
}

body.woocommerce-account #primary .indydtf-tax-exemption textarea:focus-visible {
	outline: 2px solid #245bab;
	outline-offset: 2px;
}

/* Own light surface so it stays readable on the dark account shell. */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__result-count {
	justify-self: start;
	margin: 0;
	padding: 4px 10px;
	border-radius: 4px;
	background: #fff;
	color: #334155;
	font-size: 14px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__empty {
	color: #475569;
	text-align: center;
}

/* Submission list: stacked cards on mobile, grid table on desktop */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list {
	display: grid;
	gap: 10px;
	min-width: 0;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-head {
	display: none;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #fff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

/* Mobile labels come from data-label so each card reads without the header. */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell[data-label]::before {
	content: attr(data-label);
	flex: 0 0 96px;
	color: #556070;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell small {
	color: #556070;
	font-size: 13px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__superseded {
	padding: 2px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell--action .indydtf-tax-exemption__button {
	width: 100%;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__pagination span {
	padding: 4px 10px;
	border-radius: 4px;
	background: #fff;
	color: #334155;
	font-size: 14px;
}

/* Detail */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__subheading {
	margin: 8px 0 0;
	color: #245bab;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-note--staff {
	border-left-color: #245bab;
	background: #eff6ff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__hash {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	overflow-wrap: anywhere;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__review-form-card {
	display: grid;
	gap: 10px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__history {
	display: grid;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__history li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 14px;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__history li.is-viewing {
	border-color: #245bab;
	background: #f5f9ff;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__history a {
	min-width: 0;
	color: #245bab;
	font-weight: 600;
	overflow-wrap: anywhere;
}

body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__history small {
	color: #556070;
}

/* Review decision buttons (white text on each keeps >= 4.5:1 contrast) */
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--approve { background: #0f7a4c; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--approve:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--approve:focus-visible { background: #0b633d; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--reject { background: #b42318; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--reject:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--reject:focus-visible { background: #912018; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--revoke { background: #7c2d12; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--revoke:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--revoke:focus-visible { background: #65240e; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--expire { background: #475569; color: #fff; }
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--expire:hover,
body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__button--expire:focus-visible { background: #334155; color: #fff; }

@media (min-width: 544px) {
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell--action {
		grid-column: 1 / -1;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell--action .indydtf-tax-exemption__button {
		width: auto;
	}
}

@media (min-width: 922px) {
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list {
		gap: 0;
		border: 1px solid #dbe3ef;
		border-radius: 8px;
		background: #fff;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-head,
	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-row {
		grid-template-columns: minmax(110px, 1fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(48px, 0.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-head {
		display: grid;
		padding: 10px 16px;
		border-bottom: 1px solid #dbe3ef;
		background: #f8fafc;
		border-radius: 8px 8px 0 0;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-head span {
		color: #556070;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-row {
		padding: 12px 16px;
		border: 0;
		border-bottom: 1px solid #e2e8f0;
		border-radius: 0;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__list-row:last-child {
		border-bottom: 0;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell[data-label]::before {
		content: none;
	}

	body.woocommerce-account #primary .indydtf-tax-exemption .indydtf-tax-exemption__cell--action {
		grid-column: auto;
	}
}

/* -------------------------------------------------------------------------
 * Phase 3 - cart/checkout notice row. Loaded on cart/checkout only for
 * eligible shoppers. The table-scoped parents beat Astra/Woo totals-table
 * td rules without !important.
 * ---------------------------------------------------------------------- */
.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout td {
	padding: 10px 0;
	border-top: 0;
	background: transparent;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-checkout__notice {
	box-sizing: border-box;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #bbf7d0;
	border-left: 3px solid #16a34a;
	border-radius: 6px;
	background: #f0fdf4;
	color: #14532d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
 * Phase 3B - "Apply tax exemption to this order" choice (cart + checkout).
 * Same table-scoped parents as the Phase 3 notice above; no global selectors.
 * ---------------------------------------------------------------------- */
.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice {
	display: grid;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	text-align: left;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice-form {
	margin: 0;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: #16a34a;
	cursor: pointer;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__input:focus-visible {
	outline: 2px solid #245bab;
	outline-offset: 2px;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__label span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__help {
	margin: 0 0 0 30px;
	color: inherit;
	opacity: 0.88;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.woocommerce .cart_totals .shop_table tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__label {
	color: #202938;
}

.woocommerce .cart_totals .shop_table tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice__help {
	color: #475569;
	opacity: 1;
}

/* Declined: calm amber, visibly different from the green applied state. */
.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-checkout__notice.is-declined {
	border-color: #fde68a;
	border-left-color: #ca8a04;
	background: #fffbeb;
	color: #713f12;
}

.woocommerce :is(.woocommerce-checkout-review-order-table, .cart_totals .shop_table) tr.indydtf-tax-exemption-checkout .indydtf-tax-exemption-choice[aria-busy="true"] {
	opacity: 0.7;
}
