/* ==========================================================
   UXD Pricing Widget — v1.0.0
   ========================================================== */

/* ── Card shell ────────────────────────────────────────── */
.uxd-pricing-card {
	background: #fff;
	border: 1px solid #E0E4E8;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: var(--e-global-typography-primary-font-family);
}

/* ── Header banner ─────────────────────────────────────── */
.uxd-card-header {
	background-color: #4B5D76;
	padding: 25px 50px;
}

.uxd-header-label {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #fff;
	display: block;
}

/* ── Card body ─────────────────────────────────────────── */
.uxd-card-body {
	padding: 45px 50px 35px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Plan name row ─────────────────────────────────────── */
.uxd-plan-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 50px;
	margin-bottom: 15px;
}

.uxd-plan-name {
	font-size: 22px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0;
	line-height: 37px;
	color: #3d4042;
	font-weight: 500;
}

/* ── Badges ─────────────────────────────────────────────── */
.uxd-badge {
	display: inline-block;
	padding: 5px 20px;
	border-radius: 32px;
	white-space: nowrap;
	line-height: 1.4;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 21px;
	text-transform: uppercase;
	color: #ffffff;
	font-weight: 600;
}

.uxd-badge-popular,
.uxd-badge-refundable {
	background-image: linear-gradient(90deg, #5578bb 30%, #a1ce9a 100%);;
	color: #fff;
}

.uxd-badge-coral {
	background: #FDEDEA;
	color: #C0392B;
	border: 1px solid #F5B7B1;
}

.uxd-badge-blue {
	background: #EBF5FB;
	color: #1A5276;
	border: 1px solid #AED6F1;
}

/* ── Description ────────────────────────────────────────── */
.uxd-plan-description {
	font-size: 22px;
	letter-spacing: -1px;
	line-height: 27px;
	color: #3d4042;
	font-weight: 300;
	margin: 0 0 25px;
}

/* ── Price (number) ─────────────────────────────────────── */
.uxd-price-row {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	margin-bottom: 6px;
	line-height: 1;
}

.uxd-price-currency {
	font-size: 26px;
	font-weight: 300;
	color: #1C2B3A;
	align-self: flex-start;
	margin-top: 10px;
	line-height: 1;
}

.uxd-price-amount {
	font-size: 75px;
    font-weight: 300;
    color: #5578bb;
    line-height: 1;
    letter-spacing: -3px;
}

.uxd-price-meta {
	display: flex;
	flex-direction: column;
	align-self: flex-end;
	margin-bottom: 10px;
	margin-left: 4px;
	gap: 3px;
}

.uxd-price-period {
	font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3d4042;
    display: block;
}

.uxd-price-sub-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #4A5568;
	display: block;
	max-width: 80px;
	line-height: 1.35;
}

/* ── Price (text / inquire) ─────────────────────────────── */
.uxd-price-row--text {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 10px;
}

.uxd-price-text-value {
	font-size: 52px;
	font-weight: 300;
	font-style: normal;
	color: #E86050;
	line-height: 70px;
	letter-spacing: -2px;
	display: block;
}

.uxd-price-row--text .uxd-price-period {
	margin-left: 0;
}

/* ── Billing note ────────────────────────────────────────── */
.uxd-billing-note {
	font-size: 18px;
    color: #3d4042;
    margin: 8px 0 18px;
    line-height: 24px;
    letter-spacing: -1px;
    font-weight: 300;
}

/* ── Gift box ────────────────────────────────────────────── */
.uxd-gift-box {
	background: #EDF5FC;
	border: 1px solid #C8DFF0;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 20px;
}

.uxd-gift-icon {
	flex-shrink: 0;
	width: 30px;
	display: flex;
	align-items: flex-start;
	padding-top: 2px;
}

.uxd-gift-icon-img {
	width: 30px;
	height: auto;
	display: block;
	margin-top:8px;
}

.uxd-gift-content strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.75px;
	text-transform: uppercase;
	color: #3d4042;
	line-height: 34px;
}

.uxd-gift-content span {
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	color:#f4806b;
	display: block;
	letter-spacing: -0.30px;
}

.uxd-gift-content span span{
	display: inline-block
}

/* ── Buttons ─────────────────────────────────────────────── */
.uxd-buttons {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.uxd-buttons .uxd-btn-primary {
	display: inline-block;
	padding: 20px 35px;
	background: #E86050;
	color: #fff !important;
	text-decoration: none !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 45px;
	transition: background 0.18s ease, transform 0.12s ease;
	white-space: nowrap;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 21px;
	font-weight: 600;
	text-align: center;
}

.uxd-buttons .uxd-btn-primary:hover,
.uxd-buttons .uxd-btn-primary:focus {
	background: #BD4933!important;
	color: #fff !important;
	/* transform: translateY(-1px); */
}

.uxd-buttons .uxd-btn-secondary {
	display: inline-block;
    color: #3d4042 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
    white-space: nowrap;
    letter-spacing: 1px;
}

.uxd-buttons .uxd-btn-secondary:hover,
.uxd-buttons .uxd-btn-secondary:focus {
	color: #E86050 !important;
}

/* ── Perks toggle bar ────────────────────────────────────── */
.uxd-perks-toggle-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0 15px;
    margin-top: 25px;
	border-top: 1px solid #afb0b1;
	cursor: pointer;
	user-select: none;
}


.uxd-perks-toggle-label {
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 24px;
	text-transform: uppercase;
	color: #3d4042;
	font-weight: 500;
}

/* ── Plus / minus icon ───────────────────────────────────── */
.uxd-toggle-icon {
	position: relative;
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

.uxd-toggle-icon::before,
.uxd-toggle-icon::after {
	content: '';
	position: absolute;
	background-color: #E86050;
	transition: transform 0.25s ease, opacity 0.22s ease;
	border-radius: 1px;
}

/* Horizontal bar */
.uxd-toggle-icon::before {
	width: 14px;
	height: 2px;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

/* Vertical bar */
.uxd-toggle-icon::after {
	width: 2px;
	height: 14px;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

/* Open state — vertical bar fades out, making it a minus */
.uxd-pricing-card.is-perks-open .uxd-toggle-icon::after {
	transform: translateX(-50%) rotate(90deg);
	opacity: 0;
}

/* ── Perks list (collapsed / expanded) ───────────────────── */
.uxd-perks-list {
	max-height: 0;
	opacity: 0;
	transition: max-height 0.38s ease;
}

.uxd-perks-list.is-open {
	max-height: 3000px;
	opacity: 1;
}

/* ── Individual perk item ────────────────────────────────── */
.uxd-perk-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 13px 0;
	border-bottom: 1px solid #F0F3F6;
}

.uxd-perk-item:last-of-type {
	border-bottom: none;
}

.uxd-perk-check {
	flex-shrink: 0;
	color: #E86050;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	display: block;
}

.uxd-perk-check svg {
	display: block;
}

.uxd-perk-content {
	flex: 1;
	min-width: 0;
}

.uxd-perk-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.uxd-perk-title {
	font-size: 16px;
    font-weight: 500;
    color: #3d4042;
    line-height: 21px;
    letter-spacing: -1px;
}

.uxd-perk-desc {
	font-size: 14px;
	color: #3d4042;
	line-height: 1.55;
	margin: 0;
	letter-spacing: -1px;
}

/* ── Bonus gift badge ────────────────────────────────────── */
.uxd-bonus-badge {
	display: inline-block;
    padding: 2px 10px;
    background-image: linear-gradient(90deg, #5578bb 30%, #a1ce9a 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 32px;
    line-height: 17px;
    flex-shrink: 0;
}

/* ── Tooltip trigger dot ─────────────────────────────────── */
.uxd-tooltip-wrap {
	display: inline-flex;
	align-items: center;
	position: relative;
}

.uxd-tooltip-wrap .uxd-tooltip-trigger {
	width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4A7FBA;
    border: none;
    padding: 0px 7px;
    cursor: pointer;
    display: block;
    transition: background 0.15s ease;
    flex-shrink: 0;
    text-transform: lowercase;
    text-align: center;
    line-height: 1;
    font-size: 12px;
}

.uxd-tooltip-wrap .uxd-tooltip-trigger:hover,
.uxd-tooltip-wrap .uxd-tooltip-trigger:focus {
	background: #2E60A0;
	outline: none;
}

/* ── Tooltip box ─────────────────────────────────────────── */
.uxd-tooltip-box {
	display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 270px;
    background: #e8eef8;
    border: 1px solid #dee5f1;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgb(209 209 209 / 13%);
    pointer-events: none;
}

/* Show on hover OR when JS adds .is-visible */
.uxd-tooltip-wrap:hover .uxd-tooltip-box,
.uxd-tooltip-wrap.is-visible .uxd-tooltip-box {
	display: block;
	pointer-events: auto;
}

/* Arrow */
.uxd-tooltip-box::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: #dee5f1;
}

.uxd-tooltip-box::after {
	content: '';
	position: absolute;
	bottom: calc(100% - 1px);
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: #e8eef8;
}

.uxd-tooltip-inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
}

.uxd-tooltip-inner img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.uxd-tooltip-inner p {
	font-size: 13px;
    color: #3d4042;
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.50px;
    line-height: 18px;
}

/* ── Annual note ─────────────────────────────────────────── */
.uxd-annual-note {
	font-size: 14px;
    color: #3d4042;
    margin: 14px 0 4px;
    line-height: 1.5;
    letter-spacing: -1px;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
	.uxd-price-amount {
		font-size: 60px;
	}

	.uxd-price-currency {
		font-size: 22px;
		margin-top: 8px;
	}

	.uxd-tooltip-box {
		left: auto;
		right: 0;
		top: calc(100% + 8px);
		transform: none;
	}

	.uxd-tooltip-box::before,
	.uxd-tooltip-box::after {
		display: none;
	}
	.uxd-card-body{
		padding: 30px 25px 25px;
	}
	.uxd-card-header{
		padding: 20px 25px;
	}
	.uxd-gift-content strong{
		line-height: 20px;
	}
	.uxd-perk-title-row{
		gap: 5px;
	}
	.uxd-plan-row{
		gap: 10px;
	}
	.uxd-plan-name{
		font-size: 20px;
    	letter-spacing: 0px;
	}
	.uxd-badge{
		padding: 4px 12px;
		font-size: 11px;
		line-height: 16px;
	}
	.uxd-plan-description{
		font-size: 18px;
		line-height: 24px;
	}
	.uxd-price-text-value{
		font-size: 36px;
		line-height: 40px;
    	letter-spacing: -1px;
	}
}
