/**
 * GP Inventory Page Styles
 * Based on the GF Results addon styles
 */

/* Main layout */
#gpi-results {
	margin-right: 300px;
}

.gform-admin .gpi-filter-loading .gform-spinner {
	display: inline-block;
}

/* Result boxes */
.gf-results .gf-result-box {
	background: #fff;
	border-radius: 3px;
	border: 1px solid #e3e6ef;
	box-shadow: 0 1px 4px rgb(18 25 97 / 8%);
	padding: 1.562rem 1rem;
}

.gf-results .gf-result-box {
	margin-right: 0;
	margin-bottom: 1.25rem;
}

.gf-results .gf-result-box__primary {
	display: flex;
}

@media screen and (min-width: 782px) {
	.gf-results {
		display: flex;
		justify-content: space-between;
		margin-bottom: 1.25rem;
	}

	.gf-results .gf-result-box {
		flex: 1 1 0px;
		margin-right: 1.25rem;
		margin-bottom: 0;
	}

	.gf-results .gf-result-box:last-child {
		margin-right: 0;
	}
}

/* Field panels */
.gpi-results-field {
	margin-bottom: 20px;
}

.gpi-results-field table {
	border-bottom: 1px solid silver;
	border-spacing: 0;
}

.gpi-results-field table td {
	padding: 5px;
	border-right: 1px solid silver;
	border-top: 1px solid silver;
	text-align: center;
}

.gpi-results-field-table-header {
	background-color: #eeeeee;
}

.gpi-results-field table td:first-child {
	border-left: 1px solid silver;
}

/* Shared styles */
.inventory-field-content-blue {
	background-color: #f7f9fc;
	border-radius: 3px;
	padding: 1rem;
}

.half-opacity {
	opacity: 0.5;
}

/* Inventory display */
.inventory-available {
	padding: 1rem;
	background: #f7f9fc;
	border-radius: 3px;
}

.inventory-available-label {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: 500;
}

.inventory-available-value {
	font-size: 200%;
	font-weight: bold;
}

/* Loading state */
.inventory-loading {
	padding: 1rem;
	background: #f7f9fc;
	border-radius: 3px;
	text-align: center;
	color: #666;
}

.inventory-loading .gform-spinner {
	display: inline-block;
	margin-right: 10px;
	vertical-align: middle;
}

/* Error state */
.inventory-error {
	padding: 1rem;
	background: #fef1f1;
	border-radius: 3px;
	color: #b32d2e;
}

.inventory-error p {
	margin: 0;
}

/* Inventory choices */
.inventory-choices {
	padding: 0;
}

/* Loading indicator */
.gpi-filter-loading {
	margin: 0 5px 10px 0;
}
