/* Front styles */
:root {
	--wpcm-purple: #a200ff;
	--wpcm-dark: #222;
	--wpcm-text: #444;
	--wpcm-bg: #f7f7fb;
	--wpcm-card: #fff;
	--wpcm-border: #e5e7eb;
}

.wpcm-hero {
	background: linear-gradient(180deg, #f7ecff 0%, #ffffff 80%);
	padding: 48px 24px 32px;
	margin-bottom: 24px;
	border-radius: 16px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wpcm-hero__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--wpcm-dark);
}
.wpcm-logo {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: var(--wpcm-purple);
	color: #fff;
	border-radius: 10px;
	font-weight: 700;
}
.wpcm-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: var(--wpcm-purple);
	margin: 0;
}
.wpcm-hero h1 {
	margin: 0;
	font-size: 36px;
	font-weight: 800;
	color: var(--wpcm-dark);
}
.wpcm-hero__desc {
	color: var(--wpcm-text);
	margin: 4px 0 16px;
}
.wpcm-search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #232323;
	color: #fff;
	padding: 10px 12px;
	border-radius: 12px;
	max-width: 520px;
}
.wpcm-search__input {
	flex: 1;
	background: transparent;
	border: none;
	color: #fff;
	outline: none;
}

.wpcm-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.wpcm-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.wpcm-tab {
	border: 1px solid var(--wpcm-border);
	background: #fff;
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	color: var(--wpcm-text);
}
.wpcm-tab.is-active {
	background: var(--wpcm-purple);
	color: #fff;
	border-color: var(--wpcm-purple);
}

.wpcm-section-title {
	font-size: 20px;
	margin: 8px 0 12px;
	color: var(--wpcm-dark);
}

.wpcm-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.wpcm-template-item {
	background: var(--wpcm-card);
	border: 1px solid var(--wpcm-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
	display: flex;
	flex-direction: column;
}
.wpcm-template-thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}
.wpcm-template-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wpcm-template-item h3 {
	margin: 12px 12px 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--wpcm-dark);
}
.wpcm-template-type {
	margin: 0 12px 12px;
	color: #6b7280;
	font-size: 13px;
}
.wpcm-template-actions {
	display: flex;
	gap: 8px;
	margin: 0 12px 12px;
}
.wpcm-template-actions .button {
	flex: 1;
	text-align: center;
}

.wpcm-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 11px;
	text-transform: capitalize;
	color: #374151;
}
.wpcm-badge--tier {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #fff;
	border: 1px solid var(--wpcm-border);
}
.wpcm-badge--status {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #d1e7ff;
}
.wpcm-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.wpcm-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.48);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.wpcm-modal-content {
	background: #fff;
	width: min(1080px, 100%);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}
.wpcm-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: none;
	background: #f3f4f6;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
}
.wpcm-modal-body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 0;
	min-height: 520px;
}
.wpcm-modal-preview {
	background: #f8fafc;
	padding: 24px;
}
.wpcm-modal-preview iframe {
	border-radius: 14px;
	background: #000;
}
.wpcm-preview-actions {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}
.wpcm-modal-info {
	padding: 24px;
	border-left: 1px solid var(--wpcm-border);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wpcm-modal-title {
	margin: 0;
	font-size: 20px;
}
.wpcm-modal-desc {
	margin: 0;
	color: #4b5563;
}
.wpcm-modal-cta .button-primary {
	width: 100%;
	display: inline-block;
	text-align: center;
	margin-bottom: 6px;
	background: var(--wpcm-purple);
	border-color: var(--wpcm-purple);
}
.wpcm-modal-note {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
}

@media (max-width: 960px) {
	.wpcm-modal-body {
		grid-template-columns: 1fr;
	}
	.wpcm-modal-info {
		border-left: none;
		border-top: 1px solid var(--wpcm-border);
	}
}

