/**
 * CartNexa Short Description Widget CSS
 * Isolated per-widget styling with luxury baby aesthetic
 */

.cn-short-description-wrapper {
	width: 100%;
	font-family: var(--cn-font-family, sans-serif);
	box-sizing: border-box;
	position: relative;
}

.cn-short-desc-content {
	color: var(--cn-body, #667085);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cn-short-desc-content p {
	margin: 0 0 12px 0;
}

.cn-short-desc-content p:last-child {
	margin-bottom: 0;
}

.cn-short-desc-content a {
	color: var(--cn-primary, #25C4C8);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.cn-short-desc-content a:hover {
	color: var(--cn-primary-hover, #19B0B4);
}

/* Expander Collapsed State */
.cn-has-expander .cn-short-desc-content {
	max-height: 90px;
	overflow: hidden;
}

.cn-has-expander.cn-expanded .cn-short-desc-content {
	max-height: 2000px;
}

/* Gradient Fade Mask */
.cn-has-fade .cn-short-desc-fade {
	position: absolute;
	bottom: 30px;
	left: 0;
	width: 100%;
	height: 50px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.cn-expanded .cn-short-desc-fade {
	opacity: 0;
}

/* Read More Button */
.cn-read-more-btn {
	background: transparent;
	border: none;
	color: var(--cn-primary, #25C4C8);
	font-family: var(--cn-font-family, sans-serif);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 8px 0 0 0;
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	outline: none;
	transition: color 0.2s ease;
}

.cn-read-more-btn:hover {
	color: var(--cn-primary-hover, #19B0B4);
}

.cn-read-more-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.cn-expanded .cn-read-more-icon {
	transform: rotate(180deg);
}
