/**
 * Pearls of Wisdom Lite — Widget Styles
 *
 * CSS-first sticky note treatments tuned for tintable Post-it style notes.
 *
 * @package PearlsOfWisdomLite
 */

.pow-note {
	--pow-paper-color: #fef08a;
	--pow-shadow-color: rgba(0, 0, 0, 0.22);
	--pow-note-tilt: 0deg;
	position: relative;
	z-index: 0;
	isolation: isolate;
	display: block;
	flex: 0 0 auto;
	width: var(--pow-note-size, 340px);
	max-width: none;
	min-height: 160px;
	padding: 24px 24px 20px;
	background-color: var(--pow-paper-color);
	border-radius: 2px;
	box-sizing: border-box;
	left: auto;
	margin: 0 auto;
	font-family: 'Patrick Hand', 'Segoe UI', 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	transform-origin: center center;
	transform: rotate(var(--pow-note-tilt, 0deg));
	box-shadow: 4px 4px 8px var(--pow-shadow-color);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	will-change: transform;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: visible;
	background-image:
		repeating-linear-gradient(
			-45deg,
			transparent 0px,
			transparent 3px,
			rgba(0, 0, 0, 0.012) 3px,
			rgba(0, 0, 0, 0.012) 4px
		),
		repeating-linear-gradient(
			45deg,
			transparent 0px,
			transparent 5px,
			rgba(0, 0, 0, 0.008) 5px,
			rgba(0, 0, 0, 0.008) 6px
		);
}

.pow-note:hover {
	transform: rotate(var(--pow-note-tilt, 0deg));
	box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.30);
}

.elementor-widget-pearls-of-wisdom,
.elementor-widget-pearls-of-wisdom .elementor-widget-container {
	overflow: visible;
}

.elementor-widget-pearls-of-wisdom .elementor-widget-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.pow-note::before,
.pow-note::after {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 1;
}

.pow-note__content {
	position: relative;
	z-index: 3;
}

.pow-note__title {
	margin: 0 0 10px;
	font-size: 1.05em;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	line-height: 1.3;
}

.pow-note__title--separator {
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.pow-note__body {
	font-size: 0.95em;
	color: #333;
}

.pow-note__body p {
	margin: 0;
}

.pow-note__citation {
	margin: 12px 0 0;
	font-size: 0.78em;
	text-align: right;
}

.pow-note__citation a {
	color: #0073aa;
	text-decoration: underline;
}

.pow-note__citation a:hover {
	text-decoration: none;
}

/* Bottom Curl ----------------------------------------------------------- */
.pow-note--bottom-curl,
.pow-note--ripple,
.pow-note--peel {
	box-shadow: 4px 8px 14px rgba(0, 0, 0, 0.14), 0 16px 22px rgba(0, 0, 0, 0.09);
}

.pow-note--bottom-curl::before,
.pow-note--ripple::before,
.pow-note--peel::before {
	left: 8%;
	width: 84%;
	height: 24px;
	bottom: -15px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.14) 38%, rgba(0, 0, 0, 0) 72%);
	filter: blur(4px);
	opacity: 0.9;
	z-index: 0;
}

.pow-note--bottom-curl::after,
.pow-note--ripple::after,
.pow-note--peel::after {
	left: 14%;
	width: 72%;
	height: 14px;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0));
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	opacity: 0.55;
	z-index: 2;
}

/* Soft Edge Lift -------------------------------------------------------- */
.pow-note--soft-edge-lift,
.pow-note--edge,
.pow-note--curl {
	border-radius: 3px 4px 3px 5px / 4px 3px 5px 4px;
	box-shadow: 4px 7px 13px rgba(0, 0, 0, 0.13), 0 14px 22px rgba(0, 0, 0, 0.08);
}

.pow-note--soft-edge-lift::before,
.pow-note--edge::before,
.pow-note--curl::before {
	inset: 0;
	background:
		linear-gradient(to right, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 18%) left top / 18px 100% no-repeat,
		linear-gradient(to left, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 18%) right top / 18px 100% no-repeat,
		linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 22%) top left / 100% 16px no-repeat;
	opacity: 0.95;
	z-index: 2;
}

.pow-note--soft-edge-lift::after,
.pow-note--edge::after,
.pow-note--curl::after {
	left: 6%;
	width: 88%;
	height: 18px;
	bottom: -12px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.10) 42%, rgba(0, 0, 0, 0) 74%);
	filter: blur(4px);
	opacity: 0.82;
	z-index: 0;
}

/* Folded Corner --------------------------------------------------------- */
.pow-note--folded-corner,
.pow-note--corner-curl {
	padding-bottom: 40px;
	box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.18), 0 10px 18px rgba(0, 0, 0, 0.10);
}

.pow-note--folded-corner::before,
.pow-note--corner-curl::before {
	right: -1px;
	bottom: -1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 38px 38px;
	border-color: transparent transparent rgba(255, 255, 255, 0.70) transparent;
	filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.16));
	z-index: 3;
}

.pow-note--folded-corner::after,
.pow-note--corner-curl::after {
	right: 0;
	bottom: 0;
	width: 32px;
	height: 28px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
	border-bottom-right-radius: 2px;
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
	z-index: 2;
}

/* Taped ---------------------------------------------------------------- */
.pow-note--taped {
	margin-top: 18px;
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.17), 0 10px 18px rgba(0, 0, 0, 0.10);
}

.pow-note--taped::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -14px;
	width: 56px;
	height: 18px;
	margin-left: -28px;
	background: linear-gradient(to bottom, rgba(255,255,255,.62), rgba(242,236,214,.42));
	border: 1px solid rgba(180,170,140,.22);
	box-shadow: 0 2px 3px rgba(0,0,0,.10);
	transform: rotate(2deg);
	z-index: 4;
}

.pow-note--taped::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 18px;
	background:
		linear-gradient(to bottom, rgba(255,255,255,.58), rgba(240,236,214,.38)) left 14px top / 40px 16px no-repeat,
		linear-gradient(to bottom, rgba(255,255,255,.58), rgba(240,236,214,.38)) right 14px top / 40px 16px no-repeat;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
	z-index: 3;
}

/* Pinned --------------------------------------------------------------- */
.pow-note--pinned {
	margin-top: 18px;
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.18), 0 12px 20px rgba(0, 0, 0, 0.12);
}

.pow-note--pinned::before {
	top: -14px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffffff 0 14%, #d74f4f 16%, #b82f2f 62%, #6d1717 100%);
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.30) inset, 0 3px 5px rgba(0, 0, 0, 0.22);
	z-index: 4;
}

.pow-note--pinned::after {
	top: 2px;
	left: 50%;
	width: 2px;
	height: 16px;
	margin-left: -1px;
	background: linear-gradient(to bottom, rgba(70, 70, 70, 0.95), rgba(170, 170, 170, 0.75));
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
	z-index: 3;
}

@media (max-width: 480px) {
	.elementor-widget-pearls-of-wisdom .elementor-widget-container {
		display: block;
	}

	.pow-note {
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
		transform: rotate(var(--pow-note-tilt-mobile, var(--pow-note-tilt, 0deg)));
	}
}

.pow-note--ratio-1-1,
.pow-note--ratio-3-4,
.pow-note--ratio-4-3 {
	min-height: auto !important;
}

.pow-note--ratio-1-1 {
	aspect-ratio: 1 / 1;
	width: max(var(--pow-note-size, 340px), var(--pow-note-square-size, 0px));
	max-width: none;
}

.pow-note--ratio-3-4 {
	aspect-ratio: 3 / 4;
}

.pow-note--ratio-4-3 {
	aspect-ratio: 4 / 3;
}
