/* ==========================================================================
   Creative Addons - Pricing Table Widget
   ========================================================================== */

/* --- Base / Wrapper --- */
.dea-pricing-table {
	--dea-pt-anim-duration: 300ms;
	position: relative;
	width: 100%;
}

.dea-pt-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	padding: 40px 32px;
	transition: transform var(--dea-pt-anim-duration) ease,
		box-shadow var(--dea-pt-anim-duration) ease,
		border-color var(--dea-pt-anim-duration) ease;
	text-align: center;
	box-sizing: border-box;
}

/* --- Pricing Switch --- */
.dea-pt-switch-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.dea-pt-switch-label {
	font-size: 15px;
	font-weight: 500;
	color: #6b7280;
	transition: color 0.2s ease, font-weight 0.2s ease;
	cursor: default;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dea-pt-switch-label--active {
	color: #111827;
	font-weight: 600;
}

.dea-pt-toggle {
	position: relative;
	width: 52px;
	height: 28px;
	background: #d1d5db;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background-color 0.25s ease;
	outline-offset: 2px;
}

.dea-pt-toggle:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.dea-pt-toggle[aria-pressed="true"] {
	background: #6366f1;
}

.dea-pt-toggle-knob {
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 22px;
	height: 22px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dea-pt-toggle[aria-pressed="true"] .dea-pt-toggle-knob {
	transform: translateX(24px);
}

[dir="rtl"] .dea-pt-toggle[aria-pressed="true"] .dea-pt-toggle-knob,
.dea-pt-rtl .dea-pt-toggle[aria-pressed="true"] .dea-pt-toggle-knob {
	transform: translateX(-24px);
}

.dea-pt-discount-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 10px;
	background: #ecfdf5;
	color: #059669;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

/* --- Header --- */
.dea-pt-header {
	margin-bottom: 20px;
}

.dea-pt-icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 12px;
	color: #6366f1;
}

.dea-pt-icon svg {
	width: 40px;
	height: 40px;
	fill: currentColor;
}

.dea-pt-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #111827;
	line-height: 1.3;
}

.dea-pt-subtitle {
	font-size: 14px;
	font-weight: 500;
	color: #6366f1;
	margin: 0 0 8px;
}

.dea-pt-description {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

/* --- Price --- */
.dea-pt-price-area {
	margin-bottom: 24px;
	min-height: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.dea-pt-original-price {
	font-size: 16px;
	color: #9ca3af;
	text-decoration: line-through;
	display: inline-block;
	margin-bottom: 4px;
}

.dea-pt-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	line-height: 1;
}

.dea-pt-price-value {
	font-size: 48px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
	transition: opacity 0.3s ease;
}

.dea-pt-price-value.dea-pt-price-switching {
	opacity: 0;
	transform: translateY(-8px);
}

.dea-pt-currency {
	font-size: 24px;
	font-weight: 700;
	color: #6b7280;
	line-height: 1;
}

.dea-pt-currency--before {
	margin-inline-end: 2px;
	align-self: flex-start;
	margin-top: 8px;
}

.dea-pt-currency--after {
	margin-inline-start: 2px;
}

.dea-pt-period {
	font-size: 14px;
	color: #9ca3af;
	margin-top: 4px;
	display: inline-block;
}

.dea-pt-price-free,
.dea-pt-price-custom {
	font-size: 40px;
	font-weight: 800;
	color: #111827;
}

/* --- Features --- */
.dea-pt-features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	text-align: start;
}

.dea-pt-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
	transition: background-color 0.15s ease;
}

.dea-pt-feature:last-child {
	border-bottom: none;
}

.dea-pt-feature:hover {
	background-color: #f9fafb;
}

.dea-pt-feature-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 14px;
}

.dea-pt-feature-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.dea-pt-feature--included .dea-pt-feature-icon {
	color: #10b981;
}

.dea-pt-feature--excluded .dea-pt-feature-icon {
	color: #d1d5db;
}

.dea-pt-feature--excluded .dea-pt-feature-text {
	color: #9ca3af;
}

.dea-pt-feature--highlight {
	background-color: #eff6ff;
	border-radius: 6px;
	padding-inline: 8px;
}

.dea-pt-feature-text {
	font-size: 14px;
	color: #374151;
	flex: 1;
}

.dea-pt-feature-group-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	padding: 16px 0 6px;
	border-bottom: none;
}

/* --- Tooltip --- */
.dea-pt-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin-inline-start: 4px;
	font-size: 13px;
	color: #9ca3af;
	flex-shrink: 0;
}

.dea-pt-tooltip:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
	border-radius: 2px;
}

.dea-pt-tooltip-content {
	position: absolute;
	z-index: 10;
	background: #1f2937;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	padding: 8px 12px;
	border-radius: 6px;
	max-width: 220px;
	width: max-content;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-align: start;
}

.dea-pt-tooltip-content::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	background: inherit;
	transform: rotate(45deg);
}

/* Tooltip positions */
.dea-pricing-table[data-dea-pt-tooltip-pos="top"] .dea-pt-tooltip-content {
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="top"] .dea-pt-tooltip-content::after {
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
}

.dea-pricing-table[data-dea-pt-tooltip-pos="bottom"] .dea-pt-tooltip-content {
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(-4px);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="bottom"] .dea-pt-tooltip-content::after {
	top: -4px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
}

.dea-pricing-table[data-dea-pt-tooltip-pos="left"] .dea-pt-tooltip-content {
	right: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%) translateX(4px);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="left"] .dea-pt-tooltip-content::after {
	right: -4px;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.dea-pricing-table[data-dea-pt-tooltip-pos="right"] .dea-pt-tooltip-content {
	left: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%) translateX(-4px);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="right"] .dea-pt-tooltip-content::after {
	left: -4px;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

/* Tooltip visible state */
.dea-pt-tooltip--active .dea-pt-tooltip-content,
.dea-pt-tooltip.dea-pt-tooltip--active .dea-pt-tooltip-content {
	opacity: 1;
	visibility: visible;
}

.dea-pricing-table[data-dea-pt-tooltip-pos="top"] .dea-pt-tooltip--active .dea-pt-tooltip-content {
	transform: translateX(-50%) translateY(0);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="bottom"] .dea-pt-tooltip--active .dea-pt-tooltip-content {
	transform: translateX(-50%) translateY(0);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="left"] .dea-pt-tooltip--active .dea-pt-tooltip-content {
	transform: translateY(-50%) translateX(0);
}
.dea-pricing-table[data-dea-pt-tooltip-pos="right"] .dea-pt-tooltip--active .dea-pt-tooltip-content {
	transform: translateY(-50%) translateX(0);
}

/* --- RTL tooltip position swap --- */
[dir="rtl"] .dea-pricing-table[data-dea-pt-tooltip-pos="left"] .dea-pt-tooltip-content,
.dea-pt-rtl[data-dea-pt-tooltip-pos="left"] .dea-pt-tooltip-content {
	right: auto;
	left: calc(100% + 8px);
}
[dir="rtl"] .dea-pricing-table[data-dea-pt-tooltip-pos="right"] .dea-pt-tooltip-content,
.dea-pt-rtl[data-dea-pt-tooltip-pos="right"] .dea-pt-tooltip-content {
	left: auto;
	right: calc(100% + 8px);
}

/* --- CTA --- */
.dea-pt-cta {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.dea-pt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	background: #6366f1;
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
}

.dea-pt-btn:hover {
	background: #4f46e5;
	transform: translateY(-1px);
}

.dea-pt-btn:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.dea-pt-btn-icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dea-pt-btn-icon--before {
	flex-direction: row;
}

.dea-pt-btn-icon--after {
	flex-direction: row;
}

.dea-pt-btn--secondary {
	background: transparent;
	color: #6366f1;
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 500;
}

.dea-pt-btn--secondary:hover {
	background: #eef2ff;
	color: #4f46e5;
	transform: none;
}

.dea-pt-trial-note {
	font-size: 12px;
	color: #9ca3af;
	margin: 4px 0 0;
	text-align: center;
}

/* --- Ribbon --- */
.dea-pt-ribbon {
	position: absolute;
	z-index: 2;
	overflow: hidden;
}

/* Corner ribbon */
.dea-pt-ribbon--corner {
	width: 120px;
	height: 120px;
	top: 0;
}

.dea-pt-ribbon--corner.dea-pt-ribbon--top-right {
	right: 0;
}

.dea-pt-ribbon--corner.dea-pt-ribbon--top-left {
	left: 0;
}

.dea-pt-ribbon--corner .dea-pt-ribbon-text {
	position: absolute;
	display: block;
	width: 170px;
	padding: 6px 0;
	background: #6366f1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dea-pt-ribbon--corner.dea-pt-ribbon--top-right .dea-pt-ribbon-text {
	top: 26px;
	right: -40px;
	transform: rotate(45deg);
}

.dea-pt-ribbon--corner.dea-pt-ribbon--top-left .dea-pt-ribbon-text {
	top: 26px;
	left: -40px;
	transform: rotate(-45deg);
}

/* Badge ribbon */
.dea-pt-ribbon--badge {
	top: -1px;
}

.dea-pt-ribbon--badge.dea-pt-ribbon--top-right {
	right: 20px;
}

.dea-pt-ribbon--badge.dea-pt-ribbon--top-left {
	left: 20px;
}

.dea-pt-ribbon--badge .dea-pt-ribbon-text {
	display: inline-block;
	padding: 6px 16px;
	background: #6366f1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 0 0 8px 8px;
}

/* Flag ribbon */
.dea-pt-ribbon--flag {
	top: 16px;
}

.dea-pt-ribbon--flag.dea-pt-ribbon--top-right {
	right: -6px;
}

.dea-pt-ribbon--flag.dea-pt-ribbon--top-left {
	left: -6px;
}

.dea-pt-ribbon--flag .dea-pt-ribbon-text {
	display: inline-block;
	padding: 6px 16px 6px 12px;
	background: #6366f1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px 0 0 4px;
}

.dea-pt-ribbon--flag.dea-pt-ribbon--top-left .dea-pt-ribbon-text {
	border-radius: 0 4px 4px 0;
}

/* Stripe ribbon */
.dea-pt-ribbon--stripe {
	top: 0;
	left: 0;
	right: 0;
}

.dea-pt-ribbon--stripe .dea-pt-ribbon-text {
	display: block;
	width: 100%;
	padding: 6px 0;
	background: #6366f1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --- Hover Animations --- */
.dea-pt-hover--lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dea-pt-hover--shadow-glow:hover {
	box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dea-pt-hover--border-reveal {
	border: 2px solid transparent;
}

.dea-pt-hover--border-reveal:hover {
	border-color: #6366f1;
}

.dea-pt-hover--gradient-border {
	position: relative;
}

.dea-pt-hover--gradient-border::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--dea-pt-anim-duration) ease;
	pointer-events: none;
}

.dea-pt-hover--gradient-border:hover::before {
	opacity: 1;
}

.dea-pt-hover--bg-shine::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
	transition: left 0.6s ease;
	pointer-events: none;
}

.dea-pt-hover--bg-shine:hover::after {
	left: 100%;
}

.dea-pt-hover--scale-featured.dea-pt-card--featured:hover {
	transform: scale(1.04);
}

/* --- CTA Animations --- */
.dea-pt-cta--arrow-slide .dea-pt-btn-icon--after i:last-child,
.dea-pt-cta--arrow-slide .dea-pt-btn-icon--after svg:last-child {
	transition: transform 0.25s ease;
}

.dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after i:last-child,
.dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after svg:last-child {
	transform: translateX(4px);
}

[dir="rtl"] .dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after i:last-child,
[dir="rtl"] .dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after svg:last-child,
.dea-pt-rtl .dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after i:last-child,
.dea-pt-rtl .dea-pt-cta--arrow-slide:hover .dea-pt-btn-icon--after svg:last-child {
	transform: translateX(-4px);
}

.dea-pt-cta--glow:hover {
	box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.dea-pt-cta--ripple {
	position: relative;
	overflow: hidden;
}

.dea-pt-cta--ripple .dea-pt-ripple-circle {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transform: scale(0);
	animation: dea-pt-ripple 0.6s ease-out forwards;
	pointer-events: none;
}

@keyframes dea-pt-ripple {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

/* --- Preset: Classic --- */
.dea-pt-preset--classic {
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* --- Preset: SaaS --- */
.dea-pt-preset--saas {
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dea-pt-preset--saas.dea-pt-card--featured {
	border-color: #6366f1;
	box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

/* --- Preset: Gradient --- */
.dea-pt-preset--gradient {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
}

.dea-pt-preset--gradient .dea-pt-title,
.dea-pt-preset--gradient .dea-pt-price-value,
.dea-pt-preset--gradient .dea-pt-price-free,
.dea-pt-preset--gradient .dea-pt-price-custom {
	color: #fff;
}

.dea-pt-preset--gradient .dea-pt-subtitle,
.dea-pt-preset--gradient .dea-pt-description,
.dea-pt-preset--gradient .dea-pt-period,
.dea-pt-preset--gradient .dea-pt-currency,
.dea-pt-preset--gradient .dea-pt-feature-text,
.dea-pt-preset--gradient .dea-pt-trial-note {
	color: rgba(255, 255, 255, 0.85);
}

.dea-pt-preset--gradient .dea-pt-feature--included .dea-pt-feature-icon {
	color: #a7f3d0;
}

.dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-icon,
.dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-text {
	color: rgba(255, 255, 255, 0.4);
}

.dea-pt-preset--gradient .dea-pt-feature {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.dea-pt-preset--gradient .dea-pt-feature:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

.dea-pt-preset--gradient .dea-pt-btn {
	background: #fff;
	color: #764ba2;
}

.dea-pt-preset--gradient .dea-pt-btn:hover {
	background: rgba(255, 255, 255, 0.9);
}

.dea-pt-preset--gradient .dea-pt-btn--secondary {
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
}

.dea-pt-preset--gradient .dea-pt-original-price {
	color: rgba(255, 255, 255, 0.5);
}

.dea-pt-preset--gradient .dea-pt-icon {
	color: #fff;
}

.dea-pt-preset--gradient .dea-pt-icon svg {
	fill: #fff;
}

/* --- Preset: Glassmorphism --- */
.dea-pt-preset--glass {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* --- Preset: Minimal --- */
.dea-pt-preset--minimal {
	background: transparent;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: none;
	padding: 32px 24px;
}

.dea-pt-preset--minimal .dea-pt-btn {
	background: transparent;
	color: #111827;
	border: 2px solid #111827;
	border-radius: 6px;
}

.dea-pt-preset--minimal .dea-pt-btn:hover {
	background: #111827;
	color: #fff;
}

/* --- Preset: Featured Highlight --- */
.dea-pt-preset--featured {
	border: 2px solid #6366f1;
	box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
	transform: scale(1.03);
}

.dea-pt-preset--featured .dea-pt-btn {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dea-pt-preset--featured .dea-pt-btn:hover {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* --- Preset: Comparison --- */
.dea-pt-preset--comparison {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.dea-pt-preset--comparison .dea-pt-features {
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
}

/* --- Preset: Horizontal --- */
.dea-pt-preset--horizontal {
	flex-direction: row;
	text-align: start;
	gap: 32px;
	align-items: center;
	padding: 32px;
	border: 1px solid #e5e7eb;
}

.dea-pt-preset--horizontal .dea-pt-header {
	flex: 1;
	margin-bottom: 0;
}

.dea-pt-preset--horizontal .dea-pt-price-area {
	flex-shrink: 0;
	margin-bottom: 0;
}

.dea-pt-preset--horizontal .dea-pt-features {
	flex: 1;
	margin-bottom: 0;
}

.dea-pt-preset--horizontal .dea-pt-cta {
	flex-shrink: 0;
	margin-top: 0;
}

/* --- Preset: Dark --- */
.dea-pt-preset--dark {
	background: #111827;
	border: 1px solid #374151;
	color: #f9fafb;
}

.dea-pt-preset--dark .dea-pt-title,
.dea-pt-preset--dark .dea-pt-price-value,
.dea-pt-preset--dark .dea-pt-price-free,
.dea-pt-preset--dark .dea-pt-price-custom {
	color: #f9fafb;
}

.dea-pt-preset--dark .dea-pt-subtitle {
	color: #818cf8;
}

.dea-pt-preset--dark .dea-pt-description,
.dea-pt-preset--dark .dea-pt-feature-text,
.dea-pt-preset--dark .dea-pt-period,
.dea-pt-preset--dark .dea-pt-currency,
.dea-pt-preset--dark .dea-pt-trial-note {
	color: #9ca3af;
}

.dea-pt-preset--dark .dea-pt-feature {
	border-bottom-color: #374151;
}

.dea-pt-preset--dark .dea-pt-feature:hover {
	background-color: #1f2937;
}

.dea-pt-preset--dark .dea-pt-feature--highlight {
	background-color: rgba(99, 102, 241, 0.1);
}

.dea-pt-preset--dark .dea-pt-feature--included .dea-pt-feature-icon {
	color: #34d399;
}

.dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-icon {
	color: #4b5563;
}

.dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-text {
	color: #4b5563;
}

.dea-pt-preset--dark .dea-pt-original-price {
	color: #4b5563;
}

.dea-pt-preset--dark .dea-pt-icon {
	color: #818cf8;
}

.dea-pt-preset--dark .dea-pt-icon svg {
	fill: #818cf8;
}

.dea-pt-preset--dark .dea-pt-btn {
	background: #6366f1;
}

.dea-pt-preset--dark .dea-pt-btn:hover {
	background: #818cf8;
}

.dea-pt-preset--dark .dea-pt-btn--secondary {
	background: transparent;
	color: #818cf8;
}

/* --- Preset: Modern Startup --- */
.dea-pt-preset--modern-startup {
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	padding: 48px 36px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.dea-pt-preset--modern-startup.dea-pt-card--featured {
	background: linear-gradient(180deg, #eef2ff 0%, #fff 40%);
	border-color: #c7d2fe;
}

.dea-pt-preset--modern-startup .dea-pt-btn {
	border-radius: 99px;
	padding: 16px 32px;
}

/* --- Featured card shared --- */
.dea-pt-card--featured {
	position: relative;
	z-index: 1;
}

/* --- Screen reader only --- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Mobile: disable hover animations --- */
@media (max-width: 767px) {
	.dea-pt-no-anim-mobile.dea-pt-hover--lift:hover,
	.dea-pt-no-anim-mobile.dea-pt-hover--shadow-glow:hover,
	.dea-pt-no-anim-mobile.dea-pt-hover--border-reveal:hover,
	.dea-pt-no-anim-mobile.dea-pt-hover--scale-featured:hover {
		transform: none;
		box-shadow: inherit;
		border-color: inherit;
	}

	.dea-pt-no-anim-mobile.dea-pt-hover--gradient-border:hover::before {
		opacity: 0;
	}

	.dea-pt-no-anim-mobile.dea-pt-hover--bg-shine:hover::after {
		left: -100%;
	}

	/* Horizontal -> vertical on mobile */
	.dea-pt-preset--horizontal {
		flex-direction: column;
		text-align: center;
	}

	.dea-pt-preset--horizontal .dea-pt-features {
		margin-bottom: 24px;
	}
}

/* ==========================================================================
   RTL — comprehensive adjustments
   Targets both page-level [dir="rtl"] and widget-level .dea-pt-rtl (Force RTL).
   ========================================================================== */

/* --- Wrapper: text direction & alignment --- */
.dea-pt-rtl {
	direction: rtl;
	text-align: right;
}

.dea-pt-rtl .dea-pt-card {
	text-align: center;
}

/* --- Pricing Switch: label order is visually correct because flexbox
       respects direction. Only the knob needs manual flip (handled above). --- */
.dea-pt-rtl .dea-pt-switch-wrap,
[dir="rtl"] .dea-pt-switch-wrap {
	direction: rtl;
}

/* --- Features list: icon + text row ---
   Use direction:rtl on each row so flexbox lays out icon on the right,
   text in the middle, and tooltip on the left — matching natural RTL order. */
.dea-pt-rtl .dea-pt-features,
[dir="rtl"] .dea-pt-features {
	direction: rtl;
	text-align: right;
}

.dea-pt-rtl .dea-pt-feature,
[dir="rtl"] .dea-pt-feature {
	direction: rtl;
	flex-direction: row;
}

/* Included icon color in RTL (re-assert to avoid specificity loss) */
.dea-pt-rtl .dea-pt-feature--included .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-feature--included .dea-pt-feature-icon {
	color: #10b981;
}

.dea-pt-rtl .dea-pt-feature--included .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-feature--included .dea-pt-feature-icon svg {
	fill: #10b981;
}

/* Excluded icon color in RTL */
.dea-pt-rtl .dea-pt-feature--excluded .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-feature--excluded .dea-pt-feature-icon {
	color: #d1d5db;
}

.dea-pt-rtl .dea-pt-feature--excluded .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-feature--excluded .dea-pt-feature-icon svg {
	fill: #d1d5db;
}

/* Excluded text stays muted */
.dea-pt-rtl .dea-pt-feature--excluded .dea-pt-feature-text,
[dir="rtl"] .dea-pt-feature--excluded .dea-pt-feature-text {
	color: #9ca3af;
}

.dea-pt-rtl .dea-pt-feature-text,
[dir="rtl"] .dea-pt-feature-text {
	text-align: right;
}

.dea-pt-rtl .dea-pt-feature--highlight,
[dir="rtl"] .dea-pt-feature--highlight {
	padding-inline-start: 8px;
	padding-inline-end: 8px;
}

.dea-pt-rtl .dea-pt-feature-group-heading,
[dir="rtl"] .dea-pt-feature-group-heading {
	text-align: right;
}

/* --- Preset-specific feature icon color overrides in RTL --- */

/* Gradient preset */
.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature--included .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature--included .dea-pt-feature-icon {
	color: #a7f3d0;
}

.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature--included .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature--included .dea-pt-feature-icon svg {
	fill: #a7f3d0;
}

.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-icon,
.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature--excluded .dea-pt-feature-icon svg {
	color: rgba(255, 255, 255, 0.4);
	fill: rgba(255, 255, 255, 0.4);
}

/* Dark preset */
.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature--included .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature--included .dea-pt-feature-icon {
	color: #34d399;
}

.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature--included .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature--included .dea-pt-feature-icon svg {
	fill: #34d399;
}

.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-icon,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-icon {
	color: #4b5563;
}

.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-icon svg,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature--excluded .dea-pt-feature-icon svg {
	fill: #4b5563;
}

/* Feature hover bg in RTL for dark/gradient */
.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature:hover,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature:hover {
	background-color: #1f2937;
}

.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature:hover,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

/* Feature border in RTL for dark/gradient */
.dea-pt-rtl .dea-pt-preset--dark .dea-pt-feature,
[dir="rtl"] .dea-pt-preset--dark .dea-pt-feature {
	border-bottom-color: #374151;
}

.dea-pt-rtl .dea-pt-preset--gradient .dea-pt-feature,
[dir="rtl"] .dea-pt-preset--gradient .dea-pt-feature {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* --- Tooltip trigger: flip margin side --- */
.dea-pt-rtl .dea-pt-tooltip,
[dir="rtl"] .dea-pt-tooltip {
	margin-inline-start: 0;
	margin-inline-end: 4px;
}

/* --- Price: currency + value alignment --- */
.dea-pt-rtl .dea-pt-price-row,
[dir="rtl"] .dea-pt-price-row {
	direction: rtl;
}

.dea-pt-rtl .dea-pt-currency--before,
[dir="rtl"] .dea-pt-currency--before {
	margin-inline-end: 0;
	margin-inline-start: 2px;
}

.dea-pt-rtl .dea-pt-currency--after,
[dir="rtl"] .dea-pt-currency--after {
	margin-inline-start: 0;
	margin-inline-end: 2px;
}

.dea-pt-rtl .dea-pt-original-price,
[dir="rtl"] .dea-pt-original-price {
	direction: rtl;
}

/* --- Button: icon position flip --- */
.dea-pt-rtl .dea-pt-btn-icon,
[dir="rtl"] .dea-pt-btn-icon {
	direction: rtl;
}

/* --- Ribbon: Flag --- */
.dea-pt-rtl .dea-pt-ribbon--flag.dea-pt-ribbon--top-right,
[dir="rtl"] .dea-pt-ribbon--flag.dea-pt-ribbon--top-right {
	right: auto;
	left: -6px;
}

.dea-pt-rtl .dea-pt-ribbon--flag.dea-pt-ribbon--top-right .dea-pt-ribbon-text,
[dir="rtl"] .dea-pt-ribbon--flag.dea-pt-ribbon--top-right .dea-pt-ribbon-text {
	border-radius: 0 4px 4px 0;
}

.dea-pt-rtl .dea-pt-ribbon--flag.dea-pt-ribbon--top-left,
[dir="rtl"] .dea-pt-ribbon--flag.dea-pt-ribbon--top-left {
	left: auto;
	right: -6px;
}

.dea-pt-rtl .dea-pt-ribbon--flag.dea-pt-ribbon--top-left .dea-pt-ribbon-text,
[dir="rtl"] .dea-pt-ribbon--flag.dea-pt-ribbon--top-left .dea-pt-ribbon-text {
	border-radius: 4px 0 0 4px;
}

/* --- Ribbon: Corner --- */
.dea-pt-rtl .dea-pt-ribbon--corner.dea-pt-ribbon--top-right,
[dir="rtl"] .dea-pt-ribbon--corner.dea-pt-ribbon--top-right {
	right: auto;
	left: 0;
}

.dea-pt-rtl .dea-pt-ribbon--corner.dea-pt-ribbon--top-right .dea-pt-ribbon-text,
[dir="rtl"] .dea-pt-ribbon--corner.dea-pt-ribbon--top-right .dea-pt-ribbon-text {
	right: auto;
	left: -40px;
	transform: rotate(-45deg);
}

.dea-pt-rtl .dea-pt-ribbon--corner.dea-pt-ribbon--top-left,
[dir="rtl"] .dea-pt-ribbon--corner.dea-pt-ribbon--top-left {
	left: auto;
	right: 0;
}

.dea-pt-rtl .dea-pt-ribbon--corner.dea-pt-ribbon--top-left .dea-pt-ribbon-text,
[dir="rtl"] .dea-pt-ribbon--corner.dea-pt-ribbon--top-left .dea-pt-ribbon-text {
	left: auto;
	right: -40px;
	transform: rotate(45deg);
}

/* --- Ribbon: Badge --- */
.dea-pt-rtl .dea-pt-ribbon--badge.dea-pt-ribbon--top-right,
[dir="rtl"] .dea-pt-ribbon--badge.dea-pt-ribbon--top-right {
	right: auto;
	left: 20px;
}

.dea-pt-rtl .dea-pt-ribbon--badge.dea-pt-ribbon--top-left,
[dir="rtl"] .dea-pt-ribbon--badge.dea-pt-ribbon--top-left {
	left: auto;
	right: 20px;
}

/* --- Background Shine: sweep right-to-left in RTL --- */
.dea-pt-rtl .dea-pt-hover--bg-shine::after,
[dir="rtl"] .dea-pt-hover--bg-shine::after {
	left: auto;
	right: -100%;
	transition: right 0.6s ease;
}

.dea-pt-rtl .dea-pt-hover--bg-shine:hover::after,
[dir="rtl"] .dea-pt-hover--bg-shine:hover::after {
	right: 100%;
}

/* --- Horizontal preset: natural RTL flow --- */
.dea-pt-rtl .dea-pt-preset--horizontal,
[dir="rtl"] .dea-pt-preset--horizontal {
	direction: rtl;
}

.dea-pt-rtl .dea-pt-preset--horizontal .dea-pt-header,
[dir="rtl"] .dea-pt-preset--horizontal .dea-pt-header {
	text-align: right;
}

/* --- Trial note: align right --- */
.dea-pt-rtl .dea-pt-trial-note,
[dir="rtl"] .dea-pt-trial-note {
	text-align: center;
}

/* --- Discount badge: natural inline direction --- */
.dea-pt-rtl .dea-pt-discount-badge,
[dir="rtl"] .dea-pt-discount-badge {
	margin-inline-start: 6px;
	margin-inline-end: 0;
}

/* --- Description / subtitle in horizontal mode --- */
.dea-pt-rtl .dea-pt-description,
[dir="rtl"] .dea-pt-description {
	text-align: center;
}

.dea-pt-rtl .dea-pt-preset--horizontal .dea-pt-description,
[dir="rtl"] .dea-pt-preset--horizontal .dea-pt-description {
	text-align: right;
}

/* --- Mobile RTL horizontal fallback --- */
@media (max-width: 767px) {
	.dea-pt-rtl .dea-pt-preset--horizontal,
	[dir="rtl"] .dea-pt-preset--horizontal {
		direction: rtl;
		flex-direction: column;
		text-align: center;
	}

	.dea-pt-rtl .dea-pt-preset--horizontal .dea-pt-header,
	[dir="rtl"] .dea-pt-preset--horizontal .dea-pt-header {
		text-align: center;
	}

	.dea-pt-rtl .dea-pt-preset--horizontal .dea-pt-description,
	[dir="rtl"] .dea-pt-preset--horizontal .dea-pt-description {
		text-align: center;
	}

	/* Disable bg-shine RTL override on mobile when animations off */
	.dea-pt-rtl .dea-pt-no-anim-mobile.dea-pt-hover--bg-shine:hover::after,
	[dir="rtl"] .dea-pt-no-anim-mobile.dea-pt-hover--bg-shine:hover::after {
		right: -100%;
	}
}
