.swpm-login-wrap,
.swpm-updates-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-size: 18px;
}

.swpm-login-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 400px;
}

.swpm-login-form label {
	font-weight: 700;
	margin-top: 10px;
}

.swpm-login-form input {
	padding: 14px;
	font-size: 20px;
	border: 2px solid #ccc;
	border-radius: 8px;
}

.swpm-btn {
	display: inline-block;
	padding: 14px 22px;
	font-size: 20px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
}

.swpm-btn-primary {
	background: #1a7a3c;
	color: #fff;
}

.swpm-btn-primary:hover {
	background: #145c2d;
}

.swpm-btn-primary:disabled {
	background: #9bbfa8;
	cursor: not-allowed;
}

.swpm-btn-large {
	width: 100%;
	padding: 20px;
	font-size: 24px;
}

.swpm-updates-header h2 {
	font-size: 28px;
	margin-bottom: 4px;
}

.swpm-hello {
	color: #444;
	margin-top: 0;
}

.swpm-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin: 16px 0;
	font-weight: 600;
}

.swpm-alert-success {
	background: #e6f6ea;
	color: #145c2d;
	border: 2px solid #1a7a3c;
}

.swpm-alert-error {
	background: #fdecea;
	color: #8a1f1f;
	border: 2px solid #b32d2e;
}

.swpm-alert-info {
	background: #eef4fb;
	color: #1c4a73;
	border: 2px solid #3a7cbf;
}

.swpm-empty-state {
	padding: 40px 20px;
	text-align: center;
	background: #f7f7f7;
	border-radius: 10px;
	font-size: 20px;
	color: #555;
}

.swpm-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 20px 0;
}

.swpm-item-card {
	display: grid;
	grid-template-columns: 80px 1fr 220px;
	gap: 16px;
	align-items: center;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.swpm-item-card.swpm-row-error {
	border-color: #b32d2e;
	background: #fdecea;
}

.swpm-item-card.swpm-row-success {
	border-color: #1a7a3c;
	background: #e6f6ea;
}

.swpm-item-image {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	background: #f0f0f0;
}

.swpm-item-image-placeholder {
	display: block;
}

.swpm-item-name {
	font-size: 20px;
	font-weight: 700;
}

.swpm-item-location {
	font-size: 16px;
	color: #555;
	margin: 2px 0;
}

.swpm-item-current {
	font-size: 16px;
	color: #333;
}

.swpm-unit {
	color: #777;
}

.swpm-item-input {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.swpm-input-label {
	font-size: 14px;
	font-weight: 700;
	color: #444;
}

.swpm-price-input {
	padding: 14px;
	font-size: 22px;
	border: 2px solid #ccc;
	border-radius: 8px;
	width: 100%;
	box-sizing: border-box;
}

.swpm-price-input:focus {
	border-color: #3a7cbf;
	outline: none;
}

.swpm-row-status {
	font-size: 15px;
	font-weight: 700;
}

.swpm-submit-bar {
	position: sticky;
	bottom: 0;
	background: #fff;
	padding: 16px 0;
	border-top: 2px solid #eee;
}

@media (max-width: 700px) {
	.swpm-item-card {
		grid-template-columns: 60px 1fr;
		grid-template-areas:
			"image info"
			"input input";
	}
	.swpm-item-image { grid-area: image; width: 56px; height: 56px; }
	.swpm-item-info { grid-area: info; }
	.swpm-item-input { grid-area: input; }
}

.swpm-item-stock {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.swpm-stock-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

.swpm-stock-badge-instock {
	background: #e6f6ea;
	color: #145c2d;
}

.swpm-stock-badge-outofstock {
	background: #fdecea;
	color: #8a1f1f;
}

.swpm-btn-stock {
	background: #e8842c;
	color: #fff;
	padding: 8px 14px;
	font-size: 14px;
}

.swpm-btn-stock:hover {
	background: #c96c1d;
}

.swpm-btn-stock:disabled {
	background: #eec49b;
	cursor: not-allowed;
}

/* "Updated Today / Fix a Mistake" section */

.swpm-updated-today {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 3px dashed #ddd;
}

.swpm-updated-today h3 {
	font-size: 20px;
	margin-bottom: 4px;
}

.swpm-updated-today-note {
	color: #666;
	font-size: 15px;
	margin-top: 0;
}

.swpm-items-compact .swpm-item-card {
	background: #fafafa;
}

.swpm-item-card-done .swpm-item-updated-on {
	font-size: 14px;
	color: #555;
	margin-top: 4px;
}

.swpm-item-card-done .swpm-item-input {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.swpm-item-card-done .swpm-price-input {
	width: 140px;
	flex: 0 0 auto;
	font-size: 18px;
	padding: 10px;
}

.swpm-btn-fix {
	background: #3a7cbf;
	color: #fff;
	padding: 10px 16px;
	font-size: 15px;
	flex: 0 0 auto;
}

.swpm-btn-fix:hover {
	background: #2c608f;
}

.swpm-btn-fix:disabled {
	background: #a9c4de;
	cursor: not-allowed;
}

.swpm-item-card-done.swpm-row-success {
	border-color: #1a7a3c;
	background: #eefaf0;
}

.swpm-item-card-done.swpm-row-error {
	border-color: #b32d2e;
	background: #fdecea;
}

@media (max-width: 700px) {
	.swpm-item-card-done {
		grid-template-columns: 60px 1fr;
		grid-template-areas:
			"image info"
			"input input";
	}
}
