/* Withdrawal form — layout ported from the OpenCart template. */

.d4uw-withdrawal,
.d4uw-model-form {
	margin-top: 24px;
}

.d4uw-title {
	margin-top: 0;
}

.d4uw-muted {
	color: #666;
}

/* Trader panel ---------------------------------------------------------- */

.d4uw-panel {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background: #fff;
	margin: 20px 0;
}

.d4uw-panel__heading {
	padding: 12px 15px;
	border-bottom: 1px solid #e5e5e5;
	background: #f7f7f7;
}

.d4uw-panel__body {
	padding: 15px;
}

.d4uw-panel address {
	margin: 0;
	font-style: normal;
	line-height: 1.6;
}

/* Form ------------------------------------------------------------------ */

.d4uw-form fieldset {
	margin: 0 0 30px;
	padding: 15px 20px;
	border: 1px solid #eee;
	border-radius: 4px;
	background: #fafafa;
}

.d4uw-form legend {
	width: auto;
	padding: 4px 12px;
	margin-bottom: 15px;
	font-size: 16px;
	color: #333;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 3px;
}

.d4uw-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.d4uw-col {
	flex: 1 1 50%;
	max-width: 50%;
	padding: 0 10px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.d4uw-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.d4uw-form input[type="text"],
.d4uw-form input[type="email"],
.d4uw-form input[type="tel"],
.d4uw-form input[type="date"],
.d4uw-form input[type="number"],
.d4uw-form select,
.d4uw-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.d4uw-field-error {
	margin-top: 4px;
	color: #b32d2e;
	font-size: 13px;
}

/* Products table -------------------------------------------------------- */

.d4uw-table-wrap {
	overflow-x: auto;
}

.d4uw-products {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.d4uw-products th,
.d4uw-products td {
	padding: 8px;
	border: 1px solid #e0e0e0;
	vertical-align: middle;
}

.d4uw-products thead th {
	background: #f5f5f5;
	text-align: left;
	white-space: nowrap;
}

.d4uw-products .d4uw-col-qty {
	width: 110px;
}

.d4uw-products .d4uw-col-date {
	width: 170px;
}

.d4uw-products .d4uw-col-action {
	width: 60px;
	text-align: center;
}

.d4uw-product-reason-other {
	margin-top: 6px;
}

/* Buttons --------------------------------------------------------------- */

.d4uw-btn {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #f7f7f7;
	color: #333;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
}

.d4uw-btn:hover {
	background: #efefef;
}

.d4uw-btn--primary {
	padding: 10px 40px;
	background: #2c3e2d;
	border-color: #2c3e2d;
	color: #fff;
	font-size: 16px;
}

.d4uw-btn--primary:hover {
	background: #24321f;
	color: #fff;
}

.d4uw-btn--remove {
	padding: 4px 10px;
	border-color: #d9534f;
	background: #fff;
	color: #d9534f;
	font-size: 16px;
	line-height: 1;
}

.d4uw-btn--remove:hover {
	background: #d9534f;
	color: #fff;
}

.d4uw-submit-wrap {
	text-align: center;
	margin: 30px 0 40px;
}

/* Declaration ----------------------------------------------------------- */

.d4uw-consent {
	max-width: 640px;
	margin: 0 auto;
}

.d4uw-consent__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0;
	line-height: 1.4;
}

.d4uw-consent__item input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
}

.d4uw-required-note {
	margin-top: 12px;
	margin-bottom: 0;
	color: #666;
	text-align: center;
}

/* Notices --------------------------------------------------------------- */

.d4uw-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.d4uw-notice--error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
}

.d4uw-notice--success {
	background: #eaf6ec;
	color: #1e4620;
	border: 1px solid #c3e6cb;
}

/* Autocomplete ---------------------------------------------------------- */

.d4uw-autocomplete {
	position: absolute;
	z-index: 10000;
	max-height: 260px;
	min-width: 220px;
	margin: 2px 0 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.18 );
}

.d4uw-autocomplete li {
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}

.d4uw-autocomplete li:hover {
	background: #f5f5f5;
}

/* Model form ------------------------------------------------------------ */

.d4uw-model-form__box {
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fafafa;
}

/* Mobile ---------------------------------------------------------------- */

@media ( max-width: 767px ) {
	.d4uw-col {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.d4uw-products thead {
		display: none;
	}

	.d4uw-products,
	.d4uw-products tbody,
	.d4uw-products tr,
	.d4uw-products td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.d4uw-products tr {
		margin-bottom: 12px;
		padding: 8px;
		border: 1px solid #ddd;
		background: #fff;
	}

	.d4uw-products td {
		border: none;
		padding: 4px 0;
	}

	.d4uw-products td:before {
		content: attr( data-label );
		display: block;
		margin-top: 6px;
		font-weight: bold;
	}

	.d4uw-products .d4uw-col-action {
		width: auto;
		text-align: left;
	}

	.d4uw-form fieldset {
		padding: 12px 10px;
	}

	.d4uw-btn--primary {
		width: 100%;
		max-width: 320px;
	}
}
