/* Tarka Elállás – online elállási funkció */

.tkel-wrap {
	--tkel-accent: #925233;
	--tkel-accent-dark: #74412a;
	--tkel-border: #e2e0dd;
	--tkel-bg-soft: #faf7f5;
	--tkel-text: #2c2a28;
	--tkel-muted: #6d6a66;
	--tkel-error: #b3261e;
	--tkel-ok: #2e7d32;
	--tkel-radius: 8px;

	color: var(--tkel-text);
	max-width: 760px;
	line-height: 1.55;
}

.tkel-wrap *,
.tkel-wrap *::before,
.tkel-wrap *::after {
	box-sizing: border-box;
}

.tkel-title {
	margin: 0 0 .6em;
	font-size: 1.7em;
	line-height: 1.25;
	color: var(--tkel-accent);
}

.tkel-subtitle {
	margin: 0 0 .5em;
	font-size: 1.15em;
	color: var(--tkel-text);
}

.tkel-intro {
	margin: 0 0 1.4em;
	color: var(--tkel-muted);
}

/* --- Lépésjelző --- */
.tkel-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
	font-size: .88em;
}

.tkel-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 180px;
	padding: 9px 12px;
	border: 1px solid var(--tkel-border);
	border-radius: var(--tkel-radius);
	color: var(--tkel-muted);
	background: #fff;
}

.tkel-steps li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tkel-border);
	color: #fff;
	font-size: .85em;
	font-weight: 700;
	flex: 0 0 22px;
}

.tkel-steps li.is-active {
	border-color: var(--tkel-accent);
	color: var(--tkel-accent);
	font-weight: 600;
}

.tkel-steps li.is-active span,
.tkel-steps li.is-done span {
	background: var(--tkel-accent);
}

.tkel-steps li.is-done {
	color: var(--tkel-text);
}

/* --- Mezők --- */
.tkel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 18px;
}

.tkel-field {
	margin: 0 0 1.1em;
}

.tkel-label {
	display: block;
	margin: 0 0 .35em;
	font-weight: 600;
	font-size: .95em;
}

.tkel-req {
	color: var(--tkel-error);
}

.tkel-optional {
	font-weight: 400;
	color: var(--tkel-muted);
	font-size: .9em;
}

.tkel-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tkel-border);
	border-radius: var(--tkel-radius);
	background: #fff;
	font-size: 1em;
	font-family: inherit;
	color: var(--tkel-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tkel-input:focus {
	outline: none;
	border-color: var(--tkel-accent);
	box-shadow: 0 0 0 3px rgba(146, 82, 51, .15);
}

.tkel-input.has-error {
	border-color: var(--tkel-error);
}

textarea.tkel-input {
	resize: vertical;
	min-height: 90px;
}

.tkel-hint {
	margin: .35em 0 0;
	font-size: .84em;
	color: var(--tkel-muted);
}

.tkel-error {
	display: none;
	margin: .35em 0 0;
	font-size: .86em;
	color: var(--tkel-error);
}

.tkel-error.is-visible {
	display: block;
}

/* --- Checkbox / radio --- */
.tkel-check,
.tkel-radio {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 .8em;
	font-size: .95em;
	cursor: pointer;
}

.tkel-check input,
.tkel-radio input {
	margin: 3px 0 0;
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	accent-color: var(--tkel-accent);
}

.tkel-declaration-box {
	margin: 1.4em 0 1em;
	padding: 16px 18px;
	background: var(--tkel-bg-soft);
	border: 1px solid var(--tkel-border);
	border-left: 4px solid var(--tkel-accent);
	border-radius: var(--tkel-radius);
}

.tkel-declaration-box .tkel-check {
	margin-bottom: 0;
}

/* --- Rendelés betöltés --- */
.tkel-lookup {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1.3em;
}

.tkel-lookup-msg {
	font-size: .88em;
	color: var(--tkel-muted);
}

.tkel-lookup-msg.is-error {
	color: var(--tkel-error);
}

.tkel-lookup-msg.is-ok {
	color: var(--tkel-ok);
}

/* --- Tételek --- */
.tkel-scope {
	margin: 1.2em 0;
	padding: 16px 18px;
	border: 1px solid var(--tkel-border);
	border-radius: var(--tkel-radius);
}

.tkel-item-list {
	list-style: none;
	margin: .8em 0 0;
	padding: 0;
	border-top: 1px solid var(--tkel-border);
}

.tkel-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tkel-border);
	font-size: .93em;
}

.tkel-item .tkel-check {
	flex: 1 1 260px;
	margin: 0;
}

.tkel-item-name em {
	color: var(--tkel-muted);
	font-style: normal;
	font-size: .9em;
}

.tkel-item-qty input {
	width: 68px;
	padding: 5px 8px;
	border: 1px solid var(--tkel-border);
	border-radius: 6px;
	font-family: inherit;
}

.tkel-item-total {
	min-width: 90px;
	text-align: right;
	font-weight: 600;
}

/* --- Gombok --- */
.tkel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.6em 0 0;
}

.tkel-btn {
	display: inline-block;
	padding: 13px 26px;
	border: 2px solid var(--tkel-accent, #925233);
	border-radius: var(--tkel-radius, 8px);
	font-size: 1em;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.tkel-btn-primary {
	background: var(--tkel-accent, #925233);
	color: #fff;
}

.tkel-wrap .tkel-btn-thin {
	font-weight: 400;
}

.tkel-btn-primary:hover,
.tkel-btn-primary:focus {
	background: #74412a;
	border-color: #74412a;
	color: #fff;
}

/* A .tkel-wrap előtag megnöveli a specifikusságot, hogy a témák általános
   gomb-szabályai (pl. button { color: #fff }) ne tegyék láthatatlanná az
   átlátszó hátterű másodlagos gomb szövegét. */
.tkel-wrap .tkel-btn-secondary {
	background: transparent;
	color: var(--tkel-accent, #925233);
}

.tkel-wrap .tkel-btn-secondary:hover,
.tkel-wrap .tkel-btn-secondary:focus {
	background: var(--tkel-accent, #925233);
	color: #fff;
}

.tkel-btn[disabled],
.tkel-btn.is-busy {
	opacity: .6;
	cursor: default;
}

.tkel-btn-confirm {
	min-width: 240px;
}

.tkel-btn-wrap {
	margin: 1em 0;
}

/* --- Összegzés --- */
.tkel-summary {
	padding: 18px 20px;
	background: var(--tkel-bg-soft);
	border: 1px solid var(--tkel-border);
	border-radius: var(--tkel-radius);
}

.tkel-summary .tkel-declaration {
	margin: 0 0 1em;
	padding: 0 0 .9em;
	border-bottom: 1px solid var(--tkel-border);
}

.tkel-summary .tkel-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93em;
	margin: 0;
}

.tkel-summary .tkel-table th,
.tkel-summary .tkel-table td {
	padding: 7px 0;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--tkel-border);
}

.tkel-summary .tkel-table th {
	width: 45%;
	font-weight: 400;
	color: var(--tkel-muted);
	padding-right: 14px;
}

.tkel-summary .tkel-table td {
	font-weight: 600;
}

.tkel-summary .tkel-subtitle {
	margin: 1.2em 0 .4em;
	font-size: 1em;
}

.tkel-sku {
	color: var(--tkel-muted);
	font-weight: 400;
}

/* --- Riasztások / siker --- */
.tkel-alert {
	padding: 12px 16px;
	border-radius: var(--tkel-radius);
	margin: 0 0 1.2em;
	font-size: .93em;
}

.tkel-alert-error {
	background: #fdecea;
	border: 1px solid #f5c6c2;
	color: var(--tkel-error);
}

.tkel-success {
	text-align: center;
	padding: 22px 18px;
	margin: 0 0 1.4em;
	background: #f1f8f2;
	border: 1px solid #cde6d0;
	border-radius: var(--tkel-radius);
}

.tkel-success-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto .6em;
	border-radius: 50%;
	background: var(--tkel-ok);
	color: #fff;
	font-size: 28px;
	line-height: 52px;
}

.tkel-success-meta {
	margin: .4em 0 0;
	font-size: .95em;
}

.tkel-warn {
	color: #a35b00;
}

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

/* --- Lebegő gomb --- */
.tkel-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9998;
	padding: 11px 18px;
	background: var(--tkel-accent, #925233);
	color: #fff !important;
	border-radius: 30px;
	font-size: .9em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.tkel-float:hover {
	background: #74412a;
}

/* --- Nyomtatás --- */
@media print {
	.tkel-steps,
	.tkel-actions,
	.tkel-float {
		display: none !important;
	}

	.tkel-summary {
		border: 1px solid #ccc;
		background: #fff;
	}
}

@media (max-width: 600px) {
	.tkel-steps li {
		flex: 1 1 100%;
	}

	.tkel-actions .tkel-btn {
		width: 100%;
	}

	.tkel-summary .tkel-table th {
		width: 50%;
	}
}
