/* Self-contained styles - WP admin core CSS par depend nahi karta, isliye
   admin page aur frontend shortcode dono par hubahu same dikhta hai. */

.stw-tool {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 1100px;
}

.stw-tool.stw-context-frontend {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 20px;
}

.stw-guest-notice {
	background: #fef8e7;
	border: 1px solid #f0d78c;
	color: #6b5900;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
	font-size: 14px;
}
.stw-guest-notice a {
	font-weight: 600;
}

.stw-form {
	margin: 16px 0;
	padding: 16px;
	background: #f9f9f9;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
}

.stw-input {
	padding: 6px 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	min-width: 320px;
	font-size: 14px;
}

.stw-btn {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 4px;
	border: 1px solid #2271b1;
	background: #f6f7f7;
	color: #2271b1;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}
.stw-btn-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}
.stw-btn-primary:hover {
	background: #135e96;
}
.stw-btn-lg {
	padding: 10px 22px;
	font-size: 15px;
}

.stw-status {
	margin-left: 10px;
	font-weight: 600;
}

.stw-progress {
	margin: 16px 0;
}
.stw-progress-bar {
	background: #e5e5e5;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
}
.stw-progress-fill {
	background: #2271b1;
	height: 100%;
	width: 0%;
	transition: width .3s ease;
}

.stw-columns {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.stw-categories {
	width: 260px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	padding: 12px;
}
.stw-cat-item {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}
.stw-products {
	flex-grow: 1;
	min-width: 300px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	padding: 12px;
	max-height: 600px;
	overflow-y: auto;
}

.stw-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.stw-table th {
	text-align: left;
	border-bottom: 2px solid #ccd0d4;
	padding: 8px 6px;
}
.stw-table td {
	border-bottom: 1px solid #eee;
	padding: 6px;
	vertical-align: middle;
}
.stw-table tr:nth-child(odd) {
	background: #fafafa;
}
.stw-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
}
