.wb-withdrawal-form {
	--wb-ink: #1c2b33;
	--wb-muted: #64707a;
	--wb-line: #e3e7ea;
	--wb-surface: #fbfbfc;
	--wb-accent: #2c6e63;
	--wb-accent-dark: #1f4f47;
	--wb-accent-soft: #e7f2ef;
	--wb-danger: #b3261e;
	--wb-danger-soft: #fbecec;
	--wb-warn-bg: #fff8e6;
	--wb-warn-border: #e3c26a;

	max-width: 560px;
	margin: 0 auto;
	padding: 2em 2.25em;
	background: #fff;
	border: 1px solid var( --wb-line );
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba( 20, 30, 35, 0.04 ), 0 12px 28px -18px rgba( 20, 30, 35, 0.25 );
	color: var( --wb-ink );
	box-sizing: border-box;
}

.wb-withdrawal-form *,
.wb-withdrawal-form *::before,
.wb-withdrawal-form *::after {
	box-sizing: border-box;
}

.wb-withdrawal-form h3 {
	margin: 0 0 1.1em;
	font-size: 1.25em;
	color: var( --wb-ink );
}

/* Step indicator */
.wb-withdrawal-form .wb-step-indicator {
	display: flex;
	align-items: center;
	margin-bottom: 0.5em;
}

.wb-withdrawal-form .wb-step-dot {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var( --wb-surface );
	border: 2px solid var( --wb-line );
	color: var( --wb-muted );
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85em;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wb-withdrawal-form .wb-step-dot-check {
	display: none;
}

.wb-withdrawal-form .wb-step-dot-active {
	border-color: var( --wb-accent );
	color: var( --wb-accent );
	background: var( --wb-accent-soft );
}

.wb-withdrawal-form .wb-step-dot-done {
	border-color: var( --wb-accent );
	background: var( --wb-accent );
	color: #fff;
}

.wb-withdrawal-form .wb-step-dot-done .wb-step-dot-num {
	display: none;
}

.wb-withdrawal-form .wb-step-dot-done .wb-step-dot-check {
	display: block;
}

.wb-withdrawal-form .wb-step-track {
	flex: 1 1 auto;
	height: 2px;
	background: var( --wb-line );
	margin: 0 6px;
	border-radius: 2px;
	overflow: hidden;
}

.wb-withdrawal-form .wb-step-track-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var( --wb-accent );
	transition: width 0.25s ease;
}

.wb-withdrawal-form .wb-step-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.78em;
	color: var( --wb-muted );
	margin: 0.4em 0 1.75em;
	letter-spacing: 0.01em;
}

.wb-withdrawal-form .wb-step-labels span:last-child {
	text-align: right;
}

.wb-withdrawal-form .wb-step-labels span:nth-child( 2 ) {
	text-align: center;
}

/* Fields */
.wb-withdrawal-form .wb-field {
	margin-bottom: 1.25em;
}

.wb-withdrawal-form label {
	display: block;
	font-weight: 600;
	font-size: 0.92em;
	margin-bottom: 0.4em;
	color: var( --wb-ink );
}

.wb-withdrawal-form .wb-input {
	width: 100%;
	padding: 0.65em 0.8em;
	font-size: 1em;
	border: 1px solid #cfd6db;
	border-radius: 8px;
	background: #fff;
	color: var( --wb-ink );
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wb-withdrawal-form .wb-input:focus {
	outline: none;
	border-color: var( --wb-accent );
	box-shadow: 0 0 0 3px var( --wb-accent-soft );
}

.wb-withdrawal-form select.wb-input {
	appearance: none;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364707a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 0.9em center;
	padding-right: 2.2em;
}

/* Buttons */
.wb-withdrawal-form .button {
	border-radius: 8px;
	padding: 0.65em 1.4em;
	font-weight: 600;
	font-size: 0.95em;
	height: auto;
	line-height: 1.3;
	border: 1px solid transparent;
}

.wb-withdrawal-form .button-primary,
.wb-withdrawal-form .button-primary:focus {
	background: var( --wb-accent );
	border-color: var( --wb-accent );
	color: #fff;
	box-shadow: none;
	text-shadow: none;
}

.wb-withdrawal-form .button-primary:hover {
	background: var( --wb-accent-dark );
	border-color: var( --wb-accent-dark );
	color: #fff;
}

.wb-withdrawal-form .button-primary:disabled {
	opacity: 0.6;
}

.wb-withdrawal-form .wb-step-1 > .button {
	margin-top: 0.25em;
}

.wb-withdrawal-form .wb-step-actions {
	display: flex;
	align-items: center;
	gap: 1.25em;
	margin-top: 1.5em;
	flex-wrap: wrap;
}

.wb-withdrawal-form .wb-btn-back {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0.65em 0;
	margin: 0;
	color: var( --wb-muted );
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	appearance: none;
}

.wb-withdrawal-form .wb-btn-back:hover,
.wb-withdrawal-form .wb-btn-back:focus {
	color: var( --wb-accent-dark );
	text-decoration: underline;
	box-shadow: none;
	outline: none;
}

/* Statement + IBAN */
.wb-withdrawal-form .wb-statement {
	background: var( --wb-surface );
	border: 1px solid var( --wb-line );
	border-radius: 10px;
	padding: 1em 1.1em;
}

.wb-withdrawal-form .wb-statement label {
	display: flex;
	gap: 0.7em;
	font-weight: normal;
	font-size: 0.92em;
	line-height: 1.5;
	align-items: flex-start;
	margin: 0;
	color: var( --wb-ink );
}

.wb-withdrawal-form .wb-statement input[ type="checkbox" ] {
	margin-top: 0.2em;
	width: 18px;
	height: 18px;
	accent-color: var( --wb-accent );
	flex: 0 0 auto;
}

.wb-withdrawal-form .wb-iban-field {
	margin-top: 1.25em;
}

.wb-withdrawal-form .wb-iban-error {
	display: block;
	margin-top: 0.4em;
	font-size: 0.85em;
	color: var( --wb-danger );
	font-weight: 600;
}

/* Messages */
.wb-withdrawal-form .wb-message {
	margin-top: 1em;
	font-weight: 600;
	font-size: 0.92em;
}

.wb-withdrawal-form .wb-message:not( :empty ) {
	padding: 0.7em 0.9em;
	border-radius: 8px;
}

.wb-withdrawal-form .wb-message-error {
	color: var( --wb-danger );
	background: var( --wb-danger-soft );
	border: 1px solid #f0c9c6;
}

/* Review summary */
.wb-withdrawal-form .wb-review-summary {
	display: grid;
	grid-template-columns: max-content minmax( 0, 1fr );
	gap: 0.5em 1.25em;
	margin: 0 0 1.25em;
	padding: 1.1em 1.25em;
	background: var( --wb-surface );
	border: 1px solid var( --wb-line );
	border-radius: 10px;
	font-size: 0.94em;
}

.wb-withdrawal-form .wb-review-summary dt {
	font-weight: 600;
	color: var( --wb-muted );
}

.wb-withdrawal-form .wb-review-summary dd {
	margin: 0;
	color: var( --wb-ink );
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.wb-withdrawal-form .wb-items-select {
	margin: 0 0 1.25em;
}

.wb-withdrawal-form .wb-items-select-label {
	font-weight: 600;
	font-size: 0.92em;
	margin: 0 0 0.6em;
	color: var( --wb-ink );
}

.wb-withdrawal-form .wb-item-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var( --wb-line );
	border-radius: 10px;
	overflow: hidden;
}

.wb-withdrawal-form .wb-item {
	border-bottom: 1px solid var( --wb-line );
}

.wb-withdrawal-form .wb-item:last-child {
	border-bottom: none;
}

.wb-withdrawal-form .wb-item-label {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.75em 1em;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.wb-withdrawal-form .wb-item-label:hover {
	background: var( --wb-surface );
}

.wb-withdrawal-form .wb-item-checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var( --wb-accent );
}

.wb-withdrawal-form .wb-item-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var( --wb-line );
	background: #fff;
}

.wb-withdrawal-form .wb-item-info {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	min-width: 0;
}

.wb-withdrawal-form .wb-item-name {
	font-weight: 600;
	font-size: 0.94em;
	color: var( --wb-ink );
}

.wb-withdrawal-form .wb-item-meta {
	font-size: 0.82em;
	color: var( --wb-muted );
}

.wb-withdrawal-form .wb-item-excluded-tag {
	display: inline-block;
	margin-top: 0.3em;
	padding: 0.15em 0.6em;
	font-size: 0.75em;
	font-weight: 600;
	color: #6b5310;
	background: var( --wb-warn-bg );
	border: 1px solid var( --wb-warn-border );
	border-radius: 999px;
	width: fit-content;
}

.wb-withdrawal-form .wb-items-message:empty {
	margin: 0;
}

.wb-withdrawal-form .wb-excluded-notice {
	background: var( --wb-warn-bg );
	border: 1px solid var( --wb-warn-border );
	border-radius: 10px;
	padding: 0.85em 1.1em;
	margin-bottom: 1.25em;
	font-size: 0.92em;
	color: #6b5310;
}

/* Confirmation */
.wb-withdrawal-form .wb-confirmation {
	text-align: center;
	padding: 0.5em 0.5em 0.25em;
}

.wb-withdrawal-form .wb-confirmation-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 0.9em;
	border-radius: 50%;
	background: var( --wb-accent-soft );
	color: var( --wb-accent );
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6em;
	font-weight: 700;
}

.wb-withdrawal-form .wb-confirmation h3 {
	text-align: center;
}

.wb-withdrawal-form .wb-confirmation > p {
	color: var( --wb-muted );
	max-width: 40em;
	margin-left: auto;
	margin-right: auto;
}

.wb-withdrawal-form .wb-confirmation-details {
	list-style: none;
	margin: 1.1em 0;
	padding: 1em 1.25em;
	background: var( --wb-surface );
	border: 1px solid var( --wb-line );
	border-radius: 10px;
	text-align: left;
	display: grid;
	gap: 0.5em;
}

.wb-withdrawal-form .wb-confirmation-details strong {
	color: var( --wb-muted );
	font-weight: 600;
	margin-right: 0.4em;
}

@media ( max-width: 600px ) {
	.wb-withdrawal-form {
		padding: 1.5em 1.25em;
		border-radius: 10px;
	}

	.wb-withdrawal-form .wb-step-labels {
		font-size: 0.72em;
	}
}

/*
 * !important is used for position/z-index on the floating button and modal-close because many
 * themes ship a low-specificity but tie-breaking-by-source-order rule like
 * `:is(.btn, .button, button, [type="submit"], [type="button"]) { position: relative }` — the
 * :is() specificity is that of its most specific argument (a class), which ties our single-class
 * selector, and the theme stylesheet usually loads after ours, so it wins without !important.
 */
.wb-floating-button {
	position: fixed !important;
	z-index: 9999 !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
}

.wb-floating-button.wb-floating-button-branded {
	padding: 0.75em 1.25em;
	border-radius: 999px;
	border: none;
	font-weight: 600;
	background: var( --wb-floating-bg, #2c3e50 );
	color: var( --wb-floating-color, #fff );
}

.wb-floating-modal {
	position: fixed !important;
	inset: 0;
	z-index: 10000 !important;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, 0.5 );
}

.wb-floating-modal.wb-floating-modal-open {
	display: flex;
}

.wb-floating-modal-inner {
	background: #fff;
	max-width: 560px;
	width: 92%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 2em;
	position: relative;
	border-radius: 6px;
}

.wb-floating-modal-close {
	position: absolute !important;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.5em;
	cursor: pointer;
	line-height: 1;
}
