/*
 * author Alex
 * 22.10.2026
 *
 * Pets in booking - pet button and form in checkout baggage block (v3 and old template)
 * and pet summary in pay window. Included only when settings.pets_enabled = 1.
 * Html: App\Storefront\Checkout\Pet\PetCheckoutBlock / PetCheckoutSummary.
 */

.lb-pet [hidden],
.lb-pet-sum-box[hidden] {
	display: none !important;
}

.lb-pet {
	margin-top: 20px;
	font-family: 'Roboto Condensed', sans-serif;
	color: #000;
}

/* ---------- button ---------- */

.lb-pet-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	cursor: pointer;
}

.lb-pet-btn-old {
	min-height: 48px;
	padding: 8px 16px;
	background: #fff;
	border: 1px dashed #94C11F;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #72971F;
}

.lb-pet-btn-old:hover,
.lb-pet-btn-old:focus {
	background: #F5F9E9;
	outline: none;
}

.lb-pet.is-applied .lb-pet-btn-old {
	border-style: solid;
	background: #F5F9E9;
	color: #000;
}

/* v3: same look as baggage row (co3-card-btn), button reset */
.lb-pet-btn-v3 {
	font-family: inherit;
}

.lb-pet-btn-text {
	flex: 1 0 0;
	min-width: 1px;
}

.lb-pet-btn-value {
	color: #72971F;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 55%;
}

.lb-pet-icon {
	flex: 0 0 24px;
}

/* ---------- form ---------- */

.lb-pet-form {
	margin-top: 10px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #E4E4E4;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.4;
}

.lb-pet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.lb-pet-title {
	font-size: 20px;
	font-weight: 700;
}

.lb-pet-x {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #A6A6A6;
	padding: 0 4px;
	cursor: pointer;
}

.lb-pet-label {
	font-weight: 700;
	margin: 12px 0 8px;
}

.lb-pet-weights {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lb-pet-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #E4E4E4;
	border-radius: 8px;
	font-weight: 400;
	cursor: pointer;
}

.lb-pet-radio input {
	margin: 0;
	accent-color: #94C11F;
}

.lb-pet-radio:has(input:checked) {
	border-color: #94C11F;
	background: #F5F9E9;
}

.lb-pet-note,
.lb-pet-hint {
	margin-top: 8px;
	font-size: 14px;
	color: #6B6B6B;
}

.lb-pet-phone {
	white-space: nowrap;
	color: #72971F;
	font-weight: 700;
}

.lb-pet-rules {
	margin-top: 12px;
	padding: 12px 14px;
	background: #F7F7F7;
	border-radius: 8px;
	font-size: 14px;
}

.lb-pet-rules .lb-pet-label {
	margin-top: 0;
}

.lb-pet-rules ul {
	margin: 0 0 8px;
	padding-left: 18px;
}

.lb-pet-rules li {
	margin: 2px 0;
	list-style: disc;
}

.lb-pet-link {
	color: #72971F;
	text-decoration: underline;
}

.lb-pet-msg {
	margin: 4px 0 8px;
	padding: 12px 14px;
	background: #FFF6E5;
	border: 1px solid #F2C46D;
	border-radius: 8px;
}

.lb-pet-price {
	margin-top: 12px;
	padding: 12px 14px;
	background: #F5F9E9;
	border-radius: 8px;
}

.lb-pet-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	font-weight: 400;
	cursor: pointer;
}

.lb-pet-consent input {
	flex: 0 0 auto;
	margin: 3px 0 0;
	width: 18px;
	height: 18px;
	accent-color: #94C11F;
}

.lb-pet-loading {
	color: #6B6B6B;
}

.lb-pet.is-busy .lb-pet-apply,
.lb-pet.is-busy .j-pet-apply {
	opacity: .6;
}

.lb-pet-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
}

.lb-pet-b {
	min-height: 44px;
	padding: 0 20px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.lb-pet-b-green {
	background: #94C11F;
	border: 1px solid #94C11F;
	color: #fff;
}

.lb-pet-b-green:hover {
	background: #86B01A;
}

.lb-pet-b-line {
	background: #fff;
	border: 1px solid #94C11F;
	color: #72971F;
}

/* return ticket v3: totals card goes after pet block, keep gap like after baggage row */
.lb-co3 .lb-pet + .co3-card {
	margin-top: 20px;
}

/* ---------- pay window summary ---------- */

.lb-pet-sum-box {
	margin: 12px 0;
	padding: 12px 14px;
	background: #F5F9E9;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.lb-pet-sum-leg + .lb-pet-sum-leg {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #E4E4E4;
}

.lb-pet-sum-title {
	font-weight: 700;
	font-size: 16px;
}

.lb-pet-sum .lb-pet-link {
	display: inline-block;
	margin-top: 6px;
}

/* ---------- phone ---------- */

@media (max-width: 767.98px) {
	.lb-pet-form {
		padding: 14px 12px;
	}

	.lb-pet-btn-old {
		font-size: 15px;
	}

	.lb-pet-btn-value {
		max-width: 50%;
		font-size: 14px;
	}

	.lb-pet-radio {
		flex: 1 1 calc(33.333% - 8px);
		justify-content: center;
		padding: 8px 6px;
		font-size: 15px;
	}

	.lb-pet-actions {
		flex-direction: column-reverse;
	}

	.lb-pet-actions .lb-pet-b {
		width: 100%;
	}
}
