/**
 * GST Calculators AU - styles. v1.0.2
 * Flex-based input prefix (no overlap).
 */

:root {
	--gstcalc-primary:        var(--gp-color-1, #0B3D91);
	--gstcalc-primary-dark:   var(--gp-color-2, #072868);
	--gstcalc-secondary:      var(--gp-color-3, #1565C0);
	--gstcalc-surface:        var(--gp-color-4, #E8F1FA);
	--gstcalc-surface-soft:   var(--gp-color-5, #F7F9FC);
	--gstcalc-cta:            var(--gp-color-6, #FF6B35);
	--gstcalc-cta-dark:       var(--gp-color-7, #E0541F);
	--gstcalc-text:           var(--gp-color-9, #1A2B3C);
	--gstcalc-muted:          var(--gp-color-10, #5A6A7A);
	--gstcalc-border:         var(--gp-color-11, #D6DEE8);
	--gstcalc-white:          #FFFFFF;
	--gstcalc-radius:         8px;
	--gstcalc-radius-sm:      6px;
	--gstcalc-shadow:         0 1px 2px rgba(11, 61, 145, 0.04), 0 4px 12px rgba(11, 61, 145, 0.06);
}

.gstcalc-au {
	background: var(--gstcalc-surface-soft);
	border: 1px solid var(--gstcalc-border);
	border-radius: var(--gstcalc-radius);
	padding: 28px;
	margin: 24px 0;
	font-family: inherit;
	color: var(--gstcalc-text);
	box-shadow: var(--gstcalc-shadow);
	max-width: 100%;
	box-sizing: border-box;
}
.gstcalc-au *, .gstcalc-au *::before, .gstcalc-au *::after { box-sizing: border-box; }

.gstcalc-au__heading {
	margin: 0 0 14px 0;
	font-size: 28px; line-height: 1.3; font-weight: 700;
	color: var(--gstcalc-primary);
}
@media (max-width: 768px) {
	.gstcalc-au { padding: 20px; }
	.gstcalc-au__heading { font-size: 22px; }
}

.gstcalc-au__trust {
	display: flex; flex-wrap: wrap; gap: 14px;
	font-size: 13px; color: var(--gstcalc-muted);
	margin-bottom: 18px; padding: 10px 14px;
	background: var(--gstcalc-surface);
	border-radius: var(--gstcalc-radius-sm);
}
.gstcalc-au__trust span { white-space: nowrap; }

.gstcalc-au__form { display: flex; flex-direction: column; gap: 16px; }
.gstcalc-au__field { display: flex; flex-direction: column; gap: 6px; }
.gstcalc-au__label { font-size: 14px; font-weight: 600; color: var(--gstcalc-text); }

.gstcalc-au__input-wrap {
	display: flex; align-items: stretch;
	background: var(--gstcalc-white);
	border: 2px solid var(--gstcalc-border);
	border-radius: var(--gstcalc-radius-sm);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gstcalc-au__input-wrap:focus-within {
	border-color: var(--gstcalc-secondary);
	box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.gstcalc-au__prefix {
	display: flex; align-items: center; justify-content: center;
	min-width: 36px; padding: 0 4px 0 14px;
	font-weight: 700; color: var(--gstcalc-muted);
	font-size: 18px; line-height: 1;
	user-select: none; pointer-events: none;
	background: transparent; flex-shrink: 0;
}

.gstcalc-au .gstcalc-au__input {
	flex: 1; width: 100%; min-width: 0;
	height: 48px; font-size: 18px; font-family: inherit;
	color: var(--gstcalc-text);
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 16px 0 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none; appearance: none;
	outline: none !important;
}
.gstcalc-au .gstcalc-au__input:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.gstcalc-au .gstcalc-au__select {
	width: 100%; height: 52px;
	font-size: 18px; font-family: inherit;
	color: var(--gstcalc-text);
	background-color: var(--gstcalc-white);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235A6A7A' d='M6 8L0 0h12z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
	border: 2px solid var(--gstcalc-border);
	border-radius: var(--gstcalc-radius-sm);
	padding: 0 40px 0 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none; appearance: none;
	cursor: pointer;
}
.gstcalc-au .gstcalc-au__select:focus {
	outline: none;
	border-color: var(--gstcalc-secondary);
	box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.gstcalc-au__help { font-size: 13px; color: var(--gstcalc-muted); line-height: 1.5; }

.gstcalc-au__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 28px;
	font-size: 16px; font-weight: 700; letter-spacing: 0.2px;
	font-family: inherit; color: var(--gstcalc-white);
	background: var(--gstcalc-cta); border: none;
	border-radius: var(--gstcalc-radius-sm);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
	-webkit-appearance: none; appearance: none;
	width: auto; align-self: flex-start;
}
@media (max-width: 600px) {
	.gstcalc-au__btn { width: 100%; align-self: stretch; }
}
.gstcalc-au__btn:hover, .gstcalc-au__btn:focus-visible {
	background: var(--gstcalc-cta-dark);
	outline: none;
}
.gstcalc-au__btn:active { transform: translateY(1px); }

.gstcalc-au__result {
	display: block; margin-top: 22px; padding: 20px 22px;
	background: var(--gstcalc-white);
	border: 1px solid var(--gstcalc-border);
	border-left: 4px solid var(--gstcalc-primary);
	border-radius: var(--gstcalc-radius-sm);
	animation: gstcalcFade 0.3s ease;
}
.gstcalc-au__result[hidden] { display: none; }
@keyframes gstcalcFade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.gstcalc-au__row {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 12px; padding: 8px 0;
	border-bottom: 1px dashed var(--gstcalc-border);
}
.gstcalc-au__row:last-child { border-bottom: none; }
.gstcalc-au__row-label { color: var(--gstcalc-muted); font-size: 15px; }
.gstcalc-au__row-value {
	font-weight: 700; font-size: 18px;
	color: var(--gstcalc-text);
	font-variant-numeric: tabular-nums;
}
.gstcalc-au__row.is-headline .gstcalc-au__row-label {
	color: var(--gstcalc-primary); font-weight: 600;
}
.gstcalc-au__row.is-headline .gstcalc-au__row-value {
	font-size: 30px; color: var(--gstcalc-primary); line-height: 1.1;
}
@media (max-width: 480px) {
	.gstcalc-au__row.is-headline .gstcalc-au__row-value { font-size: 26px; }
}

.gstcalc-au__note {
	margin: 14px 0 0 0; padding: 12px 14px;
	background: var(--gstcalc-surface);
	border-radius: var(--gstcalc-radius-sm);
	font-size: 14px; line-height: 1.55;
	color: var(--gstcalc-text);
}

.gstcalc-au__copy {
	display: inline-block; margin-top: 14px; padding: 0;
	background: none; border: none;
	color: var(--gstcalc-secondary);
	font-size: 14px; font-weight: 600;
	cursor: pointer; font-family: inherit;
	text-decoration: underline; text-underline-offset: 3px;
}
.gstcalc-au__copy:hover { color: var(--gstcalc-primary); }

.gstcalc-au__error { color: #b3261e; font-weight: 600; font-size: 15px; }

/* ---------- BAS calculator: tab toggle + panels + warnings + muted hint ---------- */
.gstcalc-au__tabs {
	display: flex;
	gap: 6px;
	margin: -2px 0 6px 0;
	border-bottom: 1px solid var(--gstcalc-border);
}
.gstcalc-au__tab {
	-webkit-appearance: none; appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--gstcalc-muted);
	font-size: 14px; font-weight: 600;
	font-family: inherit;
	padding: 8px 14px 10px;
	cursor: pointer;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.gstcalc-au__tab:hover { color: var(--gstcalc-primary); }
.gstcalc-au__tab--active {
	color: var(--gstcalc-primary);
	border-bottom-color: var(--gstcalc-primary);
}
.gstcalc-au__tab:focus-visible {
	outline: 2px solid var(--gstcalc-secondary);
	outline-offset: 2px;
	border-radius: 4px;
}
.gstcalc-au__panel { display: none; flex-direction: column; gap: 16px; }
.gstcalc-au__panel--active { display: flex; }

.gstcalc-au__hint-muted {
	padding: 9px 12px;
	background: var(--gstcalc-surface);
	border-left: 3px solid var(--gstcalc-border);
	border-radius: 4px;
	font-size: 13px;
	color: var(--gstcalc-muted);
	line-height: 1.5;
}
.gstcalc-au__hint-muted strong { color: var(--gstcalc-text); }

.gstcalc-au__warnings {
	margin: 0 0 14px 0;
	padding: 11px 14px;
	background: #fef9c3;
	border-left: 3px solid #ca8a04;
	border-radius: 4px;
	font-size: 13px;
	color: #713f12;
	line-height: 1.5;
}
.gstcalc-au__warnings ul { margin: 0; padding-left: 18px; }
.gstcalc-au__warnings li + li { margin-top: 4px; }

.gstcalc-au__note.is-refund {
	background: #ecfdf5;
	color: #065f46;
}
.gstcalc-au__note.is-zero {
	background: var(--gstcalc-surface-soft);
	color: var(--gstcalc-muted);
}

.gstcalc-au__editor-fallback {
	padding: 20px; background: var(--gstcalc-surface);
	border: 1px dashed var(--gstcalc-border);
	border-radius: var(--gstcalc-radius-sm);
	color: var(--gstcalc-muted);
	font-style: italic; text-align: center;
}
.editor-styles-wrapper .gstcalc-au { margin: 0; }

