/**
 * Clean Divi Page/Post - Frontend Compatibility Stylesheet
 *
 * Lightweight, zero-dependency styling for converted Divi elements
 * when switching to a custom / non-Divi theme.
 *
 * @package CleanDiviPagePost
 */

/* ------------------------------------------------------------------ *
 * Basic Layout & Imagery
 * ------------------------------------------------------------------ */
.cdpp-section,
.cdpp-row,
.cdpp-column {
	box-sizing: border-box;
}

.cdpp-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 1.5em 0;
}

.cdpp-col {
	flex: 1 1 300px;
	min-width: 260px;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.cdpp-button,
a.cdpp-button,
p > a.cdpp-btn {
	display: inline-block;
	padding: 10px 22px;
	background-color: #0073aa;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.4;
	transition: background-color 0.2s ease, transform 0.1s ease;
	border: none;
	cursor: pointer;
}

.cdpp-button:hover,
a.cdpp-button:hover,
p > a.cdpp-btn:hover {
	background-color: #005177;
	color: #ffffff !important;
}

/* ------------------------------------------------------------------ *
 * Accordions & Toggles (<details> / <summary>)
 * ------------------------------------------------------------------ */
details.cdpp-toggle,
details {
	margin: 1em 0;
	padding: 12px 16px;
	background: #fdfdfd;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

details.cdpp-toggle[open],
details[open] {
	background: #ffffff;
	border-color: #ccd0d4;
}

details summary {
	font-weight: 600;
	font-size: 1.05em;
	cursor: pointer;
	outline: none;
	padding: 4px 0;
	user-select: none;
}

details[open] summary {
	margin-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 8px;
}

/* ------------------------------------------------------------------ *
 * Testimonials & Quotes
 * ------------------------------------------------------------------ */
blockquote.cdpp-testimonial,
.cdpp-testimonial {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 4px solid #0073aa;
	background-color: #f7f9fa;
	font-style: italic;
	border-radius: 0 4px 4px 0;
}

blockquote.cdpp-testimonial cite,
.cdpp-testimonial cite {
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
	font-style: normal;
	font-weight: 600;
	color: #555d66;
}

/* ------------------------------------------------------------------ *
 * Pricing Tables
 * ------------------------------------------------------------------ */
.cdpp-pricing-table,
table.cdpp-pricing {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
}

.cdpp-pricing-table th,
table.cdpp-pricing th {
	background-color: #f0f0f1;
	padding: 14px 16px;
	font-weight: 700;
	text-align: left;
	border-bottom: 2px solid #c3c4c7;
}

.cdpp-pricing-table td,
table.cdpp-pricing td {
	padding: 12px 16px;
	border-bottom: 1px solid #e2e4e7;
}

.cdpp-pricing-table tr:last-child td,
table.cdpp-pricing tr:last-child td {
	border-bottom: none;
}

.cdpp-pricing-price {
	font-size: 1.8em;
	font-weight: 700;
	color: #1d2327;
	margin: 6px 0;
}
