/* EPF Marketplace — frontend widget styles.
   Three real layouts, matching the reference page's own breakpoints
   (confirmed from its source: isMobile = width<=720, isCompact = width<=1050):
     - Mobile   (<=720px):  single column, collapsible toggle+dropdown, offer
                             card 2-col info + full-width CTA row below.
     - Tablet   (721-1050): persistent 260px sidebar menu + content, same
                             2-col offer card as mobile.
     - Desktop  (>1050px):  persistent 380px sidebar menu + content, offer
                             card becomes 3 columns (info | info | CTA inline).
*/

.epf-mp-widget {
	padding: 0;
	font-family: 'Inter', sans-serif;
	color: #101417;
	box-sizing: border-box;
}
.epf-mp-widget *,
.epf-mp-widget *::before,
.epf-mp-widget *::after {
	box-sizing: border-box;
}

/* Hero (mobile-first: small) */
.epf-mp-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    overflow: visible;
    border-radius: 20px;
    background: #dcf4fc;
    padding: 0 28px;
    margin-top: 55px;
}
.epf-mp-hero-art {
	width: 220px;
	height: 150px;
	flex: 0 0 auto;
}
.epf-mp-hero-art img {
    width: 100%;
    height: calc(100% + 32px);
    object-fit: cover;
    border-radius: 16px;
    display: block;
    position: relative;
    top: -32px;
}
.epf-mp-hero-copy {
	flex: 1 1 0;
	min-width: 0;
}
.epf-mp-hero-copy h1 {
    margin-bottom: 0!important;
    text-align: center;
    border-bottom: 5px solid #000;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    color: #101417;
}
.epf-mp-hero-copy {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
.epf-mp-hero-copy p {
	margin: 0;
	font-size: 12px;
	color: #3b4650;
	max-width: 520px;
}

/* Category nav */
.epf-mp-nav {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}
.epf-mp-nav::-webkit-scrollbar {
	display: none;
}
.epf-mp-nav-btn {
	flex: 0 0 auto;
	min-width: 90px;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 9px;
	background: #f3f3f3;
	color: #191919;
	font: 600 14px/1 Arial, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}
.epf-mp-nav-btn.is-active {
	background: #050505;
	color: #fff;
}

/* Filter section: mobile-first single column */
.epf-mp-filter-section {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	position: relative;
}

/* Toggle button — mobile only */
.epf-mp-toggle {
	height: 46px;
	padding: 0 18px;
	border: 1px solid #d7dde1;
	border-radius: 8px;
	background: #fff;
	color: #101417;
	font: 600 13px/1 Arial, sans-serif;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	width: 100%;
	margin-bottom: 2px;
}
.epf-mp-toggle-arrow {
	font-size: 12px;
	color: #6a747c;
	transition: transform 0.2s;
}
.epf-mp-toggle.is-open .epf-mp-toggle-arrow {
	transform: rotate(180deg);
}

/* Dropdown / sidebar menu */
.epf-mp-dropdown {
	display: none;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 20, 23, 0.18);
}
.epf-mp-dropdown.is-open {
	display: block;
}
.epf-mp-dropdown-heading {
	margin: 0;
	padding: 16px 16px 12px;
	font-size: 16px;
	display: none;
}
.epf-mp-dropdown-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.epf-mp-dropdown-cols--single {
	grid-template-columns: 1fr;
}
.epf-mp-dropdown-col--types {
	padding: 16px 10px;
	background: #e5f5fa;
}
.epf-mp-dropdown-col--variants {
	padding: 8px 10px 14px;
	background: #f8f8f8;
	max-height: 520px;
	overflow-y: auto;
}
.epf-mp-dropdown-row {
	width: 100%;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #24292d;
	font: 13px/1.3 Arial, sans-serif;
	text-align: left;
	cursor: pointer;
}
.epf-mp-dropdown-col--types .epf-mp-dropdown-row.is-active {
	background: #fff;
	color: #168ec5;
	font-weight: 600;
}
.epf-mp-dropdown-col--variants .epf-mp-dropdown-row.is-active {
	background: #fff;
	color: #168ec5;
}
.epf-mp-chevron {
	font-size: 18px;
	font-weight: 300;
	color: #8a9198;
	transform: rotate(0deg);
	transition: transform 0.3s;
	flex: 0 0 auto;
}
.epf-mp-dropdown-row.is-active .epf-mp-chevron {
	transform: rotate(90deg);
}

/* Offers — mobile/tablet: 2-col info, CTA spans full width below */
.epf-mp-offers {
	min-width: 0;
}
.epf-mp-empty {
	padding: 30px 10px;
	text-align: center;
	color: #6a747c;
	font-size: 14px;
}

.epf-mp-offer {
	min-height: 96px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 16px;
	padding: 18px 22px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 2px 10px 10px 0px #00000012;
	outline: none;
}
.epf-mp-offer:hover {
    outline: 2px solid #36bde2;
}

.epf-mp-offer-title {
	font-size: 17px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}
.epf-mp-offer-title img {
    width: 130px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 5px;
    object-fit: contain;
    background: transparent;
}
.epf-mp-offer-title span {
    display: none;
}
.epf-mp-offer-rating {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 2px;
}
.epf-mp-offer-rating small {
	margin-left: 4px;
	color: #101417;
	font-size: 13px;
}

.epf-mp-offer-figures {
	text-align: left;
}
.epf-mp-offer-amount {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
}
.epf-mp-offer-cs {
	color: #40464a;
	font-size: 13px;
}

.epf-mp-offer-cta {
    height: 64px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    grid-column: 1 / -1;
    padding: 0 10px;
    color: #fff;
    border: 1px solid #36bde2;
    border-radius: 5px;
    background: #36bde2;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 0 #1797bd;
    box-sizing: border-box;
    transition: transform 0.08s, box-shadow 0.08s;
}
.epf-mp-offer-cta:hover {
	background: #fff;
	color:#36bde2;
	border-color: #36bde2;
}
.epf-mp-offer-cta:hover span, .epf-mp-offer-cta:hover path {
	color:#36bde2;
	border-color: #36bde2;
}
.epf-mp-offer-cta:hover .epf-mp-badge {
	background:#36bde2;
	color:#fff;
}
.epf-mp-offer-cta:hover .epf-mp-cta-label svg {
    animation-name: red;
    animation-duration: 0.55s;
    position: relative;
}
.epf-mp-offer-cta:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #1797bd;
}
.epf-mp-cta-label {
	font-size: 14px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.epf-mp-cta-label svg {
	flex: 0 0 auto;
}
.epf-mp-badges {
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.epf-mp-badge {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 7.5px;
	font-weight: 600;
	white-space: nowrap;
}
.epf-mp-badge svg {
	flex: 0 0 auto;
}

/* Footer link */
.epf-mp-footer-link {
    width: max-content;
    max-width: 100%;
    display: block;
    margin: 28px auto 0;
    padding: 16px 24px;
    border: 2px solid #36bde2;
    border-radius: 6px;
    color: #36bde2;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.epf-mp-footer-link:hover {
	text-decoration: underline;
}
a.epf-mp-footer-link:hover {
    color: #fff;
    background: #36bde2;
}

.epf-mp-footer-link:hover b {
    animation-name: red;
    animation-duration: 0.55s;
    position: relative;
}
.epf-mp-footer-link b {
    font-size: 20px;
    vertical-align: -2px;
    font-weight: 700;
    margin-left: 5px;
}
.epf-mp-partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 20px;
    max-width: 100%;
    margin: 32px auto 20px;
    padding: 0 0px;
}
.epf-mp-partner-logo-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
}
.epf-mp-partner-logo-item img {
	max-width: 130px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
}


/* ============================================================
   Tablet + Desktop (>720px): bigger hero, persistent sidebar
   menu (no toggle, no overlay shadow), heading visible.
   ============================================================ */
@media (min-width: 721px) {
	
	.epf-mp-hero-art {
		display: block;
	}
	.epf-mp-hero-copy h1 {
		font-size: 38px;
	}
	.epf-mp-hero-copy p {
		font-size: 16px;
	}

	.epf-mp-toggle {
		display: none;
	}
	.epf-mp-dropdown {
		display: block;
		box-shadow: none;
	}
	.epf-mp-dropdown-heading {
		display: block;
	}
}

/* Tablet only (721-1050px): narrower sidebar, offer card stays 2-col */
@media (min-width: 721px) and (max-width: 1050px) {
	.epf-mp-filter-section {
		grid-template-columns: 260px minmax(0, 1fr);
	}
}

/* Full desktop (>1050px): wide sidebar, offer card becomes 3 columns
   with the CTA sitting inline instead of spanning a row below. */
@media (min-width: 1051px) {
	.epf-mp-filter-section {
		grid-template-columns: 380px minmax(0, 1fr);
	}
/* 	.epf-mp-offer {
		grid-template-columns: 1.1fr 0.9fr 210px;
	} */
	.epf-mp-offer {
    grid-template-columns: 1fr 1.5fr 210px;
}
	.epf-mp-offer-cta {
		grid-column: auto;
	}
}


@media (max-width: 768px) {

.epf-mp-hero-copy h1 {
    border-bottom: 2px solid #000;
    font-size: 16px!important;
}
.epf-mp-hero-art {
    width: 128px;
    height: 60px;
}	
.epf-mp-hero-art img {
    height: calc(100% + 32px);
    top: -22px;
}	
}
