/* CCMerch Mockups – editor */
/* Knappen – samme form og skrift som "Læg i kurv", men som omrids i temaets farve. */
.ccmmu-button,
#LumiseDesign #lumise-navigations button.ccmmu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 38px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ccmmu-accent, #05707a);
	border-radius: 999px;
	background: #fff;
	color: var(--ccmmu-accent, #05707a);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .25px;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, color .2s;
}
.ccmmu-button:hover,
#LumiseDesign #lumise-navigations button.ccmmu-button:hover { background: var(--ccmmu-accent, #05707a); color: #fff; }
.ccmmu-button:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.ccmmu-button[hidden] { display: none !important; }

/* I menubaren, lige før "Læg i kurv". */
#LumiseDesign #lumise-navigations ul[data-block] > li#ccmmu-nav-li {
	display: flex !important;
	align-items: center;
	float: left;
	height: var(--lmono-header-height, 60px);
	margin: 0 4px 0 8px !important;
	padding: 0 !important;
	background: transparent;
	cursor: default;
}
#LumiseDesign #lumise-navigations ul[data-block] > li#ccmmu-nav-li[hidden],
#ccmmu-nav-row[hidden] { display: none !important; }

/* Egen linje under menubaren (mobil og når der ikke er plads). */
#ccmmu-nav-row {
	position: absolute;
	left: 0;
	right: 0;
	top: 60px;
	height: 52px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	box-sizing: border-box;
	background: #fff;
	border-top: 1px solid var(--lmono-color-border, #dedede);
}
#ccmmu-nav-row .ccmmu-button { width: 100%; }

/* Menubaren bliver 52 px højere; temaet rykker selv resten af editoren ned. Menupunkterne beholder 60 px. */
body.lumise-theme-mono-editor.ccmmu-bar-mode #LumiseDesign { --lmono-header-height: 112px; }
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations a[data-view="logo"],
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations ul[data-block],
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations ul[data-block] > li[data-tool],
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations ul[data-block="right"] > li,
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations ul[data-block][data-resp="file"].active > li {
	height: 60px !important;
}
body.ccmmu-bar-mode #LumiseDesign #lumise-navigations ul[data-block="right"] .lumise-price { line-height: 60px !important; }

/* Reserve for andre editor-temaer: svævende knap nederst til venstre. */
.ccmmu-float .ccmmu-button {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.ccmmu-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
}
.ccmmu-overlay[hidden] { display: none; }

.ccmmu-box {
	width: min(960px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px 22px 18px;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-family: inherit;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.ccmmu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ccmmu-title { margin: 0; font-size: 20px; font-weight: 600; }
.ccmmu-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #555; padding: 0 4px; }
.ccmmu-close:hover { color: #000; }

.ccmmu-status { display: flex; align-items: center; gap: 10px; padding: 28px 0; font-size: 15px; color: #333; }
.ccmmu-status[hidden] { display: none; }
.ccmmu-spinner {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 2px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: ccmmu-spin .8s linear infinite;
}
.ccmmu-status.is-error { color: #b42318; }
.ccmmu-status.is-error .ccmmu-spinner { display: none; }
@keyframes ccmmu-spin { to { transform: rotate(360deg); } }

.ccmmu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ccmmu-item { margin: 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fafafa; }
.ccmmu-img { display: block; aspect-ratio: 1 / 1; background: #f3f3f3; }
.ccmmu-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ccmmu-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13px; background: #fff; }
.ccmmu-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.ccmmu-dl { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; background: #111; color: #fff !important; text-decoration: none !important; font-weight: 600; }
.ccmmu-dl:hover { background: #333; }
.ccmmu-note { margin: 14px 0 0; font-size: 12px; color: #777; }
.ccmmu-note[hidden] { display: none; }

@media (max-width: 600px) {
	.ccmmu-float .ccmmu-button { left: 12px; bottom: 12px; }
	.ccmmu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ccmmu-box { padding: 16px; }
}
