/*
 * Product action buttons
 */

.ecorefill-store-product-actions {
	margin-top: 15px;
}

.ecorefill-store-start {
	margin-right: 8px;
}

.ecorefill-store-status {
	margin-top: 15px;
	padding: 12px;
	display: none;
	border-radius: 4px;
}

.ecorefill-store-status.info {
	background: #eef5ff;
	color: #174a8b;
}

.ecorefill-store-status.success {
	background: #eaf8ee;
	color: #176b35;
}

.ecorefill-store-status.error {
	background: #fff0f0;
	color: #a51d1d;
}


/*
 * Action modal
 */

.ecorefill-store-action-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.65);

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 20px;
}

.ecorefill-store-action-modal-inner {
	background: #fff;
	width: 100%;
	max-width: 500px;

	padding: 30px;
	border-radius: 8px;

	text-align: center;

	box-shadow:
		0 10px 40px rgba(0, 0, 0, 0.3);
}

.ecorefill-store-action-modal-inner h2 {
	margin-top: 0;
}

.ecorefill-store-action-message {
	font-size: 18px;
	line-height: 1.6;
}

.ecorefill-store-action-buttons {
	margin-top: 25px;
}


/*
 * QR scanner button
 */

.ecorefill-store-qr-button {
	position: fixed;

	right: 20px;
	bottom: 20px;

	z-index: 99990;

	border: 0;
	border-radius: 50px;

	background: #111;
	color: #fff;

	padding: 14px 20px;

	cursor: pointer;

	font-size: 15px;

	box-shadow:
		0 4px 15px rgba(0, 0, 0, 0.25);
}

.ecorefill-store-qr-button:hover {
	background: #333;
}


/*
 * QR modal
 */

.ecorefill-store-qr-modal {
	position: fixed;
	inset: 0;

	z-index: 999999;

	display: none;

	background: rgba(0, 0, 0, 0.75);

	align-items: center;
	justify-content: center;

	padding: 20px;
}

.ecorefill-store-qr-modal.is-open {
	display: flex;
}

.ecorefill-store-qr-content {
	position: relative;

	width: 100%;
	max-width: 500px;

	background: #fff;

	padding: 25px;

	border-radius: 8px;

	text-align: center;
}

.ecorefill-store-qr-content h2 {
	margin-top: 0;
}

.ecorefill-store-qr-close {
	position: absolute;

	right: 10px;
	top: 10px;

	width: 36px;
	height: 36px;

	border: 0;
	border-radius: 50%;

	background: #eee;

	font-size: 25px;
	line-height: 1;

	cursor: pointer;
}

#ecorefill-store-qr-reader {
	width: 100%;
	max-width: 400px;

	margin: 20px auto;
}

#ecorefill-store-qr-message {
	min-height: 25px;
}


/*
 * To Fill list
 */

.ecorefill-store-list {
	margin: 30px 0;
}

.ecorefill-store-list table {
	width: 100%;
}

.ecorefill-store-quantity {
	width: 100px;
}

.ecorefill-store-update,
.ecorefill-store-remove {
	margin-left: 5px;
}


/*
 * Mobile
 */

@media (max-width: 600px) {

	.ecorefill-store-qr-button {
		right: 15px;
		bottom: 15px;
	}

	.ecorefill-store-action-modal-inner {
		padding: 20px;
	}

	.ecorefill-store-list table,
	.ecorefill-store-list thead,
	.ecorefill-store-list tbody,
	.ecorefill-store-list th,
	.ecorefill-store-list td,
	.ecorefill-store-list tr {
		display: block;
	}

	.ecorefill-store-list thead {
		display: none;
	}

	.ecorefill-store-list tr {
		border: 1px solid #ddd;
		padding: 15px;
		margin-bottom: 15px;
	}

	.ecorefill-store-list td {
		border: 0;
		padding: 8px 0;
	}

}
