/* EU Withdrawal & Cancellation Form - front end
   Scoped to .drs-wd so nothing leaks into the theme. Colours come from CSS
   variables set inline from the plugin settings. */

.drs-wd {
	--drs-wd-primary: #1d4ed8;
	--drs-wd-primary-hover: #1740ac;
	--drs-wd-secondary: #0f172a;
	--drs-wd-border: #d5d9e0;
	--drs-wd-muted: #667085;
	--drs-wd-bg-soft: #f6f7f9;
}

.drs-wd-form {
	max-width: 44rem;
}

.drs-wd-title {
	margin: 0 0 0.75rem;
	color: var(--drs-wd-secondary);
}

.drs-wd-intro {
	margin: 0 0 1.5rem;
	color: var(--drs-wd-muted);
}

.drs-wd-field {
	display: block;
	margin: 0 0 1.25rem;
}

.drs-wd-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--drs-wd-secondary);
}

.drs-wd-field input[type="text"],
.drs-wd-field input[type="email"],
.drs-wd-field input[type="number"],
.drs-wd-field select,
.drs-wd-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--drs-wd-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.drs-wd-field input:focus,
.drs-wd-field select:focus,
.drs-wd-field textarea:focus {
	outline: 2px solid var(--drs-wd-primary);
	outline-offset: 1px;
}

.drs-wd-field--inline label,
.drs-wd-field--check label {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-right: 1.25rem;
	font-weight: 400;
}

.drs-wd-field--check input {
	margin-top: 0.25rem;
}

.drs-wd-required {
	color: #b42318;
}

.drs-wd-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85em;
	color: var(--drs-wd-muted);
}

.drs-wd-fieldset {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--drs-wd-border);
	border-radius: 8px;
}

.drs-wd-fieldset legend {
	padding: 0 0.4rem;
	font-weight: 600;
	color: var(--drs-wd-secondary);
}

.drs-wd-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drs-wd-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--drs-wd-border);
}

.drs-wd-line:last-child {
	border-bottom: 0;
}

.drs-wd-line-name {
	flex: 1 1 14rem;
	font-weight: 600;
}

.drs-wd-line-sku {
	font-size: 0.85em;
	color: var(--drs-wd-muted);
}

.drs-wd-line-qty {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
}

.drs-wd-line-qty input {
	width: 5rem;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--drs-wd-border);
	border-radius: 6px;
	font: inherit;
}

.drs-wd-notice {
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	background: var(--drs-wd-bg-soft);
	border-left: 4px solid var(--drs-wd-primary);
}

.drs-wd-notice--manual {
	border-left-color: #d98b00;
}

.drs-wd-errors {
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem 0.85rem 1.25rem;
	border-radius: 8px;
	background: #fef3f2;
	border-left: 4px solid #b42318;
	color: #7a271a;
}

.drs-wd-errors ul {
	margin: 0;
	padding-left: 1rem;
}

.drs-wd-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0 0;
}

.drs-wd-button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 6px;
	background: var(--drs-wd-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.drs-wd-button:hover,
.drs-wd-button:focus {
	background: var(--drs-wd-primary-hover);
	color: #fff;
}

.drs-wd-back {
	color: var(--drs-wd-muted);
	font-size: 0.9em;
}

.drs-wd-evidence {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	background: var(--drs-wd-bg-soft);
	font-size: 1.05em;
}

/* The honeypot must be unreachable for people and invisible to screen readers,
   while staying in the DOM for bots to find. display:none is skipped by some
   bots, so it is moved out of view instead. */
.drs-wd-trap {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.drs-wd-footer-link {
	margin: 1.5rem 0;
	text-align: center;
	font-size: 0.9em;
}

.drs-wd-floating {
	position: fixed;
	bottom: 1.25rem;
	z-index: 9990;
	padding: 0.65rem 1.1rem;
	border-radius: 999px;
	background: var(--drs-wd-primary);
	color: #fff;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.drs-wd-floating:hover,
.drs-wd-floating:focus {
	background: var(--drs-wd-primary-hover);
	color: #fff;
}

.drs-wd-floating--right {
	right: 1.25rem;
}

.drs-wd-floating--left {
	left: 1.25rem;
}

@media (max-width: 480px) {
	.drs-wd-line {
		align-items: flex-start;
		flex-direction: column;
	}

	.drs-wd-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.drs-wd-button {
		width: 100%;
	}
}
