/*
 * Obrazec za odstop od pogodbe.
 * Barve lahko prilagodite v temi, npr.: .odp-form { --odp-accent: #0a7c3e; }
 */
.odp-form {
	--odp-accent: #d63638;
	--odp-border: #e2e4e7;
	--odp-input-border: #cfd3d8;
	--odp-text-muted: #6b7280;
	--odp-radius: 10px;
	max-width: 860px;
}

.odp-form .odp-intro {
	color: var(--odp-text-muted);
	margin-bottom: 1.5em;
}

/* Kartice */
.odp-card {
	border: 1px solid var(--odp-border);
	border-radius: var(--odp-radius);
	background: #fff;
	margin: 0 0 1.25em;
}

.odp-card-title {
	margin: 0 !important;
	padding: 14px 20px;
	border-bottom: 1px solid var(--odp-border);
}

.odp-card-body {
	padding: 20px;
}

/* Dva stolpca: levo – desno */
.odp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.odp-full {
	grid-column: 1 / -1;
}

@media (max-width: 640px) {
	.odp-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.odp-card-body {
		padding: 16px;
	}
}

/* Polja */
.odp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.odp-form [hidden] {
	display: none !important;
}

.odp-label {
	margin: 0;
}

.odp-label .required {
	color: var(--odp-accent);
	text-decoration: none;
	border: 0;
}

.odp-form input.input-text,
.odp-form textarea,
.odp-items .odp-qty input {
	font: inherit; /* pisava teme */
}

.odp-form input.input-text,
.odp-form textarea {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--odp-input-border);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.odp-form textarea {
	min-height: 110px;
	resize: vertical;
}

.odp-form input.input-text::placeholder,
.odp-form textarea::placeholder {
	color: #a0a5ab;
}

.odp-form input.input-text:focus,
.odp-form textarea:focus {
	outline: none;
	border-color: var(--odp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--odp-accent) 18%, transparent);
}

.odp-form input[type="radio"],
.odp-form input[type="checkbox"] {
	accent-color: var(--odp-accent);
	width: 16px;
	height: 16px;
	margin: 0;
}

.odp-static {
	padding: 10px 0;
}

/* Izbira: celoten nakup / posamezni izdelki */
.odp-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
}

@media (max-width: 640px) {
	.odp-choices {
		grid-template-columns: minmax(0, 1fr);
	}
}

.odp-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--odp-input-border);
	border-radius: 6px;
	cursor: pointer;
	margin: 0;
	transition: border-color 0.15s, background-color 0.15s;
}

.odp-choice:has(input:checked) {
	border-color: var(--odp-accent);
	background: color-mix(in srgb, var(--odp-accent) 6%, #fff);
}

/* Izdelki naročila */
.odp-items {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: 1px solid var(--odp-border);
	border-radius: 6px;
}

.odp-items th,
.odp-items td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--odp-border);
	text-align: left;
	vertical-align: middle;
}

.odp-items thead th {
	color: var(--odp-text-muted);
	background: #f8f9fa;
}

.odp-items tbody tr:last-child td {
	border-bottom: 0;
}

.odp-items .odp-check {
	width: 2.5em;
}

.odp-items .odp-qty {
	white-space: nowrap;
	width: 9em;
}

.odp-items .odp-qty input {
	width: 4.5em;
	padding: 6px 8px;
	border: 1px solid var(--odp-input-border);
	border-radius: 6px;
}

.odp-items label {
	cursor: pointer;
	margin: 0;
}

/* Oddaja */
.odp-form .odp-declaration {
	color: var(--odp-text-muted);
	margin: 0 0 1em;
}

.odp-form .odp-submit .button {
	padding: 12px 28px;
	border-radius: 6px;
}

/* Past za robote: polje je skrito pred ljudmi. */
.odp-form .odp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.odp-order-button {
	margin-top: 1em;
}
