/* TLA Authorized User Tradelines */
.tla-au {
	--au-navy: #0d1b2a;
	--au-navy-2: #16283d;
	--au-accent: #f7941d;
	--au-accent-dark: #d97d0c;
	--au-gold: #c9a84c;
	--au-ink: #1b2430;
	--au-muted: #5d6877;
	--au-line: #e3e7ee;
	--au-bg: #f6f7fa;
	--au-card: #ffffff;
	--au-ok: #1f8a5b;
	--au-radius: 14px;
	color: var(--au-ink);
	font-family: inherit;
	max-width: 1240px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	box-sizing: border-box;
}
.tla-au *, .tla-au *::before, .tla-au *::after { box-sizing: border-box; }

.tla-au-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--au-accent-dark);
	margin-bottom: 6px;
}
.tla-au-title {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
	margin: 0 0 6px;
	color: var(--au-navy);
	font-weight: 800;
}
.tla-au-sub { color: var(--au-muted); margin: 0 0 20px; font-size: 15px; }

/* Header + steps */
.tla-au-head {
	display: flex; flex-wrap: wrap; gap: 20px;
	align-items: flex-end; justify-content: space-between;
	margin-bottom: 22px;
}
.tla-au-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.tla-au-steps li {
	display: flex; align-items: center; gap: 8px;
	background: var(--au-bg); border: 1px solid var(--au-line);
	border-radius: 999px; padding: 6px 14px 6px 6px;
	font-size: 13px; font-weight: 600; color: var(--au-navy); margin: 0;
}
.tla-au-steps b {
	width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--au-navy); color: #fff; font-size: 12px;
}

/* Filters */
.tla-au-filters {
	display: grid;
	grid-template-columns: 2fr repeat(5, 1fr);
	gap: 12px;
	background: var(--au-navy);
	border-radius: var(--au-radius);
	padding: 16px;
	margin-bottom: 14px;
}
.tla-au-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tla-au-field > span { font-size: 12px; font-weight: 600; color: var(--au-muted); letter-spacing: .02em; }
.tla-au-filters .tla-au-field > span { color: rgba(255,255,255,.7); }
.tla-au input:not([type=checkbox]), .tla-au select {
	width: 100%; height: 44px; padding: 0 12px;
	border: 1px solid var(--au-line); border-radius: 10px;
	background: #fff; color: var(--au-ink); font: inherit; font-size: 15px;
	transition: border-color .15s, box-shadow .15s;
}
.tla-au input:focus, .tla-au select:focus {
	outline: none; border-color: var(--au-accent);
	box-shadow: 0 0 0 3px rgba(247,148,29,.25);
}
.tla-au-resultline { font-size: 14px; color: var(--au-muted); margin: 0 0 14px; }

/* Grid + cards */
.tla-au-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 18px;
}
.tla-au-card {
	display: flex; flex-direction: column;
	background: var(--au-card);
	border: 1px solid var(--au-line);
	border-radius: var(--au-radius);
	padding: 18px;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tla-au-card:hover {
	transform: translateY(-3px);
	border-color: rgba(247,148,29,.55);
	box-shadow: 0 14px 30px -18px rgba(13,27,42,.45);
}
.tla-au-card-top { display: flex; gap: 12px; align-items: center; }
.tla-au-card-bank h3 { margin: 0; font-size: 17px; line-height: 1.2; color: var(--au-navy); font-weight: 700; }
.tla-au-card-bank span { font-size: 12px; color: var(--au-muted); }

.tla-au-mono {
	flex: none; width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center;
	font-weight: 800; font-size: 15px; letter-spacing: .02em;
	color: #fff; background: var(--au-navy);
}
.tla-au-mono[data-lender^="Capital"]  { background: #004977; }
.tla-au-mono[data-lender^="US Bank"]  { background: #0c2074; }
.tla-au-mono[data-lender^="Barclays"] { background: #00aeef; }
.tla-au-mono[data-lender^="Citi"]     { background: #056dae; }
.tla-au-mono[data-lender^="Elan"]     { background: #4b2e83; }
.tla-au-mono[data-lender^="Discover"] { background: #ff6000; }
.tla-au-mono[data-lender^="BofA"], .tla-au-mono[data-lender^="Bank of"] { background: #c41230; }
.tla-au-mono[data-lender^="Chase"]    { background: #117aca; }
.tla-au-mono[data-lender^="PNC"]      { background: #ef5a24; }
.tla-au-mono[data-lender^="Alliant"]  { background: #00563f; }
.tla-au-mono[data-lender^="TD"]       { background: #2a8a2e; }

.tla-au-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tla-au-badge {
	font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
	background: #eef2f8; color: var(--au-navy);
}
.tla-au-badge--gold { background: rgba(201,168,76,.18); color: #7a5f17; }
.tla-au-badge--warn { background: #fdecea; color: #b42318; }

.tla-au-kpis {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
	margin: 14px 0 0; padding: 12px; border-radius: 10px; background: var(--au-bg);
}
.tla-au-kpis div { margin: 0; }
.tla-au-kpis dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--au-muted); margin: 0; }
.tla-au-kpis dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; color: var(--au-navy); }

.tla-au-meta { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13.5px; }
.tla-au-meta li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--au-line); margin: 0; }
.tla-au-meta li:last-child { border-bottom: 0; }
.tla-au-meta span { color: var(--au-muted); }
.tla-au-meta b { color: var(--au-ink); font-weight: 600; }

.tla-au-card-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 16px;
}
.tla-au-price b { display: block; font-size: 24px; line-height: 1; color: var(--au-navy); font-weight: 800; }
.tla-au-price span { font-size: 12px; color: var(--au-muted); }

/* Buttons */
.tla-au-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 44px; padding: 0 22px; border-radius: 10px;
	font: inherit; font-weight: 700; font-size: 15px;
	text-decoration: none !important; cursor: pointer; border: 2px solid transparent;
	transition: background .15s, color .15s, transform .1s;
}
.tla-au-btn:active { transform: translateY(1px); }
.tla-au-btn--primary { background: var(--au-accent); color: #fff !important; }
.tla-au-btn--primary:hover { background: var(--au-accent-dark); }
.tla-au-btn--ghost { background: transparent; color: var(--au-navy); border-color: var(--au-navy); }
.tla-au-btn--ghost:hover { background: var(--au-navy); color: #fff; }
.tla-au-btn--block { width: 100%; height: 54px; font-size: 16px; margin-top: 8px; }

.tla-au-more { text-align: center; margin-top: 26px; }
.tla-au-more[hidden] { display: none; }
.tla-au-empty {
	grid-column: 1 / -1; text-align: center; padding: 40px 16px;
	border: 1px dashed var(--au-line); border-radius: var(--au-radius);
	display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.tla-au-fine { font-size: 12.5px; color: var(--au-muted); margin: 22px 0 0; text-align: center; }
.tla-au-notice {
	padding: 14px 16px; border-radius: 10px; background: #fff7ec;
	border: 1px solid #f5d2a6; color: var(--au-ink); margin: 12px 0;
}
.tla-au-notice--error { background: #fdecea; border-color: #f4b9b2; }
.tla-au-notice ul { margin: 0; padding-left: 18px; }

/* Order page */
.tla-au-back { display: inline-block; margin-bottom: 16px; color: var(--au-navy); font-weight: 600; text-decoration: none; }
.tla-au-back:hover { color: var(--au-accent-dark); }
.tla-au-order-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }

.tla-au-summary {
	position: sticky; top: 24px;
	background: var(--au-navy); color: #fff;
	border-radius: var(--au-radius); padding: 24px;
}
.tla-au-summary .tla-au-eyebrow { color: var(--au-accent); }
.tla-au-summary-bank { display: flex; gap: 12px; align-items: center; margin: 6px 0 18px; }
.tla-au-summary-bank h3 { margin: 0; color: #fff; font-size: 20px; }
.tla-au-summary-bank span { color: rgba(255,255,255,.65); font-size: 13px; }
.tla-au-summary .tla-au-mono { box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.tla-au-specs { margin: 0; }
.tla-au-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); margin: 0; }
.tla-au-specs dt { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }
.tla-au-specs dd { margin: 0; font-weight: 600; text-align: right; font-size: 14px; }
.tla-au-price-table { margin-top: 18px; background: var(--au-navy-2); border-radius: 10px; padding: 14px; }
.tla-au-price-table div { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.tla-au-price-total { border-top: 1px solid rgba(255,255,255,.15); margin-top: 8px; padding-top: 10px !important; font-size: 18px !important; font-weight: 800; }
.tla-au-price-total span:last-child { color: var(--au-accent); }
.tla-au-assure { list-style: none; padding: 0; margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.8); }
.tla-au-assure li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.tla-au-assure li::before { content: "✓"; position: absolute; left: 0; color: var(--au-accent); font-weight: 800; }

.tla-au-form {
	background: #fff; border: 1px solid var(--au-line);
	border-radius: var(--au-radius); padding: 28px;
	display: flex; flex-direction: column; gap: 14px;
}
.tla-au-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tla-au-form .tla-au-field > span { color: var(--au-navy); }
.tla-au-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--au-muted); line-height: 1.5; margin: 4px 0 0; }
.tla-au-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--au-accent); flex: none; }
.tla-au-form .tla-au-fine { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
	.tla-au-filters { grid-template-columns: repeat(3, 1fr); }
	.tla-au-field--search { grid-column: 1 / -1; }
	.tla-au-order-grid { grid-template-columns: 1fr; }
	.tla-au-summary { position: static; }
}
@media (max-width: 640px) {
	.tla-au-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
	.tla-au-row { grid-template-columns: 1fr; }
	.tla-au-form { padding: 20px; }
	.tla-au-steps { display: none; }
}

/* Bank card artwork */
.tla-au-logo {
	flex: none; display: block;
	width: 76px; aspect-ratio: 300 / 169;
	border-radius: 7px; overflow: hidden;
	background: #eef2f8;
	box-shadow: 0 4px 10px -4px rgba(13,27,42,.45), 0 0 0 1px rgba(13,27,42,.06);
	transition: transform .18s;
}
.tla-au-logo img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; border-radius: 0; }
.tla-au-card:hover .tla-au-logo { transform: rotate(-3deg) scale(1.04); }
.tla-au-logo--lg { width: 110px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }

/* ===== v1.2: theme-proof buttons ===== */
.tla-au a.tla-au-btn--primary,
.tla-au button.tla-au-btn--primary,
.tla-au .tla-au-btn--primary[type="submit"] {
	background: var(--au-accent) !important;
	background-color: var(--au-accent) !important;
	color: #fff !important;
	border: 2px solid var(--au-accent) !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 22px -12px rgba(247,148,29,.9);
	text-transform: none; letter-spacing: 0;
}
.tla-au a.tla-au-btn--primary:hover, .tla-au a.tla-au-btn--primary:focus,
.tla-au button.tla-au-btn--primary:hover, .tla-au button.tla-au-btn--primary:focus {
	background: var(--au-accent-dark) !important;
	background-color: var(--au-accent-dark) !important;
	border-color: var(--au-accent-dark) !important;
	color: #fff !important;
}
.tla-au button.tla-au-btn--ghost { background: transparent !important; color: var(--au-navy) !important; border: 2px solid var(--au-navy) !important; }
.tla-au button.tla-au-btn--ghost:hover { background: var(--au-navy) !important; color: #fff !important; }

/* ===== Hide theme page title on AU pages ===== */
body.tla-au-page .page-header,
body.tla-au-page .entry-title,
body.tla-au-page h1.elementor-heading-title.elementor-size-default:first-child { display: none !important; }

/* ===== Hero (order + checkout) ===== */
.tla-au-hero {
	--au-navy: #0d1b2a; --au-accent: #f7941d;
	position: relative;
	color: #fff;
	padding: 34px 0 30px;
	margin: 0 0 30px;
	/* full-bleed background without horizontal scroll */
	border-image: linear-gradient(120deg, #0d1b2a 0%, #13263b 60%, #1b3350 100%) fill 0 / / 0 100vw;
	font-family: inherit;
}
.tla-au .tla-au-hero-inner { padding: 0; }
.tla-au-hero-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.tla-au-hero-back {
	display: inline-flex; gap: 6px; align-items: center;
	color: rgba(255,255,255,.75) !important; font-size: 14px; font-weight: 600;
	text-decoration: none !important; margin-bottom: 18px;
}
.tla-au-hero-back:hover { color: #f7941d !important; }
.tla-au-hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.tla-au-hero-copy { max-width: 620px; }
.tla-au-hero .tla-au-eyebrow { color: #f7941d; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.tla-au-hero-title { color: #fff !important; font-size: clamp(28px, 3.6vw, 42px) !important; line-height: 1.1 !important; font-weight: 800 !important; margin: 0 0 10px !important; }
.tla-au-hero p { color: rgba(255,255,255,.75); margin: 0; font-size: 16px; line-height: 1.55; }

.tla-au-progress { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; counter-reset: none; }
.tla-au-progress li {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
	width: 120px; margin: 0; text-align: center; font-size: 12.5px; font-weight: 600;
	color: rgba(255,255,255,.55);
}
.tla-au-progress li::before {
	content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px);
	height: 2px; background: rgba(255,255,255,.18);
}
.tla-au-progress li:first-child::before { display: none; }
.tla-au-progress li.is-done::before, .tla-au-progress li.is-active::before { background: #f7941d; }
.tla-au-progress b {
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; font-size: 14px;
	border: 2px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); background: transparent;
}
.tla-au-progress li.is-done { color: rgba(255,255,255,.85); }
.tla-au-progress li.is-done b { background: #f7941d; border-color: #f7941d; color: #fff; }
.tla-au-progress li.is-active { color: #fff; }
.tla-au-progress li.is-active b { border-color: #f7941d; color: #fff; background: rgba(247,148,29,.18); box-shadow: 0 0 0 5px rgba(247,148,29,.15); }

/* Order page tweaks */
.tla-au-order { padding-top: 0; }
.tla-au-order .tla-au-hero { margin-bottom: 30px; }
.tla-au-order-grid { grid-template-columns: 400px 1fr; }
.tla-au-summary { box-shadow: 0 24px 50px -30px rgba(13,27,42,.7); }
.tla-au-form { box-shadow: 0 24px 50px -36px rgba(13,27,42,.45); }
.tla-au-form .tla-au-title { font-size: 26px; }

/* ===== Checkout ===== */
.tla-au-co { padding-top: 0; padding-bottom: 6px; }
.tla-au-co-lines { display: grid; gap: 14px; }
.tla-au-co-line {
	display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center;
	background: #fff; border: 1px solid var(--au-line); border-left: 4px solid var(--au-accent);
	border-radius: var(--au-radius); padding: 18px 22px;
	box-shadow: 0 18px 40px -32px rgba(13,27,42,.6);
}
.tla-au-co-main h3 { margin: 0 0 8px; font-size: 19px; color: var(--au-navy); font-weight: 800; }
.tla-au-co-main h3 small { display: block; font-size: 12px; font-weight: 600; color: var(--au-muted); letter-spacing: .02em; margin-top: 2px; }
.tla-au-co-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tla-au-co-specs li { margin: 0; }
.tla-au-co-specs span { color: var(--au-muted); margin-right: 5px; }
.tla-au-co-specs b { color: var(--au-ink); }
.tla-au-co-user, .tla-au-co-price { display: flex; flex-direction: column; gap: 2px; }
.tla-au-co-user { padding-left: 22px; border-left: 1px solid var(--au-line); }
.tla-au-co-user span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--au-muted); }
.tla-au-co-user b { font-size: 15px; color: var(--au-navy); }
.tla-au-co-user small, .tla-au-co-price small { font-size: 12px; color: var(--au-muted); }
.tla-au-co-price { text-align: right; }
.tla-au-co-price b { font-size: 24px; color: var(--au-navy); font-weight: 800; line-height: 1; }
.tla-au-co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; margin: 16px 0 6px; padding: 0; font-size: 13px; color: var(--au-muted); }
.tla-au-co-trust li { margin: 0; position: relative; padding-left: 20px; }
.tla-au-co-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--au-accent); font-weight: 800; }
.tla-au-co .tla-au-logo--lg { box-shadow: 0 10px 20px -8px rgba(13,27,42,.55); }

.tla-au-co-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* Block checkout skin */
body.tla-au-checkout .wc-block-checkout { --au-accent: #f7941d; }
body.tla-au-checkout .wc-block-components-checkout-step__title,
body.tla-au-checkout .wc-block-components-title { color: #0d1b2a; font-weight: 800; }
body.tla-au-checkout .wc-block-components-checkout-step__heading { border-bottom: 0; }
body.tla-au-checkout .wc-block-components-checkout-step__container { position: relative; }
body.tla-au-checkout .wc-block-components-text-input input:focus,
body.tla-au-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.tla-au-checkout .wc-blocks-components-select__select:focus {
	border-color: #f7941d !important; box-shadow: 0 0 0 2px rgba(247,148,29,.3) !important; outline: none;
}
body.tla-au-checkout .wc-block-components-checkout-place-order-button,
body.tla-au-checkout .wc-block-components-checkout-place-order-button:not(:disabled) {
	background: #f7941d !important; color: #fff !important; border: 0 !important;
	border-radius: 10px !important; min-height: 56px; font-weight: 800 !important; font-size: 17px !important;
	box-shadow: 0 12px 26px -14px rgba(247,148,29,.95);
}
body.tla-au-checkout .wc-block-components-checkout-place-order-button:hover { background: #d97d0c !important; }
body.tla-au-checkout .wc-block-checkout__sidebar {
	background: #0d1b2a0a; border: 1px solid #e3e7ee; border-radius: 14px; padding: 6px 18px 12px !important;
}
body.tla-au-checkout .wc-block-components-order-summary-item__image { width: 84px !important; }
body.tla-au-checkout .tla-au-row-card .wc-block-components-order-summary-item__image img {
	width: 84px !important; max-width: 84px !important; height: auto !important; aspect-ratio: 300 / 169; object-fit: cover;
	border-radius: 6px; box-shadow: 0 6px 12px -6px rgba(13,27,42,.6);
}
body.tla-au-checkout .tla-au-row-card .wc-block-components-order-summary-item__quantity { display: none; }
body.tla-au-checkout .wc-block-components-totals-item__value,
body.tla-au-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: #0d1b2a; }
body.tla-au-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: #d97d0c; font-weight: 800; }
body.tla-au-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { display: none; }
img.tla-au-thumb { width: 84px; height: auto; border-radius: 6px; }

@media (max-width: 900px) {
	.tla-au-co-line { grid-template-columns: auto 1fr; }
	.tla-au-co-user { padding-left: 0; border-left: 0; }
	.tla-au-co-price { text-align: left; }
	.tla-au-progress li { width: 96px; font-size: 11.5px; }
}
@media (max-width: 1080px) { .tla-au-order-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.tla-au-hero { padding: 24px 0; }
	.tla-au-progress { width: 100%; justify-content: space-between; }
	.tla-au-progress li { width: 33%; }
	.tla-au-co-line { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
}

/* ===== Mobile gutters & overflow (TLA) ===== */
.tla-au-order-grid > *, .tla-au-form > *, .tla-au-summary > * { min-width: 0; }
.tla-au-form input, .tla-au-form select { max-width: 100%; }
@media (max-width: 1080px) { .tla-au-order-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
	.tla-au { padding-left: 6px; padding-right: 6px; }
	.tla-au-order-grid { gap: 18px; }
	.tla-au-summary { padding: 20px 18px; }
	.tla-au-form { padding: 22px 18px; }
}
