/* =========================================================
   Keeper Memorial for Elementor — frontend styles (v1.1)
   All selectors scoped under .kme-wrap.
   ========================================================= */

.kme-wrap {
	--kme-accent: #9fb0a1;
	--kme-accent-hover: #8a9c8c;
	--kme-card-bg: #f6e7e1;
	--kme-name: #333333;
	--kme-date: #6f6f6f;
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
}
.kme-wrap *,
.kme-wrap *::before,
.kme-wrap *::after {
	box-sizing: inherit;
}

.kme-heading {
	text-align: center;
	margin: 0 0 28px;
	font-size: 30px;
	font-weight: 600;
	color: #2d2d2d;
}

/* ---------- SEARCH BAR ---------- */
.kme-search {
	margin-bottom: 30px;
}
.kme-search-title {
	text-align: center;
	margin-bottom: 12px;
	font-size: 16px;
	color: #333333;
}
.kme-search-row {
	display: flex;
	gap: 14px;
	align-items: stretch;
}
.kme-wrap .kme-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: #ffffff;
	font-size: 16px;
	color: #333333;
}
.kme-search-btn {
	flex: 0 0 auto;
	padding: 0 34px;
	border-radius: 24px;
}

.kme-more-wrap {
	margin-top: 14px;
}
.kme-more-wrap summary {
	list-style: none;
}
.kme-more-wrap summary::-webkit-details-marker {
	display: none;
}
.kme-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #333333;
	font-size: 15px;
	user-select: none;
}
.kme-less-label {
	display: none;
}
.kme-more-wrap[open] .kme-more-label {
	display: none;
}
.kme-more-wrap[open] .kme-less-label {
	display: inline;
}
.kme-chevron {
	font-size: 11px;
	line-height: 1;
	transition: transform 0.2s ease;
}
.kme-more-wrap[open] .kme-chevron {
	transform: rotate(180deg);
}

.kme-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 14px;
	max-width: 760px;
}
.kme-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 300px;
}
.kme-filter > label {
	font-size: 15px;
	color: #333333;
	white-space: nowrap;
}
.kme-wrap .kme-filter select {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	background: #ffffff;
	font-size: 15px;
	color: #333333;
}

/* ---------- 2-COLUMN LIST + SIDEBAR ---------- */
.kme-list-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}
.kme-list-layout .kme-main {
	flex: 1 1 auto;
	min-width: 0;
}
.kme-list-layout .kme-sidebar {
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: var(--kme-sidebar-w, 300px);
	max-width: var(--kme-sidebar-w, 300px);
}
.kme-sidebar {
	text-align: center;
}
.kme-sidebar-heading {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	color: #2d2d2d;
}
.kme-sidebar-desc {
	margin: 0 0 18px;
	color: #555555;
	font-size: 15px;
	line-height: 1.6;
}
.kme-sidebar-btn {
	width: 100%;
	max-width: 100%;
	text-align: center;
	padding: 13px 20px;
	border-radius: 24px;
}

/* ---------- GRID ---------- */
.kme-layout-grid .kme-items {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px;
	align-items: start;
}
.kme-layout-grid .kme-info {
	text-align: center;
}
.kme-layout-grid .kme-photo {
	margin: 0 auto;
}
.kme-layout-grid .kme-actions {
	justify-content: center;
}

/* ---------- LIST ---------- */
.kme-layout-list .kme-items {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.kme-layout-list .kme-card {
	display: flex;
	align-items: center;
	gap: 20px;
	background-color: var(--kme-card-bg);
	padding: 18px 22px;
	border-radius: 14px;
}
.kme-layout-list .kme-info {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- Shared card pieces ---------- */
.kme-photo {
	width: 120px;
	height: 120px;
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}
.kme-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.kme-name {
	display: inline-block;
	margin: 12px 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--kme-name);
	text-decoration: none;
}
.kme-layout-list .kme-name {
	margin-top: 0;
	font-size: 18px;
}
.kme-name:hover {
	text-decoration: underline;
}

.kme-dates {
	color: var(--kme-date);
	font-size: 14px;
	margin-bottom: 10px;
}
.kme-layout-grid .kme-dates {
	margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.kme-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.kme-btn {
	display: inline-block;
	cursor: pointer;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	background-color: var(--kme-accent);
	color: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kme-btn:hover {
	background-color: var(--kme-accent-hover);
	color: #ffffff;
}
.kme-btn-view {
	background-color: transparent;
	color: var(--kme-accent);
	border-color: var(--kme-accent);
}
.kme-btn-view:hover {
	background-color: var(--kme-accent);
	color: #ffffff;
}
.kme-flower-icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 7px;
	margin-top: -2px;
}

.kme-viewall-wrap {
	text-align: center;
	margin-top: 28px;
}
.kme-viewall {
	padding: 11px 30px;
	border-radius: 24px;
}

/* ---------- Pagination ---------- */
.kme-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 30px;
}
.kme-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 6px;
	text-decoration: none;
	color: #555555;
	background-color: rgba(0, 0, 0, 0.04);
	font-size: 14px;
}
.kme-page:hover {
	background-color: rgba(0, 0, 0, 0.08);
}
.kme-page.kme-current {
	background-color: var(--kme-accent);
	color: #ffffff;
}
.kme-page.kme-dots {
	background-color: transparent;
}

/* ---------- Messages ---------- */
.kme-error {
	text-align: center;
	color: #b3261e;
	padding: 24px;
	font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.kme-layout-grid .kme-items {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 1024px) {
	.kme-list-layout {
		flex-direction: column;
		align-items: stretch;
	}
	.kme-list-layout .kme-main {
		order: 0;
		width: 100%;
	}
	.kme-list-layout .kme-sidebar {
		flex-basis: auto;
		max-width: none;
		width: 100%;
		order: -1;
	}
}
@media (max-width: 600px) {
	.kme-layout-grid .kme-items {
		grid-template-columns: repeat(2, 1fr);
	}
	.kme-layout-list .kme-card {
		flex-direction: column;
		text-align: center;
	}
	.kme-layout-list .kme-info {
		text-align: center;
	}
	.kme-layout-list .kme-actions {
		justify-content: center;
	}
	.kme-search-row {
		flex-direction: column;
	}
	.kme-search-btn {
		padding: 13px 24px;
	}
	.kme-filters {
		flex-direction: column;
		gap: 14px;
	}
	.kme-filter {
		flex: 0 0 auto;
		width: 100%;
	}
}
