/**
 * MyCreaTools - Product Paragraph Styles
 * Clean & Modern Rich Text with Seamless Truncation & Fade Mask
 */

.mct-pp-container {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.mct-pp-container * {
	box-sizing: border-box;
}

/* Content Area */
.mct-pp-content-wrapper {
	position: relative;
	width: 100%;
}

.mct-pp-content {
	font-size: 16px;
	line-height: 1.7;
	color: #334155;
	transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

.mct-pp-content p {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.mct-pp-content p:last-child {
	margin-bottom: 0;
}

.mct-pp-content h1,
.mct-pp-content h2,
.mct-pp-content h3,
.mct-pp-content h4,
.mct-pp-content h5,
.mct-pp-content h6 {
	color: #0f172a;
	margin-top: 1.2em;
	margin-bottom: 0.6em;
	font-weight: 700;
	line-height: 1.3;
}

.mct-pp-content ul,
.mct-pp-content ol {
	margin-top: 0;
	margin-bottom: 1.1em;
	padding-left: 1.5em;
}

.mct-pp-content li {
	margin-bottom: 0.4em;
}

.mct-pp-content a {
	color: #dc2626;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.mct-pp-content a:hover {
	color: #b91c1c;
}

.mct-pp-content strong,
.mct-pp-content b {
	font-weight: 700;
	color: #0f172a;
}

/* Drop Cap First Letter Styling */
.mct-pp-content.has-drop-cap p:first-of-type::first-letter {
	font-size: 3.2em;
	float: left;
	line-height: 0.8;
	padding-top: 4px;
	padding-right: 12px;
	padding-bottom: 4px;
	font-weight: 800;
	color: #dc2626;
}

/* Collapsible / Truncated State */
.mct-pp-content.is-collapsible {
	overflow: hidden;
	max-height: var(--mct-pp-max-height, 140px);
}

.mct-pp-content.is-expanded {
	max-height: none !important;
}

/* Gradient Fade Overlay - Seamless Background Blend */
.mct-pp-fade-mask {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100px;
	background: linear-gradient(to bottom, rgba(236, 236, 236, 0) 0%, var(--mct-pp-bg-color, #ececec) 100%);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 2;
}

.mct-pp-content-wrapper.is-truncated .mct-pp-fade-mask {
	opacity: 1;
	visibility: visible;
}

.mct-pp-content-wrapper.is-expanded .mct-pp-fade-mask {
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Expand / Collapse Button Wrapper & Button */
.mct-pp-toggle-wrapper {
	margin-top: 20px;
	display: none;
	position: relative;
	z-index: 3;
}

.mct-pp-content-wrapper.has-toggle .mct-pp-toggle-wrapper {
	display: flex;
}

.mct-pp-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #dc2626;
	cursor: pointer;
	outline: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1;
	border-radius: 9999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mct-pp-toggle-btn:hover {
	color: #b91c1c;
	background-color: #f8fafc;
	border-color: rgba(0, 0, 0, 0.12);
	transform: translateY(-1.5px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.mct-pp-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mct-pp-toggle-icon svg,
.mct-pp-toggle-icon i {
	width: 11px;
	height: 11px;
	font-size: 11px;
	fill: currentColor;
}

/* Arrow micro-interaction on hover */
.mct-pp-toggle-btn:hover .mct-pp-toggle-icon {
	transform: translateY(2px);
}

.mct-pp-content-wrapper.is-expanded .mct-pp-toggle-btn:hover .mct-pp-toggle-icon {
	transform: translateY(-2px) rotate(180deg);
}

.mct-pp-content-wrapper.is-expanded .mct-pp-toggle-icon {
	transform: rotate(180deg);
}
