/**
 * GetPaid receipt page styles — TurfNet brand colors.
 *
 * Loaded on the /gp-checkout/gp-receipt/ page.
 *
 * @package RmdsGetPaid
 * @since   1.2.0
 */

/* Primary action button (View Invoice): solid TurfNet red */
.wpinv-page .bsui .btn-primary {
	background-color: #7e0000 !important;
	border-color: #7e0000 !important;
	color: #fff !important;
	box-shadow: none !important;
}
.wpinv-page .bsui .btn-primary:hover,
.wpinv-page .bsui .btn-primary:focus {
	background-color: #5e0000 !important;
	border-color: #5e0000 !important;
}

/* Secondary buttons (Invoice History): light red tint */
.wpinv-page .bsui .btn-warning,
.wpinv-page .bsui .btn-secondary,
.wpinv-page .bsui .btn-outline-primary {
	background-color: rgba(126, 0, 0, 0.05) !important;
	border: none !important;
	border-radius: 8px !important;
	color: #7e0000 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 8px 16px !important;
	box-shadow: none !important;
}
.wpinv-page .bsui .btn-warning:hover,
.wpinv-page .bsui .btn-warning:focus,
.wpinv-page .bsui .btn-secondary:hover,
.wpinv-page .bsui .btn-secondary:focus,
.wpinv-page .bsui .btn-outline-primary:hover,
.wpinv-page .bsui .btn-outline-primary:focus {
	background-color: rgba(126, 0, 0, 0.12) !important;
	color: #5e0000 !important;
}

/* Links */
.wpinv-page .bsui a:not(.btn) {
	color: #7e0000;
}
.wpinv-page .bsui a:not(.btn):hover {
	color: #5e0000;
}

/* Table header labels */
.wpinv-page .bsui .table th {
	color: #333;
}

/* Status badge */
.wpinv-page .bsui .badge-success,
.wpinv-page .bsui .bg-success {
	background-color: #7e0000 !important;
}

/* Responsive layout for receipt metadata table */
@media (max-width: 991px) {
	.wpinv-page .bsui .table tr {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 10px 0 !important;
		border: none !important;
		border-bottom: 1px solid var(--community-color-border, #e5e7eb) !important;
	}

	.wpinv-page .bsui .table tr:last-child {
		border-bottom: none !important;
	}

	.wpinv-page .bsui .table th,
	.wpinv-page .bsui .table td {
		border: none !important;
		padding: 4px 0 !important;
		display: block !important;
	}

	.wpinv-page .bsui .table th {
		text-align: left !important;
	}

	.wpinv-page .bsui .table td {
		text-align: right !important;
	}

	/* Action buttons: stack vertically */
	.wpinv-page .bsui .wpinv-receipt .btn {
		display: block !important;
		margin-bottom: 8px !important;
		text-align: center !important;
	}
}
