.hid-tf {
	--hid-tf-bg: #fbfcfd;
	--hid-tf-text: #17202a;
	--hid-tf-muted: #5f6f80;
	--hid-tf-border: #d8e0e8;
	--hid-tf-accent: #086b63;
	--hid-tf-accent-dark: #064e49;
	--hid-tf-soft: #edf7f5;
	--hid-tf-error: #a12626;
	--hid-tf-error-soft: #fff1f1;
	box-sizing: border-box;
	max-width: 980px;
	margin: 24px auto;
	padding: 24px;
	color: var(--hid-tf-text);
	background: var(--hid-tf-bg);
	border: 1px solid var(--hid-tf-border);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.hid-tf *,
.hid-tf *::before,
.hid-tf *::after {
	box-sizing: border-box;
}

.hid-tf__header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 18px;
}

.hid-tf__eyebrow {
	margin: 0 0 4px;
	color: var(--hid-tf-accent);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.hid-tf h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0;
}

.hid-tf__badge {
	flex: 0 0 auto;
	padding: 6px 10px;
	color: var(--hid-tf-accent-dark);
	background: var(--hid-tf-soft);
	border: 1px solid #b7ded8;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.hid-tf__notice {
	margin: 14px 0;
	padding: 12px 14px;
	background: #f4f7fa;
	border: 1px solid var(--hid-tf-border);
	border-radius: 6px;
	color: var(--hid-tf-muted);
}

.hid-tf__notice--error {
	color: var(--hid-tf-error);
	background: var(--hid-tf-error-soft);
	border-color: #f0b8b8;
}

.hid-tf__form,
.hid-tf__status-form {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.hid-tf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.hid-tf__grid--address {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(72px, 0.4fr) minmax(96px, 0.5fr);
}

.hid-tf__row--full {
	display: grid;
	grid-template-columns: 1fr;
}

.hid-tf__invoice {
	display: grid;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--hid-tf-border);
	border-radius: 8px;
}

.hid-tf__invoice h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: 0;
}

.hid-tf label {
	display: grid;
	gap: 7px;
	margin: 0;
	color: var(--hid-tf-text);
	font-weight: 650;
}

.hid-tf label span {
	font-size: 13px;
	line-height: 1.25;
}

.hid-tf input,
.hid-tf select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	color: var(--hid-tf-text);
	background: #fff;
	border: 1px solid #bfcbd7;
	border-radius: 6px;
	font: inherit;
	line-height: 1.3;
}

.hid-tf input:focus,
.hid-tf select:focus {
	border-color: var(--hid-tf-accent);
	outline: 2px solid rgba(8, 107, 99, 0.18);
	outline-offset: 1px;
}

.hid-tf__check {
	display: flex !important;
	grid-template-columns: none;
	flex-direction: row;
	gap: 10px;
	align-items: flex-start;
	font-weight: 500 !important;
}

.hid-tf__check input {
	width: 18px;
	min-width: 18px;
	min-height: 18px;
	margin-top: 2px;
}

.hid-tf__actions,
.hid-tf__status-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: end;
}

.hid-tf__status-form {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--hid-tf-border);
}

.hid-tf__status-panel {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--hid-tf-border);
}

.hid-tf__status-panel summary {
	cursor: pointer;
	color: var(--hid-tf-accent-dark);
	font-weight: 750;
}

.hid-tf__hint {
	margin: 8px 0 0;
	color: var(--hid-tf-muted);
	font-size: 13px;
	line-height: 1.4;
}

.hid-tf__status-form label {
	flex: 1 1 220px;
}

.hid-tf__button {
	min-height: 44px;
	padding: 10px 16px;
	cursor: pointer;
	color: #fff;
	background: var(--hid-tf-accent);
	border: 1px solid var(--hid-tf-accent);
	border-radius: 6px;
	font: inherit;
	font-weight: 750;
	line-height: 1.2;
}

.hid-tf__button:hover,
.hid-tf__button:focus {
	background: var(--hid-tf-accent-dark);
	border-color: var(--hid-tf-accent-dark);
}

.hid-tf__button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.hid-tf__button--ghost,
.hid-tf__button--secondary {
	color: var(--hid-tf-accent-dark);
	background: #fff;
	border-color: #a7c9c5;
}

.hid-tf__button--ghost:hover,
.hid-tf__button--ghost:focus,
.hid-tf__button--secondary:hover,
.hid-tf__button--secondary:focus {
	color: #fff;
	background: var(--hid-tf-accent-dark);
	border-color: var(--hid-tf-accent-dark);
}

.hid-tf__result {
	margin-top: 18px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--hid-tf-border);
	border-left: 4px solid var(--hid-tf-accent);
	border-radius: 6px;
}

.hid-tf__result--error {
	border-left-color: var(--hid-tf-error);
	background: var(--hid-tf-error-soft);
}

.hid-tf__result strong {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
}

.hid-tf__result p {
	margin: 0 0 12px;
}

.hid-tf__summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 12px 0;
}

.hid-tf__summary div {
	padding: 10px 12px;
	background: #f7f9fb;
	border: 1px solid #e2e8ee;
	border-radius: 6px;
}

.hid-tf__summary dt {
	margin: 0 0 4px;
	color: var(--hid-tf-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.hid-tf__summary dd {
	margin: 0;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.hid-tf__link {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin-top: 4px;
	padding: 8px 12px;
	color: #fff;
	background: var(--hid-tf-accent);
	border-radius: 6px;
	font-weight: 750;
	text-decoration: none;
}

.hid-tf__link:hover,
.hid-tf__link:focus {
	color: #fff;
	background: var(--hid-tf-accent-dark);
}

.hid-tf__link--checkout {
	margin-right: 8px;
	background: #1f5fbf;
}

.hid-tf__link--checkout:hover,
.hid-tf__link--checkout:focus {
	background: #17498f;
}

.hid-tf-wc-product-button {
	margin-top: 12px;
}

.hid-tf-wc-button {
	width: 100%;
	text-align: center;
}

.hid-tf-wc-button--loop {
	margin-top: 8px;
}

.hid-tf__raw {
	margin-top: 12px;
}

.hid-tf__raw summary {
	cursor: pointer;
	color: var(--hid-tf-accent-dark);
	font-weight: 750;
}

.hid-tf__raw pre {
	max-height: 360px;
	margin: 10px 0 0;
	padding: 12px;
	overflow: auto;
	background: #101820;
	border-radius: 6px;
	color: #edf2f7;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
}

@media (max-width: 760px) {
	.hid-tf {
		margin: 16px auto;
		padding: 18px;
	}

	.hid-tf__header {
		display: grid;
	}

	.hid-tf h2 {
		font-size: 23px;
	}

	.hid-tf__grid,
	.hid-tf__grid--address,
	.hid-tf__summary {
		grid-template-columns: 1fr;
	}
}
