/**
 * Product list
 */

	/* Table layout */
		.spnet-products-table h2 {
			font-size: 1em;
		}

/**
 * Product details
 */

	.spnet-variations-grid {
		font-size: 0.875rem;
		width: auto;
	}

/* Responsive tables */

	.spnet-responsive-table-active thead {
		display: none;
	}

	.spnet-responsive-table-active,
	.spnet-responsive-table-active tbody,
	.spnet-responsive-table-active th {
	  display: block;
	  width: 100%;
	}

	.spnet-responsive-table-active tr {
		display: table;
		width: 100%;
		padding-top: 4vh;
		padding-bottom: 4vh;
	}

	.spnet-responsive-table-active tr + tr {
		border-top: 1px solid #ccc;
	}

	.spnet-responsive-table-active [data-spnet_th] {
	  display: table-row;
	  width: 100%;
	  text-align: left;
	  padding: 0;
	  line-height: initial;
	  border: 0;
	}

	.spnet-responsive-table-active [data-spnet_th]::before,
	.spnet-responsive-table-active [data-spnet_th] .spnet-responsive-cell {
		padding-top: 1vh;
		padding-bottom: 1vh;
	  display: table-cell;
	}

	.spnet-responsive-table-active [data-spnet_th]:empty {
	  display: none;
	}
	.spnet-responsive-table-active [data-spnet_th]::before {
	  content: attr(data-spnet_th);
	  font-weight: bold;
	  padding-right: 5vw;
	  white-space: nowrap;
	  width: 1vw;
	  vertical-align: top;
	}

/* Quantity breaks table */

	.quantity-breaks {
		margin: 0;
		font-size: smaller;
		width: auto;
	}
	.quantity-breaks .quantity-break td {
		padding: 1em 0 0;
	}
	.quantity-breaks .quantity-break td + td {
		padding-left: 1.41575em;
	}

	.quantity-break-active td {
		font-weight: bold;
	}

/**
 * Financials/templates sections
 */

	.spnet-no-results {
		padding: 1.41575em;
	}

	/* Invoice type links */

		.storefront-full-width-content ul li.woocommerce-MyAccount-navigation-link--financials a:before {
			content: "\f155";
		}

		.spnet-tabs {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-around;
			line-height: 4em;
			text-align: center;
			margin-bottom: 2vh;
		}

		.spnet-tabs a {
			flex: 1;
			background-color: #f0f0f0;
			margin: 0.5vw;
			padding: 0 1em;
			white-space: nowrap;
		}

		.spnet-tabs a.active,
		.spnet-tabs a:hover
		{
			font-weight: bold;
			color: #000;
		}

	/* Financials lists */

		.spnet-financials {
			font-size: 14px;
		}

		.spnet-financials a {
			display: block;
		}

		.spnet-financials-currency-type-heading,
		.spnet-financials-currency-type-cell,
		.spnet-financials-float-type-heading,
		.spnet-financials-float-type-cell
		{
			text-align: right;
		}

	/* Financials details */
		.spnet-financial-details {
			margin-bottom: 2em;
		}

		.spnet-financial-lines {
			font-size: 0.875rem;
		}

		.spnet-financial-pdf-request-form {
			float: right;
		}

		.pdf-request-button {
			line-height: initial;
			margin: 0;
		}

	/* Templates */
		.woocommerce-MyAccount-content table h2 {
			font-size: inherit;
			font-weight: inherit;
		}

/**
 * Admin bar
 */

	/* Fix flatsome annoyance */

	.kint dt,
	.kint dl
	 {
		text-transform: none;
	}

	/* Product details dump */
		.spnet-product-details-dump {
			overflow: auto;
			border-bottom: 1px solid #ccc;
		}

		.spnet-product-dump {
			padding-top: 2em;
			padding-bottom: 2em;
		}
		.spnet-product-dump .spnet-product-dump {
			margin-left: 2em;
		}

		.spnet-product-dump + .spnet-product-dump {
			border-top: 1px solid #ccc;
		}

		#debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump table {
			width: auto;
			margin-bottom: 0;
		}

		.spnet-product-details-dump th {
			font-weight: bold;
		}

		#debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump th,
		#debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump td {
			padding: 0 0.707875em;
			border: 1px solid #ccc;
		}

		#debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump table table {
			margin-bottom: 0;
		}

		.quantity-breaks-cell {
			padding: 0;
		}
		.quantity-breaks-cell table {
			width: 100%;
		}

		.spnet-debug-dump-special-prices .section_head {
			font-size: inherit;
		}

		/* User switcher */
		#wpadminbar .spnet-woocommerce-customer-override-form {
			white-space: nowrap;
		}
		#wpadminbar .spnet-woocommerce-customer-override-form select {
			all: unset;
			-moz-appearance: menulist;
			-webkit-appearance: menulist;
			-moz-user-select: none;
			-webkit-user-select: none;
			background-color: #fff;
			color: #000;
			display: inline-block;
			line-height: normal !important;
			margin: 0;
			white-space: nowrap;
		}

		#wpadminbar .spnet-woocommerce-customer-override-id-button {
			background: #fff;
			color: #32373c;
			border-radius: 10%;
			padding: 0 6px;
		}
		#wpadminbar .spnet-woocommerce-customer-override-id-button:hover {
			color: #00b9eb;
		}

/**
 * Quick order
 */

	[id^=spnet_quick_order_widget] .spnet-quick-order-heading {
		border-bottom: 1px dashed #000;
		display: inline-block;
		cursor: pointer;
		font-size: 1.25rem;
	}
	[id^=spnet_quick_order_widget] .spnet-quick-order-heading::after {
		content: " \f347";
		font-family: dashicons;
		vertical-align: middle;
		font-size: 1.25rem;
	}
	.spnet-quick-order-heading.active::after {
		content: " \f343";
	}
	[id^=spnet_quick_order_widget] .spnet-quick-order-container {
		display: none;
	}
	.spnet-quick-order-flex-container {
		display: flex;
		flex-wrap: wrap;
	}
	.spnet-quick-order-flex-container div {
		margin-right: 16px;
		margin-bottom: 16px;
	}

	.spnet-quick-order-input-container {
		position: relative;
	}
	.spnet-quick-order-input {
		width: 100%;
		padding: calc(0.618047em - 1px);
		border-color: #fff;
		box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
		background-color: #f2f2f2;
		border: 1px solid;
	}
	.spnet-quick-order-input.invalid {
		border-color: #d00;
	}
	.spnet-quick-order-input.valid {
		border-color: #0d0;
	}

	.spnet-quick-order-input-container.loading::after {
		display: block;

		font-family: 'dashicons';
		line-height: inherit;
		content: "\f463";

		-webkit-animation: spnet-spin 0.75s linear infinite;
		animation: spnet-spin 0.75s linear infinite;

		height: 23px;
		width: 25px;
		line-height: 25px;
		font-size: 25px;

		position: absolute;
		top: calc(50% - 8px);
		right: 0;
		margin-top: -12px;
	}

	@-webkit-keyframes spnet-spin {
	  0% {
	    -webkit-transform: rotate(0deg);
	            transform: rotate(0deg);
	  }
	  100% {
	    -webkit-transform: rotate(360deg);
	            transform: rotate(360deg);
	  }
	}

	.spnet-quick-order-container .button.loading {
		color: #eeeeee;
	}

	div.spnet-quick-order-product-title {
		align-self: center;
	}

	.spnet-quick-order-quantity label,
	.spnet-quick-order-container .spnet-quick-order-quantity input {
		display: inline-block;
		width: auto;
		vertical-align: super;
	}

	.spnet-quick-order-container .add_to_cart_button.added {
		display: inline-block;
	}

/**
 * Theme specific
 */

	/* Storefront */
	.spnet-no-ordering #site-header-cart,
	/* Flatsome */
	.spnet-no-ordering .cart-item,
	.spnet-no-ordering .header-nav .header-divider
	{
		display: none;
	}

