.wcsro-panel {
	max-width: 900px;
	margin: 0 auto;
}
.wcsro-panel h2 {
	color: #fff;
	font-size: 24px;
	margin-bottom: 20px;
}

/* ── Notices ── */
.wcsro-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.6;
}
.wcsro-notice--success {
	background: #1a3a2a;
	color: #6fcf97;
	border: 1px solid #2d5a3f;
}
.wcsro-notice--error {
	background: #3a1a1a;
	color: #f08080;
	border: 1px solid #5a2d2d;
}
.wcsro-notice a {
	color: #82cfff;
	word-break: break-all;
}
.wcsro-pay-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
}

/* ── Sections ── */
.wcsro-section {
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
}
.wcsro-section__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	background: #252525;
	border-bottom: 1px solid #333;
}
.wcsro-section__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #5293CE;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
}
.wcsro-section__header h3 {
	margin: 0;
	color: #fff;
	font-size: 17px;
}
.wcsro-section__body {
	padding: 20px 24px;
}

/* ── Form Grid ── */
.wcsro-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 16px;
}
.wcsro-field--full {
	grid-column: 1 / -1;
}
.wcsro-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #aaa;
	margin-bottom: 6px;
}
.wcsro-field .req {
	color: #f08080;
}
.wcsro-field input,
.wcsro-field textarea,
.wcsro-field select {
	width: 100%;
	padding: 10px 12px;
	background: #2a2a2a;
	color: #e0e0e0;
	border: 1px solid #444;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.wcsro-field input:focus,
.wcsro-field textarea:focus {
	border-color: #5293CE;
	outline: none;
	box-shadow: 0 0 0 2px rgba(82,147,206,0.2);
}
.wcsro-field textarea {
	resize: vertical;
}

/* ── Search ── */
.wcsro-search-wrap {
	position: relative;
	margin-bottom: 8px;
}
.wcsro-search-wrap label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #aaa;
	margin-bottom: 6px;
}
.wcsro-search-wrap input {
	width: 100%;
	padding: 10px 12px;
	background: #2a2a2a;
	color: #e0e0e0;
	border: 1px solid #444;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.wcsro-search-wrap input:focus {
	border-color: #5293CE;
	outline: none;
	box-shadow: 0 0 0 2px rgba(82,147,206,0.2);
}
.wcsro-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #2a2a2a;
	border: 1px solid #555;
	border-radius: 0 0 8px 8px;
	max-height: 280px;
	overflow-y: auto;
	z-index: 100;
	display: none;
}
.wcsro-search-results.active {
	display: block;
}
.wcsro-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid #333;
	transition: background 0.15s;
}
.wcsro-search-item:last-child {
	border-bottom: none;
}
.wcsro-search-item:hover {
	background: #353535;
}
.wcsro-search-item img {
	width: 40px;
	height: 40px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}
.wcsro-search-item__info {
	flex: 1;
	min-width: 0;
}
.wcsro-search-item__name {
	color: #e0e0e0;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wcsro-search-item__detail {
	color: #888;
	font-size: 12px;
}
.wcsro-search-item__price {
	color: #6fcf97;
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}
.wcsro-search-no-results {
	padding: 12px 14px;
	color: #888;
	font-size: 13px;
}

/* ── Customer Badge ── */
.wcsro-customer-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #1a3a2a;
	border: 1px solid #2d5a3f;
	border-radius: 8px;
	margin-bottom: 8px;
	color: #6fcf97;
	font-weight: 600;
}

/* ── Buttons ── */
.wcsro-btn,
.wcsro-btn-sm {
	padding: 8px 16px;
	background: #5293CE;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.15s;
}
.wcsro-btn:hover,
.wcsro-btn-sm:hover {
	background: #3d7bb5;
}
.wcsro-btn-sm {
	padding: 5px 12px;
	font-size: 12px;
}
.wcsro-btn-danger {
	background: #6b2a2a;
}
.wcsro-btn-danger:hover {
	background: #8b3a3a;
}
.wcsro-btn-submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #4EAE32;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 20px;
	transition: background 0.15s;
}
.wcsro-btn-submit:hover {
	background: #3d8d28;
}

/* ── Checkbox ── */
.wcsro-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: #ccc;
	font-size: 14px;
	padding: 4px 0;
}
.wcsro-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #5293CE;
}

/* ── Products Table ── */
.wcsro-products-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}
.wcsro-products-table th {
	text-align: left;
	padding: 8px 10px;
	color: #888;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	border-bottom: 1px solid #333;
}
.wcsro-products-table td {
	padding: 10px;
	border-bottom: 1px solid #2a2a2a;
	color: #e0e0e0;
	font-size: 14px;
	vertical-align: middle;
}
.wcsro-products-table .col-thumb {
	width: 50px;
}
.wcsro-products-table .col-price,
.wcsro-products-table .col-subtotal {
	width: 100px;
	text-align: right;
}
.wcsro-products-table .col-qty {
	width: 120px;
	text-align: center;
}
.wcsro-products-table .col-action {
	width: 40px;
	text-align: center;
}
.wcsro-products-table img {
	width: 44px;
	height: 44px;
	border-radius: 4px;
	object-fit: cover;
}
.wcsro-qty-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.wcsro-qty-btn {
	width: 28px;
	height: 28px;
	background: #333;
	color: #ccc;
	border: 1px solid #444;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.wcsro-qty-btn:hover {
	background: #444;
}
.wcsro-qty-val {
	width: 40px;
	text-align: center;
	background: #2a2a2a;
	color: #e0e0e0;
	border: 1px solid #444;
	border-radius: 4px;
	padding: 4px;
	font-size: 14px;
}
.wcsro-remove-btn {
	background: none;
	border: none;
	color: #e05555;
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
}
.wcsro-remove-btn:hover {
	color: #ff4444;
}
.wcsro-total-label {
	text-align: right;
	font-weight: 700;
	color: #ccc;
	font-size: 15px;
}
.wcsro-total-value {
	text-align: right;
	font-weight: 700;
	color: #6fcf97;
	font-size: 17px;
}
.wcsro-empty-msg {
	color: #666;
	font-size: 14px;
	padding: 12px 0;
}

/* ── Payment Methods ── */
.wcsro-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wcsro-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #2a2a2a;
	border: 2px solid #444;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s;
}
.wcsro-payment-option:has(input:checked) {
	border-color: #5293CE;
	background: #1a2a3a;
}
.wcsro-payment-option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #5293CE;
	flex-shrink: 0;
}
.wcsro-payment-option__body {
	display: flex;
	flex-direction: column;
}
.wcsro-payment-option__body strong {
	color: #e0e0e0;
	font-size: 14px;
}
.wcsro-payment-option__body small {
	color: #888;
	font-size: 12px;
	margin-top: 2px;
}

/* ── Summary ── */
.wcsro-summary {
	background: #252525;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 20px;
}
.wcsro-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	color: #ccc;
	font-size: 14px;
}
.wcsro-summary__total {
	border-top: 1px solid #444;
	margin-top: 8px;
	padding-top: 12px;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
}
.wcsro-summary__total span:last-child {
	color: #6fcf97;
}

/* ── Orders Section ── */
.wcsro-orders-section {
	margin-top: 40px;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 24px;
}
.wcsro-orders-section h3 {
	color: #fff;
	margin: 0 0 16px;
	font-size: 17px;
}
.wcsro-filter-form {
	display: flex;
	gap: 10px;
	align-items: end;
	margin-bottom: 16px;
}
.wcsro-filter-form input[type="month"] {
	padding: 8px 12px;
	background: #2a2a2a;
	color: #e0e0e0;
	border: 1px solid #444;
	border-radius: 6px;
	font-size: 14px;
}
.wcsro-table-scroll {
	overflow-x: auto;
}
.wcsro-orders-table {
	width: 100%;
	border-collapse: collapse;
}
.wcsro-orders-table th {
	text-align: left;
	padding: 10px 12px;
	color: #888;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	border-bottom: 1px solid #333;
}
.wcsro-orders-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #2a2a2a;
	color: #e0e0e0;
	font-size: 14px;
}
.wcsro-orders-table tbody tr:hover {
	background: #252525;
}
.col-right {
	text-align: right;
}

/* ── Status badges ── */
.wcsro-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}
.wcsro-status--processing { background: #1a3a2a; color: #6fcf97; }
.wcsro-status--completed { background: #1a3a2a; color: #4EAE32; }
.wcsro-status--on-hold { background: #3a2a1a; color: #f0c060; }
.wcsro-status--pending { background: #2a2a3a; color: #8888dd; }
.wcsro-status--cancelled,
.wcsro-status--failed { background: #3a1a1a; color: #f08080; }

/* ── Responsive ── */
@media (max-width: 640px) {
	.wcsro-form-grid {
		grid-template-columns: 1fr;
	}
	.wcsro-section__body {
		padding: 16px;
	}
	.wcsro-products-table .col-thumb {
		display: none;
	}
}
