.woo-resi-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
	color: #1e1e1e;
}

.woo-resi-header {
	margin-bottom: 2rem;
}

.woo-resi-title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 600;
}

.woo-resi-subtitle {
	margin: 0;
	color: #646970;
	line-height: 1.5;
}

.woo-resi-step {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.woo-resi-step[hidden] {
	display: none !important;
}

.woo-resi-step h3 {
	margin: 0 0 1rem;
	font-size: 1.125rem;
}

.woo-resi-help {
	color: #646970;
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
}

.woo-resi-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.woo-resi-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 600px) {
	.woo-resi-row {
		grid-template-columns: 1fr;
	}
}

.woo-resi-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 500;
	font-size: 0.875rem;
}

.woo-resi-field .required {
	color: #d63638;
}

.woo-resi-field input,
.woo-resi-field select,
.woo-resi-field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.woo-resi-field input:focus,
.woo-resi-field select:focus,
.woo-resi-field textarea:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #2271b1;
}

.woo-resi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.woo-resi-button--primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.woo-resi-button--primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.woo-resi-button--secondary {
	background: #f6f7f7;
	color: #1e1e1e;
	border-color: #dcdcde;
}

.woo-resi-button--secondary:hover {
	background: #f0f0f1;
}

.woo-resi-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.woo-resi-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.woo-resi-notice {
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.woo-resi-notice--error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #3c1011;
}

.woo-resi-notice--info {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	color: #1e1e1e;
}

.woo-resi-notice--success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #1e4620;
}

.woo-resi-messages .woo-resi-notice {
	margin-bottom: 1rem;
}

.woo-resi-loading {
	color: #646970;
	padding: 1rem 0;
}

.woo-resi-orders-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.woo-resi-order-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	gap: 1rem;
}

.woo-resi-order-card:hover {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.woo-resi-order-card__info {
	flex: 1;
}

.woo-resi-order-card__number {
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.woo-resi-order-card__meta {
	font-size: 0.875rem;
	color: #646970;
}

.woo-resi-order-card--has-return {
	cursor: default;
	background: #f6f7f7;
}

.woo-resi-order-card--has-return:hover {
	border-color: #dcdcde;
	box-shadow: none;
}

.woo-resi-return-status {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.woo-resi-return-status--pending {
	background: #fcf9e8;
	color: #8a6d1c;
}

.woo-resi-return-status--approved {
	background: #edfaef;
	color: #1e4620;
}

.woo-resi-return-status--rejected {
	background: #fcf0f1;
	color: #8a2424;
}

.woo-resi-return-status--completed {
	background: #f0f6fc;
	color: #1a4a7a;
}

.woo-resi-return-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	text-align: right;
}

.woo-resi-rejection-reason {
	margin: 0;
	font-size: 0.8125rem;
	color: #646970;
	line-height: 1.4;
	max-width: 280px;
}

.woo-resi-order-summary {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 1.25rem;
}

.woo-resi-order-summary p {
	margin: 0.25rem 0;
	font-size: 0.9375rem;
}

.woo-resi-items-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.woo-resi-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.woo-resi-item input[type="checkbox"] {
	margin-top: 0.25rem;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.woo-resi-item__details {
	flex: 1;
}

.woo-resi-item__name {
	font-weight: 500;
	margin-bottom: 0.25rem;
}

.woo-resi-item__sku {
	font-size: 0.8125rem;
	color: #646970;
}

.woo-resi-item__qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.woo-resi-item__qty label {
	font-size: 0.8125rem;
	margin: 0;
}

.woo-resi-item__qty input {
	width: 70px;
	padding: 0.375rem 0.5rem;
}

.woo-resi-success {
	text-align: center;
	padding: 2rem 1rem;
}

.woo-resi-success-icon {
	width: 64px;
	height: 64px;
	background: #00a32a;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin: 0 auto 1rem;
}

.woo-resi-success h3 {
	margin: 0 0 0.75rem;
}

.woo-resi-success p {
	color: #646970;
	margin: 0;
}
