/* Replicated site banner — in document flow (not fixed) so theme sticky nav / slicknav are not covered */
.mlmsoft-replicated-banner {
	position: relative;
	z-index: 1;
	width: 100%;
	box-sizing: border-box;
	background: #1a1a2e;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mlmsoft-replicated-banner--clickable {
	cursor: pointer;
}

.mlmsoft-replicated-banner--clickable:focus {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.mlmsoft-replicated-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	justify-content: center;
}

.mlmsoft-replicated-banner__text a {
	color: #a8d8ff;
	text-decoration: underline;
}

.mlmsoft-replicated-banner__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	padding: 4px 12px;
	border-radius: 4px;
	cursor: pointer;
	font: inherit;
}

.mlmsoft-replicated-banner__link:hover,
.mlmsoft-replicated-banner__link:focus {
	background: rgba(255, 255, 255, 0.12);
}

/* Banner is in flow — no body padding. JS sets --mlmsoft-replicated-banner-height for mobile slicknav offset. */
body.mlmsoft-replicated-has-banner {
	padding-top: 0;
}

/* Dialog */
.mlmsoft-replicated-dialog[hidden] {
	display: none !important;
}

.mlmsoft-replicated-dialog {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.mlmsoft-replicated-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.mlmsoft-replicated-dialog__panel {
	position: relative;
	background: #fff;
	color: #1a1a2e;
	max-width: 420px;
	width: 100%;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mlmsoft-replicated-dialog__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: none;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px;
}

.mlmsoft-replicated-dialog__close:hover {
	color: #000;
}

.mlmsoft-replicated-contacts__title {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1a1a2e;
}

.mlmsoft-replicated-contacts__card {
	padding: 1.35rem 1.5rem;
	border-radius: 12px;
	background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 100%);
	border: 1px solid rgba(26, 26, 46, 0.08);
	box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06), 0 1px 2px rgba(26, 26, 46, 0.04);
	position: relative;
	overflow: hidden;
}

.mlmsoft-replicated-contacts__card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: 12px 0 0 12px;
	background: linear-gradient(180deg, #4f6bdc 0%, #1a1a2e 100%);
}

.mlmsoft-replicated-contacts--shortcode {
	margin: 1.5rem 0;
	max-width: 32rem;
}

.mlmsoft-replicated-contacts--embedded:not(.mlmsoft-replicated-contacts--shortcode) {
	margin-top: 1.5rem;
}

.mlmsoft-replicated-contacts__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.mlmsoft-replicated-contacts__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.mlmsoft-replicated-contacts__label {
	flex: 0 0 4.5rem;
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5c6378;
}

.mlmsoft-replicated-contacts__value {
	flex: 1 1 12rem;
	color: #1a1a2e;
	word-break: break-word;
}

.mlmsoft-replicated-contacts__value a {
	color: #2c4ae8;
	text-decoration: none;
	font-weight: 500;
}

.mlmsoft-replicated-contacts__value a:hover,
.mlmsoft-replicated-contacts__value a:focus {
	text-decoration: underline;
}

.mlmsoft-replicated-contacts__empty {
	color: #666;
	font-size: 0.9rem;
	margin: 0;
	padding: 0.25rem 0;
}

/* Modal: compact, no card chrome */
.mlmsoft-replicated-contacts--modal .mlmsoft-replicated-contacts__title {
	margin-bottom: 0.75rem;
}

.mlmsoft-replicated-contacts--modal .mlmsoft-replicated-contacts__list {
	gap: 0.5rem;
}

/* Product referral block */
.mlmsoft-replicated-product-ref {
	margin-top: 1rem;
	padding: 12px 0;
	border-top: 1px solid #eee;
}

.mlmsoft-replicated-product-ref--loop {
	margin-top: 8px;
	padding: 0;
	border-top: none;
	display: block;
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

.mlmsoft-replicated-product-ref__sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mlmsoft-replicated-product-ref__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.mlmsoft-replicated-product-ref__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
}

.mlmsoft-replicated-product-ref__input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 8px 10px;
	font-size: 13px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.mlmsoft-replicated-product-ref__input--visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mlmsoft-replicated-product-ref__btn {
	flex: 0 0 auto;
}

/* Catalog: same visual weight as WooCommerce loop “Add to cart” (.button) */
.mlmsoft-replicated-product-ref__btn-loop {
	display: block;
	width: 100%;
	text-align: center;
	margin: 0;
	box-sizing: border-box;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* CouponHut: slicknav fixed — top follows visible banner bottom (JS --mlmsoft-slicknav-top; 0 after scroll). */
@media only screen and (max-width: 992px) {
	body.mlmsoft-replicated-has-banner .slicknav_menu {
		top: var(--mlmsoft-slicknav-top, var(--mlmsoft-replicated-banner-height, 0px));
	}
}