/**
 * CSS για το Frontend Widget του Modern Floating Call Button
 */

#mfcb-container {
	position: fixed;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	opacity: 0;
	visibility: hidden;
	/* Το container δεν πιάνει κλικ, μόνο τα παιδιά του */
	pointer-events: none;
}

#mfcb-container.mfcb-visible {
	opacity: 1;
	visibility: visible;
}

/* Μόνο αυτά τα στοιχεία είναι πατήσιμα */
#mfcb-container .mfcb-bubble,
#mfcb-container .mfcb-dismiss {
	pointer-events: auto;
}

/* ==========================================================================
   POSITION LAYOUTS
   ========================================================================== */
#mfcb-container.mfcb-pos-bottom-right {
	bottom: 24px;
	right: 24px;
	align-items: flex-end;
}
#mfcb-container.mfcb-pos-bottom-left {
	bottom: 24px;
	left: 24px;
	align-items: flex-start;
}
#mfcb-container.mfcb-pos-bottom-center {
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	align-items: center;
}
#mfcb-container.mfcb-pos-bottom-center.mfcb-visible {
	transform: translateX(-50%) translateY(0);
}
#mfcb-container.mfcb-pos-top-right {
	top: 24px;
	right: 24px;
	align-items: flex-end;
	flex-direction: column-reverse;
}
#mfcb-container.mfcb-pos-top-left {
	top: 24px;
	left: 24px;
	align-items: flex-start;
	flex-direction: column-reverse;
}

/* ==========================================================================
   BUBBLE BUTTON
   ========================================================================== */
.mfcb-bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	background-color: var(--mfcb-primary, #0f62fe) !important;
	color: var(--mfcb-icon-color, #ffffff) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	height: 56px;
	width: 56px;
	cursor: pointer;
	position: relative;
	box-sizing: border-box;
}

.mfcb-bubble:hover {
	transform: scale(1.06) translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.mfcb-bubble:active {
	transform: scale(0.96);
}

.mfcb-bubble-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.mfcb-bubble svg {
	width: 26px;
	height: 26px;
	display: block;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.mfcb-bubble-text {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	display: inline-block;
	padding-right: 18px;
	padding-left: 4px;
	color: inherit !important;
}

/* Shape styles */
.mfcb-shape-circle .mfcb-bubble {
	border-radius: 28px;
}
.mfcb-shape-circle .mfcb-bubble:has(.mfcb-bubble-text) {
	width: auto;
	padding-left: 18px;
}

.mfcb-shape-rounded .mfcb-bubble {
	border-radius: 16px;
}
.mfcb-shape-rounded .mfcb-bubble:has(.mfcb-bubble-text) {
	width: auto;
	padding: 0 18px;
}

.mfcb-shape-square .mfcb-bubble {
	border-radius: 0;
}
.mfcb-shape-square .mfcb-bubble:has(.mfcb-bubble-text) {
	width: auto;
	padding: 0 18px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.mfcb-anim-pulse .mfcb-bubble {
	animation: mfcb-pulse 2s infinite;
}

.mfcb-anim-bounce .mfcb-bubble {
	animation: mfcb-bounce 2.5s infinite;
}

.mfcb-anim-float .mfcb-bubble {
	animation: mfcb-float 3s infinite ease-in-out;
}

@keyframes mfcb-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.18); }
	70%  { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0), 0 8px 24px rgba(0, 0, 0, 0.18); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 8px 24px rgba(0, 0, 0, 0.18); }
}

@keyframes mfcb-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-16px); }
	60% { transform: translateY(-8px); }
}

@keyframes mfcb-float {
	0% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
	100% { transform: translateY(0); }
}

/* Pause animation on hover */
#mfcb-container:hover .mfcb-bubble {
	animation-play-state: paused;
}

/* ==========================================================================
   POPUP MENU (MULTI CHANNEL)
   ========================================================================== */
.mfcb-popup {
	position: absolute;              /* βγαίνει από τη ροή */
	bottom: calc(100% + 16px);       /* πάνω από το bubble */
	right: 0;
	margin: 0;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
	width: 260px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
	opacity: 0;
	visibility: hidden;
	transform: scale(0.9) translateY(15px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

/* Αριστερές θέσεις */
.mfcb-pos-bottom-left .mfcb-popup,
.mfcb-pos-top-left .mfcb-popup {
	right: auto;
	left: 0;
}

/* Κέντρο (260px / 2 = 130px) */
.mfcb-pos-bottom-center .mfcb-popup {
	right: auto;
	left: 50%;
	margin-left: -130px;
}

/* Πάνω θέσεις: το popup ανοίγει προς τα κάτω */
.mfcb-pos-top-right .mfcb-popup,
.mfcb-pos-top-left .mfcb-popup {
	bottom: auto;
	top: calc(100% + 16px);
}

.mfcb-popup.mfcb-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1) translateY(0);
	pointer-events: auto;
}

.mfcb-popup-header {
	padding: 18px 20px;
	text-align: center;
}

.mfcb-popup-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: inherit;
}

.mfcb-channels-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 8px 0 !important;
}

.mfcb-channels-list li {
	margin: 0 !important;
	padding: 0 !important;
}

.mfcb-channel-link {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	text-decoration: none !important;
	color: #334155 !important;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #f1f5f9;
}

.mfcb-channels-list li:last-child .mfcb-channel-link {
	border-bottom: 0;
}

.mfcb-channel-link:hover {
	background-color: #f8fafc;
}

.mfcb-channel-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	margin-right: 14px;
	color: #ffffff;
	flex-shrink: 0;
}

.mfcb-channel-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.mfcb-channel-label {
	flex-grow: 1;
}

/* ==========================================================================
   DISMISS BUTTON
   ========================================================================== */
.mfcb-dismiss {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1e293b;
	color: #ffffff;
	border: 2px solid #ffffff;
	font-size: 13px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
	line-height: 1;
	/* Κρυφό εξ ορισμού, εμφανίζεται μόνο στο hover */
	opacity: 0;
	visibility: hidden;
	transform: scale(0.6);
}

/* Εμφάνιση μόνο σε hover πάνω από ολόκληρο το widget */
#mfcb-container:has(.mfcb-bubble:hover) .mfcb-dismiss {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.6);
}

/* Adjust dismiss button position on left-side layouts */
.mfcb-pos-bottom-left .mfcb-dismiss,
.mfcb-pos-top-left .mfcb-dismiss {
	right: auto;
	left: -10px;
}

.mfcb-dismiss:hover {
	background: #ef4444;
	transform: scale(1.15);
}

/* ==========================================================================
   RESPONSIVE HIDING
   ========================================================================== */
@media (max-width: 767px) {
	.mfcb-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.mfcb-hide-desktop {
		display: none !important;
	}
}