/* Product table inline stock notify (child row) */

.cwg_table_inline_submit {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	margin-top: 4px;
	padding: 6px 10px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 2px;
	background: #076bba;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.cwg_table_inline_submit:hover,
.cwg_table_inline_submit:focus {
	background: #055a9c;
	color: #fff !important;
}

.cwg_table_inline_submit.is-open {
	background: #444;
}

.cwg_table_inline_submit.is-requested {
	background: #2f6f3e;
}

.cwg_table_inline_submit.is-requested:hover,
.cwg_table_inline_submit.is-requested:focus {
	background: #255a32;
}

tr.cwg-notify-open > td {
	background: rgba(7, 107, 186, 0.08) !important;
}

tr.cwg-table-notify-child > td,
tr.child.cwg-table-notify-child > td {
	padding: 0 !important;
	background: #111 !important;
	border-top: none !important;
}

.cwg-table-notify-panel {
	padding: 14px 16px 16px;
	background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	border-left: 3px solid #076bba;
	color: #ddd;
}

.cwg-table-notify-panel.is-form,
.cwg-table-notify-panel.is-success {
	display: flex;
	justify-content: flex-end;
}

.cwg-table-notify-panel.is-loading {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-height: 52px;
	color: #aaa;
	font-size: 13px;
}

.cwg-table-inline-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: #076bba;
	border-radius: 50%;
	animation: cwg-table-inline-spin 0.7s linear infinite;
}

@keyframes cwg-table-inline-spin {
	to {
		transform: rotate(360deg);
	}
}

.cwg-table-notify-panel.is-error .cwg-table-inline-error-msg {
	margin: 0 0 10px;
	color: #ff8a8a;
}

.cwg-table-inline-form .cwginstock-subscribe-form {
	margin: 0;
}

.cwg-table-inline-form .cwginstock-panel-primary {
	border: none;
	box-shadow: none;
	background: transparent;
	margin: 0;
}

.cwg-table-inline-form .cwginstock-panel-body {
	padding: 0;
}

.cwg-table-inline-form .panel-body .row,
.cwg-table-inline-form .panel-body .col-md-12 {
	margin: 0;
	padding: 0;
	width: 100%;
	float: none;
}

.cwg-table-inline-form .form-group {
	margin-bottom: 0;
}

.cwg-table-inline-form .cwginstock-panel-body .form-group.center-block {
	display: none;
}

.cwg-table-inline-form .cwgstock_name,
.cwg-table-inline-form .cwgstock_email,
.cwg-table-inline-form .cwg-table-inline-account-field {
	display: none !important;
}

.cwg-table-inline-form {
	width: auto;
	max-width: 100%;
	margin-left: auto;
}

.cwg-table-qty-field {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		'label controls'
		'. button';
	align-items: center;
	justify-content: end;
	column-gap: 12px;
	row-gap: 10px;
	width: max-content;
	max-width: 100%;
	margin-left: auto;
}

.cwg-table-qty-label {
	grid-area: label;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #cfcfcf;
	text-transform: uppercase;
	text-shadow: none !important;
	box-shadow: none !important;
	-webkit-text-stroke: 0 !important;
}

.cwg-table-qty-controls {
	grid-area: controls;
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid #3a3a3a;
	border-radius: 3px;
	overflow: hidden;
	background: #0d0d0d;
}

.cwg-table-inline-form .add_quantity_field,
.cwg-table-qty-input {
	width: 88px !important;
	min-width: 88px !important;
	max-width: 88px !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 8px !important;
	border: none !important;
	border-left: 1px solid #3a3a3a !important;
	border-right: 1px solid #3a3a3a !important;
	border-radius: 0 !important;
	background: #0d0d0d !important;
	color: #fff !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 42px !important;
	text-align: center !important;
	-moz-appearance: textfield;
}

.cwg-table-inline-form .add_quantity_field::-webkit-outer-spin-button,
.cwg-table-inline-form .add_quantity_field::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cwg-table-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0 0 2px;
	border: none;
	background: #1c1c1c;
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.cwg-table-qty-btn:hover,
.cwg-table-qty-btn:focus {
	background: #2a2a2a;
	color: #fff;
}

.cwg-table-inline-form .cwgstock_button {
	grid-area: button;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	min-height: 42px !important;
	padding: 0 12px !important;
	background: #076bba !important;
	border: none !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 3px;
	cursor: pointer;
}

.cwg-table-inline-form .cwgstock_button:hover,
.cwg-table-inline-form .cwgstock_button:focus {
	background: #055a9c !important;
}

.cwg-table-inline-form .cwgstock_output {
	flex-basis: 100%;
	margin-top: 4px;
}

.cwg-table-inline-form .cwginstocksuccess {
	color: #7dcea0 !important;
}

.cwg-table-inline-form .cwginstockerror {
	color: #ff8a8a !important;
}

.cwg-table-inline-success {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	width: auto;
	max-width: 100%;
	margin-left: auto;
	text-align: right;
}

.cwg-table-inline-success-msg {
	margin: 0;
	font-size: 14px;
	color: #e8e8e8;
}

.cwg-table-inline-qty {
	color: #7dcea0;
	font-weight: 700;
}

.cwg-table-inline-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cwg-table-inline-actions .button,
.cwg-table-notify-panel.is-error .button {
	margin: 0;
	padding: 7px 14px;
	border-radius: 2px;
	border: 1px solid #444;
	background: #222;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.cwg-table-inline-actions .cwg-table-inline-change {
	background: #076bba;
	border-color: #076bba;
}

.cwg-table-inline-actions .cwg-table-inline-change:hover,
.cwg-table-inline-actions .cwg-table-inline-change:focus {
	background: #055a9c;
	border-color: #055a9c;
}

.cwg-table-inline-actions .cwg-table-inline-remove {
	background: #5c1f1f;
	border-color: #7a2b2b;
	color: #ffd6d6 !important;
}

.cwg-table-inline-actions .cwg-table-inline-remove:hover,
.cwg-table-inline-actions .cwg-table-inline-remove:focus {
	background: #7a2b2b;
	border-color: #944040;
}

.cwg-table-inline-actions .cwg-table-inline-remove:disabled {
	opacity: 0.7;
	cursor: wait;
}

.cwg-table-inline-actions .cwg-table-inline-close:hover,
.cwg-table-inline-actions .cwg-table-inline-close:focus,
.cwg-table-notify-panel.is-error .button:hover {
	background: #333;
}

@media (max-width: 782px) {
	.cwg-table-qty-field {
		grid-template-columns: 1fr;
		grid-template-areas:
			'label'
			'controls'
			'button';
		width: 100%;
	}

	.cwg-table-qty-controls {
		width: 100%;
	}

	.cwg-table-inline-form .add_quantity_field,
	.cwg-table-qty-input {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	.cwg-table-inline-success {
		align-items: flex-start;
		text-align: left;
	}
}
