:root {
	--nlr-primary: #2271b1;
	--nlr-primary-text: #ffffff;
	--nlr-secondary: #2271b1;
}

.nlr-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.nlr-step {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	background: #fafafa;
}

.nlr-hidden {
	display: none;
}

.nlr-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.nlr-wrap input[type="text"],
.nlr-wrap input[type="email"] {
	width: 100%;
	padding: 8px 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 12px;
}

.nlr-btn,
.nlr-btn-secondary {
	padding: 10px 18px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-weight: 600;
}

.nlr-wrap .nlr-btn {
	background-color: var(--nlr-primary) !important;
	color: var(--nlr-primary-text) !important;
	border: none !important;
}

.nlr-wrap .nlr-btn-secondary {
	background: transparent !important;
	color: var(--nlr-secondary) !important;
	text-decoration: underline;
	margin-left: 8px;
	border: none !important;
}

.nlr-message {
	min-height: 20px;
	font-size: 0.9em;
	color: #b32d2e;
}

.nlr-note {
	font-size: 0.85em;
	color: #666;
}

code {
	background: #eee;
	padding: 2px 6px;
	border-radius: 3px;
}

.nlr-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 18px;
	border-bottom: 1px solid #ddd;
}

.nlr-tab {
	background: none;
	border: none;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 600;
	color: #666;
	border-bottom: 2px solid transparent;
}

.nlr-wrap .nlr-tab-active {
	color: var(--nlr-secondary) !important;
	border-bottom: 2px solid var(--nlr-primary) !important;
}

.nlr-wrap h4 {
	margin-top: 24px;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--nlr-primary) !important;
	color: var(--nlr-secondary) !important;
}

.nlr-tier-badge {
	color: #555;
}

.nlr-product-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nlr-wrap .nlr-product-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid var(--nlr-primary) !important;
	border-radius: 6px;
	padding: 14px;
}

.nlr-product-name {
	font-weight: 700;
}

.nlr-product-meta {
	font-size: 0.85em;
	color: #666;
	margin: 4px 0 10px;
}

.nlr-link-row {
	display: flex;
	gap: 8px;
}

.nlr-code-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.nlr-code-label {
	font-size: 0.85em;
	color: #666;
}

.nlr-code-value {
	flex: 1;
	background: #fafafa;
	border: 1px solid #ccc;
	padding: 6px 8px;
	border-radius: 4px;
	font-size: 0.85em;
}

.nlr-link-field {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.85em;
	background: #fafafa;
}

.nlr-wrap .nlr-copy-link {
	margin-left: 0;
	white-space: nowrap;
	background-color: var(--nlr-primary) !important;
	color: var(--nlr-primary-text) !important;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 4px;
	border: none !important;
}

.nlr-totals-row {
	display: flex;
	gap: 10px;
}

.nlr-wrap .nlr-total-card {
	flex: 1;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-top: 3px solid var(--nlr-primary) !important;
	border-radius: 6px;
	padding: 12px;
	text-align: center;
}

.nlr-total-label {
	font-size: 0.8em;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nlr-total-value {
	font-size: 1.3em;
	font-weight: 700;
	margin-top: 4px;
}

.nlr-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
}

.nlr-wrap .nlr-history-table thead th {
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-bottom: 2px solid var(--nlr-primary) !important;
	color: var(--nlr-secondary) !important;
	text-align: left;
	padding: 8px 6px;
	font-weight: 700;
}

.nlr-wrap .nlr-history-table tbody td {
	background-color: transparent !important;
	color: inherit !important;
	text-align: left;
	padding: 8px 6px;
	border: none !important;
	border-bottom: 1px solid #eee !important;
}

.nlr-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 0.85em;
	font-weight: 600;
}

.nlr-status-pending {
	background: #fff3cd;
	color: #856404;
}

.nlr-status-approved {
	background: #d1ecf1;
	color: #0c5460;
}

.nlr-status-paid {
	background: #d4edda;
	color: #155724;
}

.nlr-status-rejected {
	background: #f8d7da;
	color: #721c24;
}

.nlr-status-note {
	font-size: 0.8em;
	color: #999;
	margin-top: 2px;
}

.nlr-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: 0.9em;
}

.nlr-pagination a {
	color: var(--nlr-secondary);
	text-decoration: none;
	font-weight: 600;
}

.nlr-pagination a:hover {
	text-decoration: underline;
}
