/* Odstúpenie od zmluvy — front-end form. Intentionally minimal; inherits theme
   typography. Scoped under .wc-odstupenie to avoid leaking into the theme. */

.wc-odstupenie {
	max-width: 640px;
}

.wc-odstupenie-field {
	margin-bottom: 1.25em;
	display: flex;
	flex-direction: column;
}

.wc-odstupenie-field label {
	font-weight: 600;
	margin-bottom: 0.35em;
}

.wc-odstupenie-field .required {
	color: #b32d2e;
}

.wc-odstupenie-field .optional {
	font-weight: 400;
	color: #757575;
	font-size: 0.85em;
}

.wc-odstupenie-field input,
.wc-odstupenie-field select,
.wc-odstupenie-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55em 0.7em;
}

.wc-odstupenie-order-row {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
}

.wc-odstupenie-order-row .wc-odstupenie-field {
	flex: 1 1 200px;
}

.wc-odstupenie-field.has-error input,
.wc-odstupenie-field.has-error select {
	border-color: #b32d2e;
}

.wc-odstupenie-error {
	color: #b32d2e;
	font-size: 0.85em;
	margin-top: 0.3em;
}

.wc-odstupenie-statement {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1em 1.2em;
	margin: 1.5em 0;
	background: #fafafa;
}

.wc-odstupenie-statement-text {
	margin-top: 0;
}

.wc-odstupenie-ack {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	font-weight: 400;
}

.wc-odstupenie-ack.has-error {
	color: #b32d2e;
}

.wc-odstupenie-load {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin: 1em 0;
}

.wc-odstupenie-load-status.is-error {
	color: #b32d2e;
}

.wc-odstupenie-items {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1em 1.2em;
	margin: 1.5em 0;
}

.wc-odstupenie-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.6em 0;
	border-bottom: 1px solid #f0f0f0;
}

.wc-odstupenie-item:last-child {
	border-bottom: none;
}

.wc-odstupenie-item-qty input {
	width: 5em;
	padding: 0.35em;
}

.wc-odstupenie-item-exempt {
	flex-basis: 100%;
	color: #8a6d00;
	font-size: 0.85em;
	margin: 0;
}

.wc-odstupenie-notice {
	padding: 0.9em 1.1em;
	border-radius: 6px;
	margin-bottom: 1.25em;
}

.wc-odstupenie-notice--error {
	background: #fdecea;
	border: 1px solid #f5c6cb;
}

.wc-odstupenie-notice--success {
	background: #edf7ed;
	border: 1px solid #c3e6cb;
}

.wc-odstupenie-summary {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.wc-odstupenie-summary th,
.wc-odstupenie-summary td {
	text-align: left;
	padding: 0.5em 0.6em;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.wc-odstupenie-summary th {
	width: 38%;
	color: #555;
	font-weight: 600;
}

.wc-odstupenie-actions {
	display: flex;
	gap: 0.75em;
	align-items: center;
}

.wc-odstupenie-footer-link {
	display: inline-block;
	margin: 0 0.75em;
}
