/* Floating banner – NutriMed / konsultacje psychologiczne */
.nm-floating-banner {
	position: fixed;
	right: -4px;
	bottom: 10%;
	z-index: 99999;
	max-width: 210px;
	opacity: 0;
	transform: translateX(20px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.nm-floating-banner--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nm-floating-banner--hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* Karta wewnątrz */
.nm-floating-banner__inner {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-family: inherit;
}

/* X */
.nm-floating-banner__close {
	position: absolute;
	top: -12px;
	left: -12px;
	border: none;
	background: #1c3994;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 5px;
	z-index: 999999;
	border-radius: 100%;
	width: 30px;
	height: 30px;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
	justify-items: center;
}

.nm-floating-banner__close:focus-visible {
    outline: 2px solid #00235a;
    outline-offset: 2px;
}

/* Treść */
.nm-floating-banner__content {
	display: flex;
	align-items: stretch;
	gap: 8px;
	padding:0;
	position: relative;
	flex-flow: column;
}

.nm-floating-banner__image-wrapper {
    flex: 0 0 110px;
}

.nm-floating-banner__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nm-floating-banner__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 12px;
}

.nm-floating-banner__title {
	margin: 0 0 4px 0;
	font-size: 26px;
	font-weight: normal;
	color: #52277b;
	text-transform: none;
	text-align: center;
	font-family: bariolbold;
}
.nm-floating-banner__title span{color:#d91918}

.nm-floating-banner__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333333;
}

/* CTA */
.nm-floating-banner__cta-wrapper {
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	padding-bottom: 18px;
}
.nm-floating-banner__cta {
	display: inline-block;
	padding: 7px 28px;
	background: #e53935;
	color: #ffffff;
	border-radius: 12px;
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	font-family: bariolbold;
	position: relative;
}
.nm-floating-banner__cta::after {
	content: ">";
	display: block;
	width: 10px;
	position: absolute;
	top: 5px;
	right: 12px;
}

.nm-floating-banner__cta:hover,
.nm-floating-banner__cta:focus-visible {
    background: #c62828;
}

/* Responsywność – na bardzo małych ekranach zwijamy trochę */
@media (max-width: 480px) {
    .nm-floating-banner {
	bottom:initial;
	top: 20%;
}
.nm-floating-banner {	
	max-width: 150px;
}
.nm-floating-banner__title {
	
	font-size: 20px;
	
}
.nm-floating-banner__image-wrapper {
	flex: 0 0 60px;
}
.nm-floating-banner__cta {
	
	font-size: 15px;
	
}
}
