/**
 * Withdrawal plugin – frontend styles.
 */

/* --- Withdrawal section (order detail) --- */
.wcos-withdrawal-section {
	margin: 2em 0;
	padding: 1.5em;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.wcos-withdrawal-section h2 {
	margin-top: 0;
	font-size: 1.2em;
}

.wcos-deadline-info {
	color: #555;
	font-size: 0.95em;
}

/* --- Withdrawal button --- */
.wcos-withdrawal-button {
	display: inline-block;
	padding: 0.75em 1.5em !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

/* --- Expired notice --- */
.wcos-expired {
	background: #fefce8;
	border-color: #f5c518;
}

.wcos-expired-notice {
	color: #92400e;
}

/* --- Already withdrawn info --- */
.wcos-withdrawn {
	background: #fef2f2;
	border-color: #ef4444;
}

.wcos-withdrawal-info-box {
	color: #991b1b;
}

.wcos-info-note {
	color: #666;
	font-size: 0.9em;
	font-style: italic;
}

/* --- Withdrawal form --- */
.wcos-withdrawal-form-wrap {
	max-width: 640px;
}

.wcos-form-intro {
	margin-bottom: 1.5em;
}

.wcos-withdrawal-form .wcos-form-row {
	margin-bottom: 1.2em;
}

.wcos-withdrawal-form label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
	font-size: 0.95em;
}

.wcos-withdrawal-form input[type="text"],
.wcos-withdrawal-form input[type="email"],
.wcos-withdrawal-form textarea {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.wcos-withdrawal-form input[readonly] {
	background: #f5f5f5;
	color: #666;
}

.wcos-withdrawal-form textarea {
	resize: vertical;
}

/* --- Confirmation area --- */
.wcos-form-confirm {
	margin-top: 2em;
	padding: 1.2em;
	background: #fff8f0;
	border: 1px solid #f5c518;
	border-radius: 6px;
	text-align: center;
}

.wcos-confirm-notice {
	margin-bottom: 1em;
	color: #92400e;
	font-size: 0.95em;
}

.wcos-confirm-button {
	padding: 0.8em 2em !important;
	font-size: 1.05em !important;
	font-weight: 700 !important;
}

/* --- Success --- */
.wcos-withdrawal-success {
	max-width: 640px;
	margin: 2em auto;
}

.wcos-withdrawal-success .woocommerce-message {
	margin-bottom: 1.5em;
}

/* --- Centered card layout (lookup + form) --- */
.wcos-withdrawal-lookup,
.wcos-withdrawal-form-wrap {
	max-width: 560px;
	margin: 2em auto;
	padding: 2em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.wcos-withdrawal-lookup h2,
.wcos-withdrawal-form-wrap h2 {
	margin-top: 0;
	text-align: center;
}

.wcos-withdrawal-lookup > p:first-of-type,
.wcos-withdrawal-form-wrap .wcos-form-intro {
	text-align: center;
	color: #555;
}

/* Lookup form: full-width submit + centered helper link */
.wcos-lookup-form button[type="submit"] {
	width: 100%;
	padding: 0.8em 2em !important;
	font-size: 1.05em !important;
	font-weight: 700 !important;
}

.wcos-lookup-alt {
	margin-top: 1.5em;
	text-align: center;
	font-size: 0.95em;
	color: #666;
}
