/* Contract Withdrawal module - front-end styles (public form + account section) */

/* Exception: on the "My Account" withdrawal tab, let the content column use the
   full available width (instead of the standard fixed 400px) so the items
   table lays out properly. Scoped to min-width:768px to leave the mobile
   full-width behaviour (already 100%) untouched. */
@media (min-width: 768px) {
	.mya-r.wd-mya-full {
		width: calc(100% - 300px);
	}
}

.wd-wrap {
	max-width: 820px;
	margin: 0 auto;
	padding: 20px 15px 60px;
}

.wd-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wd-step {
	display: none;
}

.wd-step.active {
	display: block;
}

.wd-card {
	border: solid 1px #e2e2e2;
	padding: 20px;
	margin-bottom: 20px;
	background: #fff;
}

.wd-card h2 {
	margin: 0 0 20px;
}

.wd-intro {
	margin-bottom: 20px;
}

.wd-intro p {
	margin: 0 0 12px;
}

.wd-intro p:last-child {
	margin-bottom: 0;
}

.wd-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.wd-row > div {
	flex: 1 1 240px;
}

.wd-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 4px;
	color: #555;
}

.wd-input,
.wd-select,
.wd-textarea {
	width: 100%;
	border: solid 1px #ccc;
	padding: 10px 12px;
	font-size: 14px;
	box-sizing: border-box;
}

.wd-error {
	color: #c0392b;
	font-size: 12px;
	margin-top: 4px;
}

.wd-msg-error {
	color: #c0392b;
	border: solid 1px #c0392b;
	background: #fdecea;
	padding: 10px 14px;
	margin-bottom: 16px;
	display: none;
}

.wd-msg-info {
	background: #f4f4f4;
	border: solid 1px #ddd;
	padding: 10px 14px;
	margin-bottom: 16px;
}

.wd-type-choice {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.wd-type-choice label {
	flex: 1 1 200px;
	border: solid 1px #ccc;
	padding: 14px;
	text-align: center;
	cursor: pointer;
}

.wd-type-choice input {
	margin-right: 6px;
}

.wd-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.wd-items-table th,
.wd-items-table td {
	border-bottom: solid 1px #e2e2e2;
	padding: 10px 8px;
	text-align: left;
	vertical-align: middle;
	font-size: 13px;
}

.wd-items-table img {
	width: 56px;
	height: auto;
}

.wd-qty-input {
	width: 70px;
	border: solid 1px #ccc;
	padding: 6px 8px;
}

.wd-items-table th.wd-col-center,
.wd-items-table td.wd-col-center {
	text-align: center;
}

.wd-return-control {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.wd-item-check {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #000;
}

.wd-item-check:disabled {
	cursor: default;
	opacity: .4;
}

.wd-qty-select {
	width: 75px;
	padding: 5px 6px;
	border: solid 1px #ccc;
	font-size: 13px;
}

.wd-summary dt {
	font-weight: 600;
	margin-top: 10px;
}

.wd-summary dd {
	margin: 0 0 4px 0;
}

.wd-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.wd-loader {
	display: none;
	font-size: 13px;
	color: #777;
}

.wd-confirm-box {
	text-align: center;
	padding: 40px 20px;
}

.wd-confirm-box .wd-public-no {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	margin: 10px 0 20px;
}

@media (max-width: 640px) {
	.wd-row > div {
		flex: 1 1 100%;
	}
}
