/**
 * Revamp Contract Withdrawal — form styles.
 * Minimalist, theme-friendly: inherits the theme font and only styles
 * the form's own elements (everything is scoped under .rcw-form / .rcw-notice).
 */

/* ---- Layout ---- */
.rcw-form {
	max-width: 560px;
	margin: 0 auto;
}

.rcw-form .rcw-field {
	margin: 0 0 18px;
}

/* ---- Labels & inputs ---- */
.rcw-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.rcw-form input[type="text"],
.rcw-form input[type="email"],
.rcw-form select,
.rcw-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.rcw-form input:focus,
.rcw-form select:focus,
.rcw-form textarea:focus {
	outline: 2px solid #111;
	outline-offset: 1px;
	border-color: #111;
}

.rcw-required {
	color: #c8102e;
}

/* ---- Radio group ---- */
.rcw-form .rcw-fieldset {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 12px 14px;
}

.rcw-form .rcw-fieldset legend {
	font-weight: 600;
	padding: 0 6px;
}

.rcw-form .rcw-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 6px 0;
	cursor: pointer;
}

.rcw-form .rcw-radio input {
	margin: 0;
}

/* ---- Honeypot: visually removed, still present for bots ---- */
.rcw-form .rcw-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Submit button ---- */
.rcw-form .rcw-submit {
	display: inline-block;
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.rcw-form .rcw-submit:hover {
	opacity: 0.85;
}

/* ---- Notices (success / error after submit) ---- */
.rcw-notice {
	max-width: 560px;
	margin: 0 auto 20px;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid;
}

.rcw-notice-success {
	background: #f0f9f1;
	border-color: #4caf50;
	color: #1b5e20;
}

.rcw-notice-error {
	background: #fdf1f1;
	border-color: #c8102e;
	color: #8c0b20;
}

.rcw-notice-info {
	background: #f0f5fb;
	border-color: #2271b1;
	color: #1d4e78;
}

/* ---- Contul meu → Retururi: selecția produselor ---- */
.rcw-items-box {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 12px 14px;
}

.rcw-items-title {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.rcw-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.rcw-item-row:last-child {
	border-bottom: 0;
}

.rcw-item-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
	flex: 1;
}

.rcw-item-qty-wrap {
	white-space: nowrap;
	font-size: 0.9em;
	color: #555;
}

.rcw-form .rcw-item-qty,
.rcw-item-qty {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
}

.rcw-items-warning {
	color: #c8102e;
	font-weight: 600;
	margin: 8px 0 0;
}

/* ---- Contul meu → Retururi: istoricul ---- */
.rcw-history-title {
	margin-top: 32px;
}

.rcw-history {
	width: 100%;
	border-collapse: collapse;
}

.rcw-history th,
.rcw-history td {
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
}

/* ---- Badge-uri de status ---- */
.rcw-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
	background: #eee;
	color: #444;
}

.rcw-status--nou {
	background: #e7f0fa;
	color: #1d4e78;
}

.rcw-status--in_procesare {
	background: #fdf3e0;
	color: #8a5a00;
}

.rcw-status--finalizat {
	background: #eaf6eb;
	color: #1b5e20;
}

.rcw-status--respins {
	background: #fdeaea;
	color: #8c0b20;
}
.rcw-status--primit{background:#e7f0fa;color:#1d4e78}.rcw-status--asteptare_bunuri,.rcw-status--expediat{background:#fdf3e0;color:#8a5a00}.rcw-status--receptionat,.rcw-status--rambursare{background:#e9f2ff;color:#174a7e}.rcw-status--rambursat{background:#eaf6eb;color:#1b5e20}.rcw-status--exceptie_legala{background:#fdeaea;color:#8c0b20}

/* ---- Mobile ---- */
@media (max-width: 600px) {
	.rcw-form .rcw-submit {
		width: 100%;
	}

	.rcw-item-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.rcw-history {
		display: block;
		overflow-x: auto;
	}
}
.rcw-legal-notice{padding:16px 18px;margin-bottom:20px;border-left:4px solid #111;background:#f7f7f7}
.rcw-legal-notice h2{margin:0 0 8px;font-size:1.2em}.rcw-legal-notice p{margin:6px 0}
.rcw-confirm{display:block;margin-bottom:14px;line-height:1.45}.rcw-confirm input{margin-right:7px}
.rcw-return-detail{max-width:760px}.rcw-timeline{list-style:none;margin:16px 0 28px;padding:0;border-left:3px solid #ddd}.rcw-timeline li{position:relative;margin:0;padding:0 0 22px 22px}.rcw-timeline li:before{content:"";position:absolute;left:-8px;top:5px;width:13px;height:13px;border-radius:50%;background:#111}.rcw-timeline-meta{font-size:.88em;color:#666;margin-bottom:4px}.rcw-timeline blockquote{margin:8px 0 0;padding:10px 12px;background:#f5f5f5;border-left:3px solid #999}.rcw-reply-form textarea{width:100%}
.rcw-history-row{cursor:pointer;transition:background-color .15s ease}.rcw-history-row:hover,.rcw-history-row:focus{background:#f5f7fa;outline:2px solid transparent}.rcw-history-row:focus-visible{outline:2px solid #111;outline-offset:-2px}
