/* Retragerea din contract: pagina formularului, caseta din comandă și linkul din subsol. Culorile și fonturile
   rămân ale temei; aici doar așezarea, ca formularul să arate îngrijit pe orice temă. */

.guse-withdrawal { max-width: 760px; }
.guse-withdrawal__lead { font-size: 1.05em; }

.guse-withdrawal__card {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 20px;
}
.guse-withdrawal__card h3,
.guse-withdrawal__card legend { margin-top: 0; font-size: 1.1em; font-weight: 600; }
.guse-withdrawal fieldset.guse-withdrawal__card legend { padding: 0 6px; }

/* Câmpurile pe temele care nu le stilizează (temele bloc); `:where` = prioritate zero, deci tema câștigă oricând. */
:where(.guse-withdrawal) :where(input.input-text, select, textarea) {
	padding: .6em .75em;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
}
:where(.guse-withdrawal) label { display: block; margin-bottom: 4px; }
:where(.guse-withdrawal__items, .guse-withdrawal__methods) label { display: flex; }

/* Rândurile late trec sub cele două pe jumătate: altfel (fără CSS-ul de layout WooCommerce, pe temele bloc) un
   rând cu `opacity` le acoperea și câmpurile de deasupra nu mai primeau click. */
.guse-withdrawal .form-row { margin: 0 0 14px; }
.guse-withdrawal .form-row-wide,
.guse-withdrawal .clear { clear: both; }
.guse-withdrawal input.input-text,
.guse-withdrawal select,
.guse-withdrawal textarea { width: 100%; box-sizing: border-box; }
@media (min-width: 601px) {
	.guse-withdrawal .form-row-first,
	.guse-withdrawal .form-row-last { width: 48%; }
	.guse-withdrawal .form-row-first { float: left; }
	.guse-withdrawal .form-row-last { float: right; }
}

.guse-withdrawal__orders,
.guse-withdrawal__items { list-style: none; margin: 0; padding: 0; }
.guse-withdrawal__orders li,
.guse-withdrawal__items li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, .08);
}
.guse-withdrawal__orders li:first-child,
.guse-withdrawal__items li:first-child { border-top: 0; }
.guse-withdrawal__items li.is-done { opacity: .55; }
.guse-withdrawal__items label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.guse-withdrawal__items select { width: auto; min-width: 90px; }
.guse-withdrawal__qty { white-space: nowrap; opacity: .75; }

.guse-withdrawal__label { display: block; margin-bottom: 4px; }
.guse-withdrawal__methods label { align-items: center; gap: 8px; margin: 4px 0; }
.guse-withdrawal__field-error { display: block; margin-top: 4px; color: #b32d2e; font-size: .9em; }
.guse-withdrawal__legal,
.guse-withdrawal__hint,
.guse-withdrawal__meta { opacity: .8; font-size: .95em; }
.guse-withdrawal__confirm[disabled] { opacity: .6; cursor: wait; }

.guse-withdrawal__summary { width: 100%; border-collapse: collapse; }
.guse-withdrawal__summary th { width: 40%; padding: 8px 12px 8px 0; text-align: left; vertical-align: top; font-weight: 600; }
.guse-withdrawal__summary td { padding: 8px 0; }

.guse-withdrawal-box { margin: 2em 0; }

/* Linkul de pe toate paginile: discret, dar vizibil și ușor de găsit (cerința legii). */
.guse-withdrawal-footer { padding: 12px 16px; text-align: center; font-size: 14px; }

/* „Contul meu” → Retururi: tabelul e al temei (clasele WooCommerce de la Comenzi); aici doar detaliile stării. */
.guse-returns-table__status small { opacity: .8; }
.guse-withdrawal__open { margin-top: 2em; }
