/* FairyMailer Payment Plans Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Variables */
:root {
	--primary-font: 'Bitter', serif;
	--secondary-font: 'Inter', sans-serif;
	--primary-color: #333;
	--secondary-color: #777;
	--accent-color: #ff635d;
	--bg-color: #fff1df;
	--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--breakpoint-md: 768px;
	--breakpoint-lg: 1044px;
}

/* Main Container */
.fmpp-payment-plan-component {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 80vh;
	background-color: var(--bg-color);
	padding: 2em 1em;
	position: relative;
}

.fmpp-text-slider-button {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5em;
	padding-top: 60px;
}

.fmpp-choose-plan-text {
	font-family: var(--primary-font);
	font-weight: 800;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--primary-color);
	text-align: left;
	margin: 0;
}

.fmpp-subscribers-text {
	font-family: var(--primary-font);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--primary-color);
	text-align: left;
	margin: 0;
}

/* Loading State */
.fmpp-loading {
	text-align: center;
	padding: 40px;
	font-family: var(--secondary-font);
	color: var(--secondary-color);
}

/* Slider Styles */
.fmpp-slider-container-component {
	width: 100%;
	padding: 20px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.fmpp-slider-values {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 10px;
}

.fmpp-slider-values span {
	font-size: 14px;
	color: rgba(136, 125, 118, 1);
}

.fmpp-slider-wrapper {
	width: 100%;
	position: relative;
}

.fmpp-custom-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	background: rgba(218, 209, 197, 1);
	border-radius: 3px;
	outline: none;
	cursor: pointer;
}

.fmpp-custom-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ff4a4a;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.fmpp-custom-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 76, 73, 1);
	cursor: pointer;
	border: none;
}

.fmpp-tooltip {
	position: absolute;
	width: 60px;
	margin-top: -60px;
	transform: translateX(-50%);
	padding: 5px 0;
	background: rgb(255, 195, 173);
	border-radius: 5px;
	font-size: 14px;
	color: #000;
	white-space: nowrap;
	z-index: 1;
	text-align: center;
}

.fmpp-tooltip:before {
	content: '';
	background: rgb(255, 195, 173);
	position: absolute;
	width: 20px;
	height: 20px;
	top: 13px;
	transform: rotate(45deg);
	left: 20px;
	z-index: -1;
}

/* Button Group */
.fmpp-button-group-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1em;
}

.fmpp-btn-group {
	text-align: left;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}

.fmpp-discount-text {
	font-size: 0.875rem;
	margin: 0;
	text-align: left;
	font-family: var(--secondary-font);
	font-weight: 500;
	color: var(--secondary-color);
}

/* Button Styles */
.fmpp-btn {
	color: rgba(0, 0, 0, 1);
	font-size: 14px;
	font-weight: 500;
	line-height: 17px;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	transition: box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
	border: none;
	font-family: var(--secondary-font);
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.fmpp-btn svg {
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

.fmpp-btn-primary {
	border: 2px solid #ff635d;
	background-color: rgba(255, 195, 173, 0.5);
}

.fmpp-btn-primary:hover {
	background-color: rgba(255, 195, 173, 0.75);
	box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.1);
}

.fmpp-btn-secondary {
	border: 2px solid rgba(218, 209, 197, 1);
	background-color: #FFFCF7 !important;
	margin-right: 3px;
	padding: 7px 12px;
}

.fmpp-btn-secondary:not(.active) {
	background-color: transparent !important;
}

.fmpp-btn-secondary:hover {
	background-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.1);
}

.fmpp-btn-secondary.active {
	background-color: rgba(255, 255, 255, 0.7);
}

/* Card Section */
.fmpp-card-section {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	width: 100%;
	margin-top: 2em;
}

.fmpp-card {
	background-color: #fff;
	box-shadow: var(--card-shadow);
	border-radius: 8px;
	padding: 1em;
	flex: 1 1 100%;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(218, 209, 197, 1);
}

.fmpp-card.fmpp-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.fmpp-plan-text {
	font-size: 1.5rem;
	margin: 0;
	text-align: center;
	font-family: var(--primary-font);
	font-weight: 700;
	color: var(--primary-color);
}

.fmpp-tag-text {
	font-size: 1rem;
	margin: 0;
	text-align: center;
	font-family: var(--primary-font);
	font-weight: 700;
	color: var(--secondary-color);
}

.fmpp-price-text {
	font-family: var(--primary-font);
	font-size: 32px;
	font-weight: 700;
	padding: 10px 0;
	text-align: center;
	margin: 0;
}

.fmpp-yearly-billed-text {
	font-family: var(--primary-font);
	font-size: 12px;
	font-weight: 700;
	color: var(--secondary-color);
	text-align: center;
	margin: 0;
	padding: 0 0 10px 0;
}

.fmpp-free-forever-text {
	font-family: var(--primary-font);
	font-size: 12px;
	font-weight: 400;
	color: var(--secondary-color);
	text-align: center;
	margin: 0;
	padding: 0 0 10px 0;
}

.fmpp-select-plan,
.fmpp-contact-us {
	width: 100%;
	margin: 10px 0;
	justify-content: center;
}

.fmpp-free-try-text {
	font-size: 1rem;
	margin: 0;
	text-align: center;
	font-family: var(--primary-font);
	font-weight: 700;
	color: var(--secondary-color);
	padding: 15px 0 25px;
}

.fmpp-perk-buttons {
	text-align: center;
}

.fmpp-perk-buttons button {
	width: 100%;
	text-align: center;
	max-width: 200px;
	min-width: 200px;
	margin: 3px;
}

.fmpp-breakpoint-or {
	display: flex;
	align-items: center;
	width: 93%;
	margin: 20px 0;
	padding-left: 24px;
}

.fmpp-breakpoint-or::after,
.fmpp-breakpoint-or::before {
	content: '';
	flex: 1;
	height: 2px;
	background-color: #dad1c5;
}

.fmpp-benefit-checks {
	text-align: left;
	margin-left: 16px;
	gap: 1.5em;
	line-height: 2;
	font-family: var(--secondary-font);
	font-weight: 500;
	font-size: 1rem;
	color: var(--primary-color);
}

.fmpp-benefit-checks p {
	margin: 0.5em 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4em;
}

.fmpp-benefit-checks svg {
	margin-top: 4px;
	flex-shrink: 0;
}

.fmpp-card h3 {
	text-align: left;
	font-family: var(--secondary-font);
	margin-left: 16px;
}
.fmpp-info-icon {
	width: 14px;
	height: 14px;
	background-image: url('https://dashboard.fairymail.app/images/info.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	cursor: pointer;
	position: relative;
	margin-right: -5px;
}
.fmpp-info-icon:hover {
	background-image: url('https://dashboard.fairymail.app/images/info-hover.png')!important;
}

.fmpp-info-tooltip{
	display:none;
}
.fmpp-feature-text {
    max-width: 80%;
    line-height: 1.5em;
	text-align: left;
    min-width: 80%;
}
.fmpp-info-icon:hover .fmpp-info-tooltip {
	display:block!important;
    position: absolute;
	right: -30px;
	top: 40px;
	transform: translateY(-50%);
	background-color: #FFF8EF;
	border: 4px solid #DAD1C5;
	color: #333;
	padding: 7px 11px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	z-index: 100;
	pointer-events: none;
	
	@media (max-width: 490px) {
		white-space: normal;
		max-width: 200px;
		width: 200px;
		right: 25px;
	}
}
.fmpp-check-mark {
	transform: scale(1.2);
}
.fmpp-check-mark svg {
	color: var(--accent-color);
}

.fmpp-check-mark-dark svg {
	color: var(--secondary-color);
}

/* Full Width Card (Custom Plan) */
.fmpp-full-width-card {
	flex: 1 0 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.fmpp-custom-plan-card,
.fmpp-custom-perk-card,
.fmpp-custom-contact-us {
	margin: 0 1em;
	text-align: center;
}

.fmpp-custom-plan-card {
	padding-top: 10px;
}

.fmpp-custom-plan-card h1 {
	font-size: 1.5rem;
	font-weight: bold;
	font-family: var(--primary-font);
}

.fmpp-custom-plan-card p {
	font-size: 1rem;
	margin: 0;
	text-align: center;
	font-family: var(--primary-font);
	font-weight: 700;
	color: var(--secondary-color);
}

.fmpp-custom-perk-card {
	text-align: left;
}

.fmpp-custom-perk-card p {
	font-size: 1rem;
	margin: 0.5em 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.fmpp-custom-perk-card svg {
	margin-top: 4px;
	flex-shrink: 0;
	color: var(--accent-color);
}

.fmpp-custom-contact-us h1 {
	font-size: 1.5rem;
	font-weight: bold;
}

.fmpp-custom-text {
	font-size: 2rem;
	text-align: center;
	font-family: var(--primary-font);
	font-weight: 700;
}

.fmpp-custom-contact-us button {
	width: 100%;
}
button.fmpp-btn.fmpp-btn-primary.fmpp-select-plan:focus {
    background: #f4d4c6!important;
}
/* Responsive - Desktop */
@media (min-width: 768px) {
	.fmpp-button-group-container {
		flex-direction: row;
		align-items: center;
	}

	.fmpp-card {
		flex: 1;
		max-width: calc(33.33% - 1em);
	}

	.fmpp-full-width-card {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.fmpp-text-slider-button {
		padding-top: 40px;
	}

	.fmpp-choose-plan-text {
		font-size: 1.5rem;
		text-align: center;
		width: 100%;
	}

	.fmpp-subscribers-text {
		font-size: 1rem;
		text-align: center;
		width: 100%;
	}

	.fmpp-discount-text {
		text-align: center;
	}

	.fmpp-card-section {
		flex-direction: column;
		gap: 1em;
	}

	.fmpp-card {
		padding: 1em;
	}

	.fmpp-perk-buttons button {
		max-width: 100%;
		min-width: auto;
	}

	.fmpp-custom-plan-card,
	.fmpp-custom-perk-card,
	.fmpp-custom-contact-us {
		margin: 0 0.5em;
	}

	.fmpp-custom-perk-card p {
		font-size: 0.9rem;
	}

	.fmpp-custom-text {
		font-size: 1.5rem;
	}

	.fmpp-benefit-checks {
		margin-left: 16px;
		font-size: 0.9rem;
		line-height: 1.8;
	}

	.fmpp-card h3 {
		font-size: 1rem;
		margin-left: 8px;
	}

	.fmpp-free-try-text {
		font-size: 0.9rem;
		padding: 10px 0 20px;
	}

	.fmpp-price-text {
		font-size: 1.5rem;
	}

	.fmpp-tag-text {
		font-size: 0.9rem;
	}

	.fmpp-plan-text {
		font-size: 1.25rem;
	}

	.fmpp-btn-group {
		width: 100%;
		margin-bottom: 16px;
		overflow-x: auto;
		display: flex;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.fmpp-btn-group::-webkit-scrollbar {
		display: none;
	}

	.fmpp-btn-group .fmpp-btn {
		font-size: 12px;
		padding: 6px 14px;
		min-width: auto;
		width: auto;
		white-space: nowrap;
		flex-shrink: 0;
		text-overflow: clip;
		overflow: visible;
	}
}
