/* Family Pack on the storefront (#3606) — ported from the approved
   mixmatchv2v3 demo. Every number shown comes from the Family Pack rule. */
.fp-strip, .fp-label, .fp-pdp, .fp-counter, .fp-modal { --fp-red: var(--color-primary, #e62128); font-variant-numeric: tabular-nums; }

/* --- card label: white tag, red FAMILY PACK pill, tiers below --- */
.product-block-image .fp-label { position: absolute; left: 10px; top: 10px; z-index: 12; }
.fp-label { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; background: #fff; color: #212529; border-radius: 12px; padding: 8px 10px 9px; box-shadow: 0 2px 6px rgba(0,0,0,.06); max-width: calc(100% - 20px); cursor: pointer; line-height: 1; border: 0; text-align: left; }
.fp-label .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.fp-label .eyebrow em { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--fp-red); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .8px; font-style: normal; }
.fp-label .eyebrow i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #414141; color: #414141; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 8.5px; font-weight: 800; }
.fp-label .tiers { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.fp-label .t { display: inline-flex; align-items: baseline; gap: 4px; padding: 0 10px; white-space: nowrap; color: #4a4a4a; font-size: 11.5px; font-weight: 600; }
.fp-label .t:first-child { padding-left: 2px; }
.fp-label .t:last-child { padding-right: 2px; }
.fp-label .t + .t { border-left: 1px solid #dcdcdc; }
.fp-label .t b { color: var(--fp-red); font-weight: 800; font-size: 12.5px; }
/* the label takes the place of the −x% sale badge on Family Pack cards */
.product-block.fp-eligible .product-label-sale { display: none; }
/* product page: the same label next to the title, in the flow */
.product-title-row .fp-label { box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.product-title-row h1 { margin-bottom: 0; }

/* --- category top strip --- */
.fp-strip { max-width: 900px; margin: 0 auto 28px; background: #fef4f4; border: 1px solid #f5bfc2; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.fp-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--color-primary, #e62128); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px; white-space: nowrap; flex: 0 0 auto; }
.fp-tiers { display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; justify-content: center; }
.fp-tier { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; padding: 0 14px; }
.fp-tier b { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #212529; line-height: 1; }
.fp-tier small { font-size: 12px; color: #6c757d; }
.fp-tier small.short { display: none; }
.fp-tier .pct { font-size: 15px; font-weight: 800; color: var(--fp-red); }
.fp-tier + .fp-tier { border-left: 1px solid #f5bfc2; }
.fp-strip .fp-buy { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; background: var(--fp-red); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; text-decoration: none; }
.fp-strip .fp-buy:hover { filter: brightness(.92); color: #fff; }
@media (max-width: 900px) { .fp-strip { flex-wrap: wrap; } .fp-tiers { justify-content: flex-start; } .fp-strip .fp-buy { margin-left: 0; } }
@media (max-width: 767.98px) {
	.fp-strip { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 0 16px 24px; }
	/* all tiers on one line on phones: «μαξιλάρια» becomes «τμχ» */
	.fp-strip .fp-tiers { justify-content: center; flex-wrap: nowrap; width: 100%; }
	.fp-strip .fp-tier { padding: 0 9px; gap: 4px; }
	.fp-strip .fp-tier b { font-size: 17px; }
	.fp-strip .fp-tier small { display: none; }
	.fp-strip .fp-tier small.short { display: inline; font-size: 11px; }
	.fp-strip .fp-tier .pct { font-size: 13px; }
	.product-title-row { flex-wrap: wrap; }
}

/* --- product page block (the appointment box's slot) --- */
.fp-pdp { border: 1px solid #f5bfc2; background: #fef4f4; border-radius: 12px; padding: 16px; margin: 14px 0 12px; }
.fp-pdp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fp-pdp h4 { font-size: 15px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; color: #212529; }
.fp-pdp-tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fp-pdp-tier { background: #fff; border: 1px solid #f5bfc2; border-radius: 12px; padding: 12px 14px 12px 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 0 rgba(230,33,40,.06); }
.fp-pdp-tier .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #fef4f4; color: var(--fp-red); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.fp-pdp-tier .mid { flex: 1 1 auto; min-width: 0; }
.fp-pdp-tier .mid b { display: block; font-size: 14px; font-weight: 800; color: #212529; line-height: 1.2; }
.fp-pdp-tier .mid small { display: block; font-size: 11px; color: #6c757d; margin-top: 3px; }
.fp-pdp-tier .mid small s { color: #909599; margin: 0 2px; }
.fp-pdp-tier .right { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fp-pdp-tier .pct { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--fp-red); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1; }
.fp-pdp-tier .tot { font-size: 13px; color: #212529; line-height: 1.2; }
.fp-pdp-tier .tot s { color: #909599; font-size: 11px; margin-left: 4px; }
.fp-pdp-others { display: flex; align-items: center; gap: 12px; }
.fp-avatars { display: flex; align-items: center; flex: 0 0 auto; }
.fp-avatars span { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #f5bfc2; display: inline-flex; align-items: center; justify-content: center; margin-right: -10px; position: relative; overflow: hidden; }
.fp-avatars span img { width: 32px; height: 32px; object-fit: contain; }
.fp-avatars span.more { background: #212529; color: #fff; font-size: 11px; font-weight: 800; border-color: #212529; }
.fp-pdp-others p { flex: 1 1 auto; font-size: 12px; color: #4a4a4a; line-height: 1.45; margin: 0 0 0 10px; }
/* the chevron sits right after the text, not at the far end */
.fp-pdp-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f5bfc2; font-size: 12.5px; font-weight: 700; color: var(--fp-red); text-decoration: none; }
.fp-pdp-link:hover { color: var(--fp-red); text-decoration: underline; }

/* --- cart / minicart counter --- */
.fp-counter { background: #fafafa; border: 1px solid #EBEBEB; border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 28px; margin: 0 0 18px; }
.fp-counter.done { background: #f1faf4; border-color: #b9dfc6; }
.fp-counter .msg { flex: 0 0 260px; }
.fp-counter .msg b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: #212529; letter-spacing: -.1px; }
.fp-counter .msg small { display: block; font-size: 12px; color: #6c757d; margin-top: 5px; }
.fp-counter .msg small.ok { color: #1c8a44; font-weight: 700; }
.fp-track { flex: 1 1 auto; padding: 0 12px; }
.fp-track .line { position: relative; height: 10px; background: #e5e7e9; border-radius: 999px; margin: 10px 0 12px; }
.fp-track .fill { position: absolute; left: 0; top: 0; height: 100%; width: var(--fp-fill, 0); background: linear-gradient(90deg,#27a35a,#1c8a44); border-radius: 999px; }
.fp-track .fill.full { background: #1c8a44; }
/* load animation: the bar fills from empty and each dot lights up as the fill
   reaches it (--fp-at = where the dot sits along the fill, 0–1) */
.fp-counter.fp-anim .fp-track .fill { width: 0; }
.fp-counter.fp-anim.is-in .fp-track .fill { width: var(--fp-fill, 0); transition: width .9s cubic-bezier(.45,.05,.35,1); }
.fp-counter.fp-anim .fp-track .dot.on:not([style*="left:0%"]),
.fp-counter.fp-anim .fp-track .dot.now { background: #fff; border-color: #d5d8db; box-shadow: none; }
.fp-counter.fp-anim.is-in .fp-track .dot.on:not([style*="left:0%"]) { animation: fp-dot-on .35s ease-out both; animation-delay: calc(var(--fp-at, 0) * .9s); }
.fp-counter.fp-anim.is-in .fp-track .dot.now { animation: fp-dot-now .35s ease-out both; animation-delay: calc(var(--fp-at, 0) * .9s); }
@keyframes fp-dot-on { 0% { background: #fff; border-color: #d5d8db; box-shadow: none; transform: translate(-50%,-50%) scale(1); } 60% { transform: translate(-50%,-50%) scale(1.25); } 100% { background: #1c8a44; border-color: #fff; box-shadow: 0 0 0 2px #1c8a44; transform: translate(-50%,-50%) scale(1); } }
@keyframes fp-dot-now { 0% { background: #fff; border-color: #d5d8db; box-shadow: none; transform: translate(-50%,-50%) scale(1); } 60% { transform: translate(-50%,-50%) scale(1.25); } 100% { background: #212529; border-color: #fff; box-shadow: 0 0 0 2px #212529; transform: translate(-50%,-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.fp-counter.fp-anim .fp-track .fill { width: var(--fp-fill, 0); transition: none; }
	.fp-counter.fp-anim .fp-track .dot { animation: none !important; }
	.fp-counter.fp-anim .fp-track .dot.on { background: #1c8a44; border-color: #fff; box-shadow: 0 0 0 2px #1c8a44; }
	.fp-counter.fp-anim .fp-track .dot.now { background: #212529; border-color: #fff; box-shadow: 0 0 0 2px #212529; }
}
.fp-track .dot { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #d5d8db; box-sizing: border-box; }
.fp-track .dot.on { background: #1c8a44; border-color: #fff; box-shadow: 0 0 0 2px #1c8a44; }
.fp-track .dot.now { background: #212529; border-color: #fff; box-shadow: 0 0 0 2px #212529; width: 20px; height: 20px; }
.fp-track .labels { position: relative; height: 34px; font-size: 11px; line-height: 1.3; }
.fp-track .labels div { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.fp-track .labels b { display: block; font-weight: 800; color: #212529; font-size: 12px; }
.fp-track .labels span { color: #8a9096; font-weight: 600; }
.fp-track .labels span.on { color: #1c8a44; font-weight: 800; }
.fp-track .labels span.now { color: #212529; font-weight: 800; }
/* the Family Pack line in the totals, in red (the theme styles these spans by id) */
.cart_total.row.fp-total span.cart_total-title, .cart_total.row.fp-total span.cart_total-text,
#offcanvasCart .cart_total.row.fp-total span.cart_total-title, #offcanvasCart .cart_total.row.fp-total span.cart_total-text { color: var(--color-primary, #e62128); font-weight: 700; }
/* phones: responsive.css sets these colours with !important under #checkout-cart
   (and the checkout's mobile summary), so match its weight there */
#checkout-cart .cart-sidebar .card-cart .card-footer .cart_total.fp-total .cart_total-title,
#checkout-cart .cart-sidebar .card-cart .card-footer .cart_total.fp-total .cart_total-text,
#checkout-mobile-summary-totals-target .checkout-mobile-summary-totals .cart_total.fp-total .cart_total-title,
#checkout-mobile-summary-totals-target .checkout-mobile-summary-totals .cart_total.fp-total .cart_total-text,
.cart_totals .cart_totals_row.fp-total span { color: var(--color-primary, #e62128) !important; font-weight: 700 !important; }
/* compact version for the off-canvas minicart */
.fp-counter.mini { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px 14px; margin: 0 0 16px; }
.fp-counter.mini .msg { flex: 1 1 auto; }
.fp-counter.mini .msg b { font-size: 14px; }
.fp-counter.mini .msg small { margin-top: 4px; }
.fp-counter.mini .fp-track { padding: 0 8px; }
.fp-counter.mini .fp-track .line { margin: 8px 0 12px; }
/* phones (cart page and minicart): compact — less padding, smaller type
   and a slimmer track, so the counter doesn't push the cart lines down */
@media (max-width: 767.98px) {
	.fp-counter, .fp-counter.mini { flex-wrap: wrap; gap: 8px; padding: 10px 12px 6px; margin: 0 0 12px; border-radius: 12px; }
	.fp-counter .msg, .fp-track { flex: 1 1 100%; }
	.fp-counter .msg b, .fp-counter.mini .msg b { font-size: 13px; line-height: 1.25; }
	.fp-counter .msg small, .fp-counter.mini .msg small { font-size: 11px; margin-top: 2px; }
	.fp-track, .fp-counter.mini .fp-track { padding: 0 8px; }
	.fp-track .line, .fp-counter.mini .fp-track .line { height: 7px; margin: 6px 0 8px; }
	.fp-track .dot { width: 14px; height: 14px; border-width: 2px; }
	.fp-track .dot.now { width: 16px; height: 16px; }
	.fp-track .labels { height: 26px; font-size: 10px; line-height: 1.2; }
	.fp-track .labels b { font-size: 11px; }
}

/* --- explanation modal (opened from the card label) --- */
.fp-modal { position: fixed; inset: 0; z-index: 1090; background: rgba(33,37,41,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fp-modal-box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 20px 18px 18px; text-align: center; }
.fp-modal-close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 13px; color: #212529; cursor: pointer; padding: 0; }
.fp-modal-close span:last-child { width: 30px; height: 30px; border-radius: 50%; background: #f1f1f1; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.fp-modal-title { font-size: 30px; font-weight: 800; margin: 26px 0 8px; }
.fp-modal-subtitle { font-size: 18px; margin: 0 0 12px; }
.fp-modal-pill { display: inline-flex; padding: 8px 18px; border-radius: 999px; background: var(--fp-red); color: #fff; font-weight: 700; margin: 0 0 16px; }
.fp-modal-lead { font-size: 14px; color: #4a4a4a; margin: 0 0 16px; line-height: 1.6; }
.fp-modal-tiers { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; text-align: left; }
/* both tiers highlighted the same, so it doesn't read as "pick one" */
.fp-modal-tier { border: 1px solid #f0a8ac; background: #fef4f4; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.fp-modal-tier b { font-size: 17px; font-weight: 800; flex: 1 1 auto; }
.fp-modal-tier .pct { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--fp-red); color: #fff; font-size: 14px; font-weight: 800; }

/* cart page: the counter spans the same width as the cart lines under it */
.cart-content .fp-slot.col-12 { padding-left: 0; padding-right: 0; }
