/* Hantug Aristides B2B Portal -- corporate styling for the account tab,
   order form, and order/status displays. Deliberately restrained: one
   accent color, neutral grays, hairline borders, no gradients or shadows. */

:root {
	--hantug-ink: #1a2233;
	--hantug-ink-muted: #5b6472;
	--hantug-border: #dfe3e8;
	--hantug-surface: #ffffff;
	--hantug-surface-muted: #f6f7f9;
	--hantug-accent: #1e3a5f;
	--hantug-accent-hover: #16304f;
}

.woocommerce-MyAccount-content #hantug-order-form-root,
.hantug-order-form {
	font-size: 14px;
	color: var(--hantug-ink);
}

.hantug-order-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--hantug-surface);
	border: 1px solid var(--hantug-border);
	font-size: 13px;
}

.hantug-order-table thead th {
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hantug-ink-muted);
	background: var(--hantug-surface-muted);
	padding: 10px 8px;
	border-bottom: 1px solid var(--hantug-border);
}

.hantug-order-table td {
	padding: 8px;
	border-bottom: 1px solid var(--hantug-border);
	vertical-align: middle;
}

.hantug-order-table select,
.hantug-order-table input[type="number"],
.hantug-order-table input[type="text"] {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--hantug-border);
	border-radius: 4px;
	font-size: 13px;
	color: var(--hantug-ink);
	background: var(--hantug-surface);
}

.hantug-col-price,
.hantug-col-total {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hantug-col-total {
	font-weight: 600;
}

.hantug-remove-row,
.hantug-remove-existing,
.hantug-remove-cart-row {
	background: none;
	border: 1px solid var(--hantug-border);
	border-radius: 4px;
	width: 20px;
	height: 20px;
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
	color: var(--hantug-ink-muted);
}

.hantug-remove-row:hover,
.hantug-remove-existing:hover,
.hantug-remove-cart-row:hover {
	color: #a32d2d;
	border-color: #a32d2d;
}

.hantug-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
}

.hantug-order-form .button {
	border-radius: 4px;
	font-size: 13px;
	padding: 8px 16px;
	cursor: pointer;
	border: 1px solid var(--hantug-border);
	background: var(--hantug-surface);
	color: var(--hantug-ink);
}

.hantug-order-form .button-primary,
.hantug-submit-order {
	background: var(--hantug-accent);
	border-color: var(--hantug-accent);
	color: #ffffff;
}

.hantug-order-form .button-primary:hover,
.hantug-submit-order:hover {
	background: var(--hantug-accent-hover);
	border-color: var(--hantug-accent-hover);
}

.hantug-feedback {
	margin-top: 8px;
	font-size: 13px;
	color: var(--hantug-ink-muted);
	min-height: 1.2em;
}

.hantug-feedback-success {
	color: #27500a;
	font-weight: 600;
}

/* Order number / line reference, shown above each order item name. */
.hantug-line-ref {
	display: block;
	font-size: 11px;
	color: var(--hantug-ink-muted);
	letter-spacing: 0.01em;
	margin-bottom: 4px;
	font-variant-numeric: tabular-nums;
}

.hantug-item-sku {
	display: block;
	font-size: 12px;
	color: var(--hantug-ink-muted);
	margin-top: 4px;
}

.hantug-item-qty,
.hantug-item-unit-price {
	font-size: 12px;
	color: var(--hantug-ink-muted);
	margin-top: 2px;
}

/* Aristides order pages: billing/shipping addresses are hidden -- Hantug
   already has this information on file and doesn't need it repeated here. */
body.hantug-aristides-order .woocommerce-customer-details {
	display: none;
}

/* Production status badges. */
.hantug-status-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 4px;
	margin-top: 6px;
}

.hantug-status-received {
	background: #f1f1ef;
	color: #5f5e5a;
}

.hantug-status-production {
	background: #faeeda;
	color: #854f0b;
}

.hantug-status-assembly {
	background: #e6f1fb;
	color: #0c447c;
}

.hantug-status-ready {
	background: #eaf3de;
	color: #27500a;
}

/* Admin meta box table (order edit screen). */
.hantug-status-table th,
.hantug-status-table td {
	padding: 6px 8px;
}

.hantug-bulk-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Order editor (My Account > View Order). */
.hantug-order-editor {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 3px solid var(--hantug-ink);
	position: relative;
}

.hantug-order-editor::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--hantug-accent);
}

.hantug-order-editor h4 {
	margin: 20px 0 10px;
	font-size: 13px;
	color: var(--hantug-ink-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hantug-editor-existing-table input[type="number"] {
	width: 70px;
	padding: 5px 6px;
	border: 1px solid var(--hantug-border);
	border-radius: 4px;
	font-size: 13px;
	color: var(--hantug-ink);
	background: var(--hantug-surface);
}

/* Live order preview shown on the B2B Catalog page after adding to cart. */
.hantug-cart-preview {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--hantug-border);
}

.hantug-cart-preview h3 {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--hantug-ink);
}

.hantug-cart-preview-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--hantug-surface);
	border: 1px solid var(--hantug-border);
	font-size: 13px;
}

.hantug-cart-preview-table thead th {
	text-align: left;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hantug-ink-muted);
	background: var(--hantug-surface-muted);
	padding: 8px;
	border-bottom: 1px solid var(--hantug-border);
}

.hantug-cart-preview-table td {
	padding: 8px;
	border-bottom: 1px solid var(--hantug-border);
	vertical-align: top;
}

.hantug-cart-preview-table input[type="number"] {
	width: 60px;
	padding: 5px 6px;
	border: 1px solid var(--hantug-border);
	border-radius: 4px;
	font-size: 13px;
	color: var(--hantug-ink);
	background: var(--hantug-surface);
}

.hantug-preview-note {
	font-size: 11px;
	color: var(--hantug-ink-muted);
	margin: 8px 0 0;
}

.hantug-cart-preview-total {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: 10px;
	padding: 12px 8px;
	border-bottom: 1px solid var(--hantug-border);
}

.hantug-cart-preview-total strong {
	font-size: 18px;
	color: var(--hantug-ink);
}

.hantug-cart-preview-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

/* Full order-details page override (My Account > View Order, Thank you page). */
.hantug-order-details-ref {
	font-size: 12px;
	color: var(--hantug-ink-muted);
	margin: -8px 0 16px;
}

.hantug-order-logo-wrap {
	text-align: center;
	margin-bottom: 24px;
}

.hantug-order-logo {
	max-width: 400px;
	max-height: 220px;
	display: inline-block;
}

.hantug-order-details-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--hantug-surface);
	border: 1px solid var(--hantug-border);
	font-size: 13px;
}

.hantug-order-details-table thead th {
	text-align: left;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hantug-ink-muted);
	background: var(--hantug-surface-muted);
	padding: 10px 8px;
	border-bottom: 1px solid var(--hantug-border);
}

.hantug-order-details-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--hantug-border);
	vertical-align: top;
}

.hantug-order-details-table tfoot th,
.hantug-order-details-table tfoot td {
	padding: 12px 8px;
	border-bottom: none;
	border-top: 1px solid var(--hantug-border);
	text-align: left;
	font-size: 14px;
}

.hantug-order-footer-note {
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--hantug-surface-muted);
	border: 1px solid var(--hantug-border);
	border-radius: 6px;
	font-size: 13px;
	color: var(--hantug-ink-muted);
}

.hantug-order-footer-note p {
	margin: 0;
}
