.tafai-order-table {
	--tafai-order-border: #ed1b24;
	--tafai-order-radius: 6px;
	color: #111;
}

.tafai-order-table__header {
	margin-bottom: 14px;
	border-top: 4px solid var(--tafai-order-border);
	border-bottom: 4px solid var(--tafai-order-border);
	padding: 2px 0;
	text-align: center;
}

.tafai-order-table__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.tafai-order-table__form {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 10px 12px;
	margin-bottom: 18px;
}

.tafai-order-table__field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	grid-column: span 3;
	margin: 0;
}

.tafai-order-table__field span {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.tafai-order-table__field.is-required span::after {
	content: " *";
	color: #ed1b24;
}

.tafai-order-table__field-input {
	width: 100%;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid #cfcfcf;
	border-radius: var(--tafai-order-radius);
	background: #fff;
	font-size: 14px;
	line-height: 1.2;
	color: #111;
}

.tafai-order-table__table-wrap {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 18px;
}

.tafai-order-table__table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fff;
}

.tafai-order-table__table th,
.tafai-order-table__table td {
	border: 1px solid var(--tafai-order-border);
	padding: 12px 10px;
	font-size: 14px;
	line-height: 1.2;
	vertical-align: middle;
	color: #111;
}

.tafai-order-table__table th {
	font-weight: 700;
	text-align: center;
	background: #fff;
}

.tafai-order-table__table td:nth-child(1),
.tafai-order-table__table td:nth-child(6),
.tafai-order-table__table td:nth-child(7),
.tafai-order-table__table td:nth-child(8),
.tafai-order-table__table td:nth-child(9) {
	text-align: center;
}

.tafai-order-table__table td:nth-child(6),
.tafai-order-table__table td:nth-child(8) {
	font-weight: 700;
}

.tafai-order-table__table td:nth-child(2),
.tafai-order-table__table td:nth-child(3),
.tafai-order-table__table td:nth-child(4) {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tafai-order-table__qty,
.tafai-order-table__exchange,
.tafai-order-table__payment-select {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #d8d8d8;
	border-radius: var(--tafai-order-radius);
	background: #fff;
	font-size: 14px;
	line-height: 1.2;
	color: #111;
}

.tafai-order-table__qty,
.tafai-order-table__exchange {
	width: 58px;
	text-align: center;
}

.tafai-order-table__footer {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tafai-order-table__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tafai-order-table__summary-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	font-size: 14px;
	line-height: 1.2;
	margin: 0;
}

.tafai-order-table__summary-field > span {
	font-weight: 700;
	color: #111;
}

.tafai-order-table__summary-value {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #d8d8d8;
	border-radius: var(--tafai-order-radius);
	background: #fff;
}

.tafai-order-table__summary-value strong {
	font-size: 16px;
}

.tafai-order-table__submit {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--tafai-order-radius);
	background: #ed1b24;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.tafai-order-table__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.tafai-order-table__status {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--tafai-order-radius);
	font-size: 14px;
	line-height: 1.4;
}

.tafai-order-table__status.is-loading {
	background: #fff9db;
	color: #7a5c00;
}

.tafai-order-table__status.is-success {
	background: #e8fff0;
	color: #0d6b33;
}

.tafai-order-table__status.is-error {
	background: #fff1f1;
	color: #a61b1b;
}

@media (max-width: 1024px) {
	.tafai-order-table__field {
		grid-column: span 6;
	}
}

@media (max-width: 767px) {
	.tafai-order-table__form {
		grid-template-columns: 1fr;
	}

	.tafai-order-table__summary {
		grid-template-columns: 1fr;
	}

	.tafai-order-table__field {
		grid-column: span 1;
	}
}
