/* KörösBike365 – E-bike bérlés gomb */

.kb365-cta {
	--kb365-from: #2db941;
	--kb365-to: #15803d;
	--kb365-x: 22px;
	--kb365-y: 22px;
	position: fixed;
	right: var(--kb365-x);
	bottom: var(--kb365-y);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
}

.kb365-cta--left {
	right: auto;
	left: var(--kb365-x);
	align-items: flex-start;
}

.kb365-cta__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kb365-cta--left .kb365-cta__row {
	flex-direction: row-reverse;
}

/* --- Fő gomb --- */

.kb365-btn,
.kb365-btn:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 11px 20px 11px 11px;
	border-radius: 999px;
	background-image: linear-gradient(135deg, var(--kb365-from), var(--kb365-to));
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 26px -8px rgba(21, 128, 61, .55), 0 2px 6px rgba(15, 23, 42, .18);
	transition: transform .18s ease, box-shadow .18s ease;
	max-width: min(78vw, 340px);
}

.kb365-btn:hover,
.kb365-btn:focus-visible {
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -8px rgba(21, 128, 61, .6), 0 3px 8px rgba(15, 23, 42, .2);
}

.kb365-btn:focus-visible,
.kb365-toggle:focus-visible,
.kb365-panel__close:focus-visible,
.kb365-panel__cta:focus-visible {
	outline: 3px solid rgba(45, 185, 65, .55);
	outline-offset: 3px;
}

.kb365-btn__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.kb365-btn__icon svg {
	display: block;
}

.kb365-btn__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kb365-btn__label {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .1px;
	white-space: nowrap;
}

.kb365-btn__sub {
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 500;
	opacity: .88;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Lüktetés */
.kb365-cta--pulse .kb365-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(45, 185, 65, .55);
	animation: kb365-pulse 2.8s ease-out infinite;
	pointer-events: none;
}

@keyframes kb365-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(45, 185, 65, .5); }
	60%  { box-shadow: 0 0 0 16px rgba(45, 185, 65, 0); }
	100% { box-shadow: 0 0 0 0 rgba(45, 185, 65, 0); }
}

/* --- Info gomb --- */

.kb365-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #15803d;
	cursor: pointer;
	box-shadow: 0 4px 14px -4px rgba(15, 23, 42, .35);
	transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.kb365-toggle:hover {
	transform: translateY(-2px);
	background: #f0fdf4;
}

/* --- Kártya --- */

.kb365-panel {
	width: min(86vw, 300px);
	padding: 20px 20px 18px;
	border-radius: 18px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 24px 48px -18px rgba(15, 23, 42, .45), 0 2px 8px rgba(15, 23, 42, .12);
	position: relative;
	opacity: 0;
	transform: translateY(10px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
	text-align: left;
}

.kb365-panel[hidden] {
	display: none;
}

.kb365-panel.is-open {
	opacity: 1;
	transform: none;
}

.kb365-panel::after {
	content: "";
	position: absolute;
	right: 34px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 2px;
}

.kb365-cta--left .kb365-panel::after {
	right: auto;
	left: 34px;
}

.kb365-panel__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.kb365-panel__close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.kb365-panel__logo {
	display: block;
	width: 132px;
	height: auto;
	margin: 0 0 12px;
}

.kb365-panel__title {
	margin: 0 0 6px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.kb365-panel__text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.55;
	color: #475569;
}

.kb365-panel__cta,
.kb365-panel__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	background-image: linear-gradient(135deg, var(--kb365-from), var(--kb365-to));
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .16s ease, filter .16s ease;
}

.kb365-panel__cta:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	filter: brightness(1.05);
}

/* --- Reszponzív --- */

@media (max-width: 600px) {
	.kb365-cta {
		--kb365-x: 14px;
		--kb365-y: 14px;
	}

	.kb365-btn {
		padding: 9px 17px 9px 9px;
		gap: 9px;
	}

	.kb365-btn__icon {
		width: 34px;
		height: 34px;
	}

	.kb365-btn__label {
		font-size: 14px;
	}

	.kb365-btn__sub {
		font-size: 11px;
	}

	.kb365-cta--desktop-only {
		display: none;
	}
}

/* --- Nyomtatás / mozgáscsökkentés --- */

@media print {
	.kb365-cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kb365-btn,
	.kb365-toggle,
	.kb365-panel,
	.kb365-panel__cta {
		transition: none;
	}

	.kb365-cta--pulse .kb365-btn::before {
		animation: none;
	}
}
