:root {
	--mgww-color-text-muted: #555;
	--mgww-color-border: #ddd;
	--mgww-color-button-secondary-bg: #f3f3f3;
	--mgww-color-notice-warning-bg: rgba(255, 185, 0, .25);
	--mgww-color-notice-info-bg: rgba(34, 113, 177, .25);
	--mgww-color-notice-error-bg: rgba(214, 54, 56, .25);
	--mgww-color-status-pending-bg: #fff3cd;
	--mgww-color-status-pending-text: #856404;
	--mgww-color-status-acknowledged-bg: #cce5ff;
	--mgww-color-status-acknowledged-text: #004085;
	--mgww-color-status-accepted-bg: #d4edda;
	--mgww-color-status-accepted-text: #155724;
	--mgww-color-status-rejected-bg: #f8d7da;
	--mgww-color-status-rejected-text: #721c24;
	--mgww-color-status-completed-bg: #e2e3e5;
	--mgww-color-status-completed-text: #383d41;
	--mgww-color-button-withdrawal-text: #292929;
	--mgww-color-button-withdrawal-bg: #f5f5f5;
	--mgww-color-button-withdrawal-hover-bg: #e8e8e8;
}

.mgww-form {
	max-width: 720px;
	margin: auto;
	padding-top: 90px;
	padding-bottom: 90px;
}

.mgww-form h2 {
	margin-bottom: 1rem;
}

.mgww-intro,
.mgww-help {
	color: var(--mgww-color-text-muted);
	font-size: 0.95rem;
}

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

.mgww-notice--warning {
	background: var(--mgww-color-notice-warning-bg);
}

.mgww-notice--info {
	background: var(--mgww-color-notice-info-bg);
}

.mgww-notice--error {
	background: var(--mgww-color-notice-error-bg);
}

.mgww-withdrawal-form .form-row {
	margin-bottom: 1rem;
}

.mgww-withdrawal-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.mgww-withdrawal-form .form-control,
.mgww-withdrawal-form .form-select {
	width: 100%;
}

.mgww-products-container {
	margin: 1rem 0 1.5rem;
}

.mgww-products-list {
	border: 1px solid var(--mgww-color-border);
	padding: 1rem;
	border-radius: 4px;
}

.mgww-product-item {
	display: block;
	margin-bottom: 0.5rem;
}

.mgww-summary-table th {
	width: 35%;
	text-align: left;
	vertical-align: top;
}

.mgww-form-notice,
.mgww-step2-notice {
	color: var(--mgww-color-text-muted);
	font-size: 0.95rem;
	margin: 1.5rem 0;
	line-height: 1.5;
}

.mgww-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mgww-button--secondary {
	background: var(--mgww-color-button-secondary-bg);
}

.mgww-my-account-section {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mgww-color-border);
}

.mgww-status {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 3px;
	font-size: 0.85rem;
	font-weight: 600;
}

.mgww-status--pending { background: var(--mgww-color-status-pending-bg); color: var(--mgww-color-status-pending-text); }
.mgww-status--acknowledged { background: var(--mgww-color-status-acknowledged-bg); color: var(--mgww-color-status-acknowledged-text); }
.mgww-status--accepted { background: var(--mgww-color-status-accepted-bg); color: var(--mgww-color-status-accepted-text); }
.mgww-status--rejected { background: var(--mgww-color-status-rejected-bg); color: var(--mgww-color-status-rejected-text); }
.mgww-status--completed { background: var(--mgww-color-status-completed-bg); color: var(--mgww-color-status-completed-text); }

.mgww-product-summary {
	margin: 0;
	padding-left: 1.2rem;
}

/* Orders list button — aligned with theme view / order-again styles */
.woocommerce-orders-table__cell .woocommerce-button.withdrawal,
.mgww-my-account-section .woocommerce-button.withdrawal {
	position: relative;
	color: var(--mgww-color-button-withdrawal-text) !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	padding-left: 3rem !important;
	padding-right: 1rem !important;
	height: 40px !important;
	background: var(--mgww-color-button-withdrawal-bg) !important;
	border-radius: 50px !important;
	display: inline-flex !important;
	text-decoration: none !important;
	align-items: center !important;
	border: none !important;
	justify-content: center !important;
	transition: 0.3s !important;
	white-space: nowrap;
}

.woocommerce-orders-table__cell .woocommerce-button.withdrawal:hover,
.mgww-my-account-section .woocommerce-button.withdrawal:hover {
	background: var(--mgww-color-button-withdrawal-hover-bg) !important;
}

.woocommerce-orders-table__cell .woocommerce-button.withdrawal::before,
.mgww-my-account-section .woocommerce-button.withdrawal::before {
	content: "" !important;
	background-image: url("../images/withdrawal.svg") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
	width: 15px !important;
	height: 15px !important;
	display: inline-block !important;
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
}
