/**
 * Klarna availability notice.
 *
 * Bottom left, to stay clear of Avada's back-to-top control.
 */

.polybalm-klarna-notice {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 340px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.32s ease, transform 0.32s ease;
}

.polybalm-klarna-notice[hidden] {
	display: none;
}

.polybalm-klarna-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.polybalm-klarna-notice__logo {
	flex: 0 0 auto;
	width: 74px;
	height: auto;
	margin: 2px 0 0;
}

.polybalm-klarna-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.polybalm-klarna-notice p {
	margin: 0;
	padding: 0;
}

.polybalm-klarna-notice__heading {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.polybalm-klarna-notice__text {
	margin-top: 4px !important;
	font-size: 13.5px;
	line-height: 1.45;
	color: #555555;
}

.polybalm-klarna-notice__link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: underline;
}

/* Close control */
.polybalm-klarna-notice__close {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: #8a8a8a;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.polybalm-klarna-notice__close:hover,
.polybalm-klarna-notice__close:focus {
	color: #1a1a1a;
	background: #f1f1f1;
}

.polybalm-klarna-notice__close:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

/* Full width on small screens */
@media (max-width: 480px) {
	.polybalm-klarna-notice {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-width: none;
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.polybalm-klarna-notice {
		transition: none;
		transform: none;
	}
}
