/* =========================================================================
   Evermed — footer + mobile bar (every page)
   ====================================================================== */

.evf { background: var(--ev-surface); border-top: 1px solid var(--ev-line); color: var(--ev-ink); font-size: .95rem; }
.evf a { color: inherit; text-decoration: none; }
.evf a:hover { color: var(--ev-secondary-ink); }

.evf__main { padding-block: clamp(32px, 5vw, 56px); }
.evf__grid {
	display: grid;
	gap: 32px 40px;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.evf__logo img { max-height: 56px; width: auto; }
.evf__logo { display: inline-block; margin-bottom: 14px; }
.evf__col--brand p { color: var(--ev-muted); margin-bottom: .7em; max-width: 46ch; }

.evf__title { font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; }

.evf-links, .evf-contact, .evf-social, .evf-pay { list-style: none; margin: 0; padding: 0; }
.evf-links li + li { margin-top: 8px; }
.evf-links a { color: var(--ev-muted); }
.evf-links a:hover { color: var(--ev-secondary-ink); }

.evf-contact li + li { margin-top: 12px; }
.evf-contact a, .evf-contact__text { display: flex; gap: 10px; align-items: flex-start; color: var(--ev-muted); }
.evf-contact .ev-icon { margin-top: 4px; color: var(--ev-primary-ink); }
.evf-contact__phone { color: var(--ev-ink) !important; font-weight: 600; }
.evf-contact__phone small { display: block; font-weight: 400; color: var(--ev-muted); font-size: .8rem; }

.evf-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.evf-social a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
	border: 1px solid var(--ev-line); border-radius: 999px;
	font-size: .82rem; color: var(--ev-ink);
}
.evf-social a:hover { border-color: var(--ev-secondary); color: var(--ev-secondary-ink); }

.evf__bottom { border-top: 1px solid var(--ev-line); padding-block: 16px; font-size: .85rem; color: var(--ev-muted); }
.evf__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.evf__bottom p { margin: 0; }
.evf-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.evf-pay li { padding: 3px 10px; border: 1px solid var(--ev-line); border-radius: 6px; background: var(--ev-page); font-size: .78rem; color: var(--ev-ink); }

@media (max-width: 1024px) {
	.evf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	/* 2.1.3: About and Contact stay full width; Company and Products share one row (3 rows instead of 4). */
	.evf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.evf__col--brand, .evf__col:nth-child(2) { grid-column: 1 / -1; }
	.evf-links li + li { margin-top: 6px; }
	.evf__bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Mobile bar (phones only) ---------- */
.ev-mbar { display: none; }

@media (max-width: 767px) {
	.ev-has-mbar { padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }

	.ev-mbar {
		position: fixed; inset: auto 0 0 0; z-index: 9990;
		display: flex;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--ev-surface);
		border-top: 1px solid var(--ev-line);
		box-shadow: 0 -4px 16px rgb(16 24 20 / 8%);
	}
	.ev-mbar__item {
		flex: 1 1 0;
		display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px;
		min-height: 46px; padding: 4px 6px;
		border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.1; white-space: nowrap;
		color: var(--ev-ink); text-decoration: none; cursor: pointer;
	}
	.ev-mbar__item .ev-icon { width: 19px; height: 19px; flex: 0 0 auto; }
	.ev-mbar__item--call { background: var(--ev-primary-ink); color: #fff; }
	.ev-mbar__item--call:hover { color: #fff; background: var(--ev-primary-ink-hover); }
	.ev-mbar__item--wa .ev-icon { color: #25d366; }
	.ev-mbar__item--map .ev-icon { color: #d93025; }
	.ev-mbar__item + .ev-mbar__item { border-left: 1px solid var(--ev-line); }

	/* ShopBooster floating elements: no duplicate hotline, back-to-top above the bar */
	.ev-has-mbar .back-to-top { bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- Back to top + floating call ---------- */
.ev-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 9980;
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ev-ink); color: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
}
.ev-top:hover { background: var(--ev-primary-ink); color: #fff; }
.ev-top[hidden] { display: none; }
.ev-top__icon { width: 22px; height: 22px; transform: rotate(180deg); }
.ev-float-call {
	position: fixed; left: 18px; bottom: 18px; z-index: 9980;
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
	background: var(--ev-primary-ink); color: #fff; font-weight: 700; text-decoration: none;
	box-shadow: 0 6px 18px rgb(0 166 81 / 35%);
}
.ev-float-call:hover { background: var(--ev-primary-ink-hover); color: #fff; }
.ev-float-call .ev-icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
	.ev-float-call { display: none; }               /* phones: the mobile bar has Call */
	.ev-has-mbar .ev-top { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* Hotlines as coloured call buttons (Settings → Footer) — same width, compact */
.evf-contact li:has(> .evf-call) + li:has(> .evf-call) { margin-top: 8px; }
.evf-contact .evf-call {
	display: flex; align-items: center; gap: 10px;
	width: 100%; max-width: 230px; min-height: 46px; box-sizing: border-box;
	padding: 6px 12px; border-radius: var(--ev-radius-sm);
	background: var(--ev-fcall-1); color: #fff !important; text-decoration: none;
	transition: filter .15s;
}
.evf-contact .evf-call--2 { background: var(--ev-fcall-2); }
.evf-contact .evf-call:hover { filter: brightness(.94); }
.evf-contact .evf-call .ev-icon { flex: 0 0 18px; margin: 0; width: 18px; height: 18px; color: #fff; }
.evf-contact .evf-call span { display: flex; flex-direction: column; justify-content: center; font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; white-space: nowrap; }
.evf-contact .evf-call small { color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: 0; margin-bottom: 1px; }
/* Leave room under the floating call button (tablet & desktop) so it never covers the copyright line */
@media (min-width: 768px) {
	body:has(.ev-float-call) .evf__bottom { padding-bottom: 76px; }
}
