/* Wado Online Withdrawal — front-end form styles */

.wado-form-host {
	--wado-primary: #2271b1;
	--wado-primary-dark: #135e96;
	--wado-primary-text: #ffffff;
	--wado-text: inherit;
	--wado-bg: transparent;
	--wado-border: #000;
	--wado-error: #cc1818;
	--wado-success: #00a32a;
	--wado-radius: 4px;
	--wado-gap: 1rem;
	position: relative;
	color: var(--wado-text);
	background: var(--wado-bg);
}

/* Live region (ARIA) */
.wado-live-region {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

/* Screen reader only */
.wado-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

/* Wrapper */
.wado-form-wrapper {
	max-width: 640px;
	margin: 0 auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--wado-border);
	border-radius: var(--wado-radius);
}

.wado-form-wrapper h2 {
	margin-top: 0;
	font-size: 1.4em;
}

/* Pre-text (above the form section) */
.wado-pre-text {
	max-width: 640px;
	margin: 0 auto var(--wado-gap);
	font-size: .9em;
	color: #50575e;
}
.wado-pre-text p:last-child { margin-bottom: 0; }

/* Intro & disclaimer */
.wado-intro,
.wado-disclaimer {
	font-size: .9em;
	color: #50575e;
	margin-top: var(--wado-gap);
	margin-bottom: var(--wado-gap);
}

/* Success */
.wado-success {
	background: #edfaef;
	border: 1px solid #00a32a;
	border-radius: var(--wado-radius);
	padding: 1rem;
	margin-bottom: var(--wado-gap);
	color: #1a4d2b;
}
.wado-success-note {
	font-size: .85em;
	margin: .5rem 0 0;
}

/* Error summary */
.wado-error-summary {
	background: #fef0f0;
	border: 1px solid var(--wado-error);
	border-radius: var(--wado-radius);
	padding: .75rem 1rem;
	margin-bottom: var(--wado-gap);
	color: var(--wado-error);
}
.wado-error-summary p { margin: 0; }

/* Fieldset */
.wado-fieldset legend {
	font-weight: 600;
}

/* Fields */
.wado-field {
	margin: 0 0 .75rem;
}
.wado-field label {
	display: block;
	font-weight: 600;
	margin-bottom: .3rem;
}
.wado-field input[type="text"],
.wado-field input[type="email"],
.wado-field input[type="number"],
.wado-field select,
.wado-field textarea {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid var(--wado-border);
	border-radius: var(--wado-radius);
	font-size: 1rem;
	box-sizing: border-box;
}
.wado-field input:focus,
.wado-field select:focus,
.wado-field textarea:focus {
	outline: 2px solid var(--wado-primary);
	outline-offset: 1px;
	border-color: var(--wado-primary);
}
.wado-field.has-error input,
.wado-field.has-error select,
.wado-field.has-error textarea {
	border-color: var(--wado-error);
}
.wado-required {
	color: var(--wado-error);
	margin-left: .15rem;
}
.wado-field-error {
	display: block;
	color: var(--wado-error);
	font-size: .875em;
	margin-top: .25rem;
}
.wado-help {
	display: block;
	font-size: .85em;
	color: #646970;
	margin-top: .25rem;
}

/* Items table */
.wado-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: .5rem;
	margin-bottom: var(--wado-gap);
}
.wado-items-table th,
.wado-items-table td {
	padding: .4rem .5rem;
	border: 1px solid #e3e3e3;
	text-align: left;
	vertical-align: middle;
}
.wado-items-table thead th {
	background: #f6f7f7;
	font-weight: 600;
}
.wado-items-table__num {
	text-align: center;
	width: 6rem;
}
.wado-items-table input[type="number"] {
	width: 4.5rem;
	padding: .3rem .4rem;
	text-align: center;
}

/* Submit button */
.wado-submit {
	margin: var(--wado-gap) 0 0;
}
.wado-button {
	background: var(--wado-primary);
	color: var(--wado-primary-text);
	border: none;
	border-radius: var(--wado-radius);
	padding: .6rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: background .2s;
}
.wado-button:hover,
.wado-button:focus {
	background: var(--wado-primary-hover, var(--wado-primary-dark));
	color: var(--wado-primary-hover-text, var(--wado-primary-text));
}
.wado-button:focus {
	outline: 2px solid var(--wado-primary-hover, var(--wado-primary-dark));
	outline-offset: 2px;
}
.wado-button-link {
	background: none;
	border: none;
	color: var(--wado-primary);
	cursor: pointer;
	font-size: .9rem;
	padding: 0;
	text-decoration: underline;
}
.wado-button-link:hover {
	color: var(--wado-primary-dark);
}

/* Cancel form */
.wado-cancel-form {
	margin-top: .75rem;
}

/* Loading state */
.wado-form-host[aria-busy="true"] .wado-button {
	opacity: .6;
	cursor: wait;
}

/* Excluded items in step-2 table */
.wado-item-excluded td,
.wado-item-excluded th {
	opacity: .55;
}
.wado-item-excluded input[disabled] {
	cursor: not-allowed;
	background: #f0f0f1;
}
.wado-item-name {
	display: block;
}
.wado-excl-badge {
	display: inline-block;
	margin-top: .2em;
	font-size: .72em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #f8d7da;
	color: #721c24;
	padding: .15em .45em;
	border-radius: 3px;
	cursor: help;
}

/* All-excluded product list (step-1 error state) */
.wado-excluded-list {
	background: #fff8e1;
	border: 1px solid #f0c040;
	border-radius: var(--wado-radius);
	padding: .75rem 1rem;
	margin-bottom: var(--wado-gap);
}
.wado-excluded-list__lead {
	font-weight: 600;
	margin: 0 0 .5rem;
}
.wado-excluded-list__items {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}
.wado-excluded-list__items li {
	margin: .25rem 0;
}

/* My Account — withdrawal page */
.wado-items-cell {
	font-size: .9em;
	line-height: 1.5;
}
.wado-action-cell {
	text-align: right;
	white-space: nowrap;
}
.wado-account-note {
	display: block;
	font-size: .78em;
	color: #996400;
	margin-top: .3em;
}

/* My Account inline exclusion dot */
.wado-item-row-excl {
	color: #721c24;
	cursor: help;
}
.wado-excl-dot {
	display: inline-block;
	width: .55em;
	height: .55em;
	border-radius: 50%;
	background: #dc3545;
	vertical-align: middle;
	margin-right: .3em;
}

/* My Account status badges */
.wado-account-badge {
	display: inline-block;
	font-size: .78em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: .2em .6em;
	border-radius: 3px;
	background: #e2e8f0;
	color: #2d3748;
}
.wado-account-badge--new        { background: #dbeafe; color: #1e40af; }
.wado-account-badge--processing { background: #fef3c7; color: #92400e; }
.wado-account-badge--accepted   { background: #d1fae5; color: #065f46; }
.wado-account-badge--rejected   { background: #fee2e2; color: #991b1b; }
.wado-account-badge--closed     { background: #e5e7eb; color: #4b5563; }
.wado-account-badge--excluded   { background: #f8d7da; color: #721c24; cursor: help; }

/* My withdrawals table */
.wado-my-withdrawals-table { margin-top: .5rem; }
.wado-uid-code {
	font-family: monospace;
	font-size: .85em;
	background: #f3f4f6;
	padding: .1em .4em;
	border-radius: 3px;
}
