/* Odstąpienie od umowy — front-end styles */

.wcou-wrap {
	--wcou-border: #e7e7ea;
	--wcou-ink: #1a1a1f;
	--wcou-muted: #6b6b73;
	--wcou-soft: #f6f6f8;
	max-width: 720px;
	margin: 0 auto;
	padding: 28px 30px 30px;
	background: #fff;
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-form-radius, 16px);
	box-shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 8px 28px rgba(17, 17, 26, .06);
	color: var(--wcou-ink);
	font-size: 15px;
	line-height: 1.55;
}

.wcou-wrap * {
	box-sizing: border-box;
}

.wcou-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.01em;
}

.wcou-lead {
	margin: 0 0 18px;
	color: var(--wcou-muted);
}

/* Step indicator */
.wcou-steps {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--wcou-muted);
}

.wcou-steps span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.wcou-steps i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wcou-soft);
	border: 1px solid var(--wcou-border);
	font-style: normal;
	font-size: 12px;
	color: var(--wcou-muted);
}

.wcou-steps .is-active i {
	background: var(--wcou-ink);
	border-color: var(--wcou-ink);
	color: #fff;
}

.wcou-steps .is-done i {
	background: #e8f6ee;
	border-color: #bfe6cf;
	color: #1e7a45;
}

.wcou-steps .is-active {
	color: var(--wcou-ink);
}

.wcou-steps-sep {
	flex: 0 0 26px;
	height: 1px;
	background: var(--wcou-border);
}

/* Items table */
.wcou-items {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 20px;
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 12px);
	overflow: hidden;
}

.wcou-items th,
.wcou-items td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--wcou-border);
	vertical-align: middle;
}

.wcou-items thead th {
	background: var(--wcou-soft);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wcou-muted);
	font-weight: 700;
}

.wcou-items tbody tr:last-child td {
	border-bottom: 0;
}

.wcou-items input[type="number"] {
	width: 84px;
	padding: 8px 10px;
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 8px);
	font-size: 15px;
}

/* Fields */
.wcou-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 18px;
}

.wcou-field label {
	font-weight: 600;
	font-size: 14px;
}

.wcou-field input[type="text"],
.wcou-field input[type="email"],
.wcou-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 10px);
	font-size: 15px;
	background: #fff;
	color: var(--wcou-ink);
}

.wcou-field input:focus,
.wcou-field textarea:focus,
.wcou-items input:focus {
	outline: none;
	border-color: var(--wcou-ink);
	box-shadow: 0 0 0 3px rgba(17, 17, 26, .08);
}

.wcou-hint {
	font-size: 13px;
	color: var(--wcou-muted);
}

/* Review summary */
.wcou-summary {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 12px);
	overflow: hidden;
}

.wcou-summary li {
	padding: 12px 16px;
	border-bottom: 1px solid var(--wcou-border);
	font-weight: 600;
}

.wcou-summary li:last-child {
	border-bottom: 0;
}

.wcou-reason {
	color: var(--wcou-muted);
	margin: 0 0 16px;
}

.wcou-agree {
	display: flex;
	margin: 18px 0;
	padding: 14px 16px;
	background: var(--wcou-soft);
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 12px);
}

.wcou-agree label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
	cursor: pointer;
}

.wcou-agree input[type="checkbox"] {
	margin-top: 2px;
	width: 18px;
	height: 18px;
}

/* Actions */
.wcou-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wcou-inline-cta {
	margin: 18px 0 0;
}

.wcou-btn-secondary {
	background: transparent;
	border: 1px solid var(--wcou-border);
	color: var(--wcou-muted);
	padding: 13px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.wcou-btn-secondary:hover {
	border-color: var(--wcou-muted);
	color: var(--wcou-ink);
}

/* Messages */
.wcou-error {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fdecec;
	border: 1px solid #f5c2c0;
	border-radius: 10px;
	color: #a02020;
	font-weight: 600;
}

.wcou-success {
	text-align: center;
	padding: 8px 0 4px;
}

.wcou-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e8f6ee;
	color: #1e7a45;
}

.wcou-success .wcou-title {
	margin-bottom: 8px;
}

.wcou-success p {
	color: var(--wcou-muted);
	max-width: 460px;
	margin: 0 auto 8px;
}

/* Honeypot */
.wcou-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

@media (max-width: 600px) {
	.wcou-wrap {
		padding: 22px 18px 24px;
		border-radius: 14px;
	}
	.wcou-title {
		font-size: 20px;
	}
	.wcou-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
}

/* Declaration block + print */
.wcou-decl-heading {
	margin: 22px 0 8px;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}

.wcou-declaration {
	text-align: left;
	white-space: pre-wrap;
	word-wrap: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wcou-ink);
	background: var(--wcou-soft);
	border: 1px solid var(--wcou-border);
	border-radius: var(--wcou-input-radius, 10px);
	padding: 16px 18px;
	margin: 0 0 16px;
	overflow: auto;
}

.wcou-actions-center {
	justify-content: center;
}

/* --- v1.3.0: items excluded from the right of withdrawal (art. 38) --- */
.wcou-items tr.wcou-item-excluded {
	opacity: .62;
}
.wcou-items tr.wcou-item-excluded input[type="number"] {
	cursor: not-allowed;
}
.wcou-excluded-tag {
	display: inline-block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #8a6d3b;
}

/* --- v1.3.0: items already covered by a previous withdrawal --- */
.wcou-items tr.wcou-item-withdrawn {
	opacity: .6;
}
.wcou-withdrawn-tag {
	display: inline-block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #2b6cb0;
}
