/* Collectico Notify — frontend styles */

.cn-modal-overlay,
.cn-modal-overlay *,
.cn-header-actions,
.cn-header-actions * {
	box-sizing: border-box;
}

.cn-header-actions {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.cn-bell-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 480px) {
	.cn-bell-btn {
		width: 34px;
		height: 34px;
	}

	/* The theme's header row uses flex-wrap: wrap with a fixed 200px-wide logo
	 * and a fairly large gap between the three columns (menu / logo / actions).
	 * On narrow phones that combination no longer fits on one line once the
	 * bell is added next to the cart. Shrinking the logo and tightening the
	 * gap reclaims enough space to keep everything on a single row. The
	 * logo has an inline width="200" HTML attribute, so !important is needed
	 * to win the specificity fight. */
	header .custom-logo {
		width: 110px !important;
		height: auto !important;
	}

	header .is-layout-flex {
		gap: 10px !important;
	}
}

.cn-bell-btn:hover {
	background-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
}

.cn-bell-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cn-bell-icon {
	display: inline-flex;
	color: currentColor;
}

/* ---------------------------------------------------------------------
 * Product-card bell (shown top-left on every product thumbnail)
 * ------------------------------------------------------------------- */

.cn-product-image-wrap {
	position: relative;
}

.cn-product-bell {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 50%;
	color: #4b1d8f;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(30, 10, 60, 0.25);
	transition: transform 0.12s ease, background-color 0.12s ease;
}

.cn-product-bell:hover {
	background: #ffffff;
	transform: scale(1.08);
}

.cn-product-bell .cn-bell-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Klokken på selve produktsidens (større) billede skal have lidt mere luft
 * og fylde en anelse mere, så den ikke drukner i et stort billede. */
.woocommerce-product-gallery.cn-product-image-wrap {
	position: relative;
}

.woocommerce-product-gallery.cn-product-image-wrap > .cn-product-bell {
	top: 14px;
	left: 14px;
	width: 38px;
	height: 38px;
	z-index: 10;
}

.woocommerce-product-gallery.cn-product-image-wrap > .cn-product-bell .cn-bell-icon svg {
	width: 20px;
	height: 20px;
}

/* ---------------------------------------------------------------------
 * Product notification prompt (checkbox list per hold/spiller)
 * ------------------------------------------------------------------- */

.cn-product-term-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.cn-product-term-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #f8f6fd;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	color: #201035;
}

.cn-product-term-checkbox {
	width: 18px;
	height: 18px;
	accent-color: #7b2ff7;
	cursor: pointer;
	flex-shrink: 0;
}

.cn-product-term-label {
	font-weight: 600;
}

/* ---------------------------------------------------------------------
 * "Følg denne kategori"-knap, placeret til venstre for sorterings-
 * dropdown'en på kategori-arkivsider (før selve produkterne).
 * ------------------------------------------------------------------- */

.cn-follow-category-wrap {
	float: left;
	margin: 0 16px 12px 0;
	max-width: 100%;
}

.cn-follow-category-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px;
	background: #f2eefb;
	color: #4b1d8f;
	border: none;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, transform 0.12s ease;
}

.cn-follow-category-btn:hover {
	background: #e4daf7;
	transform: translateY(-1px);
}

.cn-follow-category-btn.cn-following {
	background: linear-gradient(135deg, #7b2ff7, #4b1d8f);
	color: #ffffff;
}

.cn-follow-category-btn .cn-bell-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* ---------------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------------- */

.cn-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 10, 40, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.cn-modal-overlay.cn-open {
	opacity: 1;
	visibility: visible;
}

body.cn-modal-lock {
	overflow: hidden;
}

.cn-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 18px;
	padding: 32px 28px 28px;
	box-shadow: 0 20px 60px rgba(30, 10, 60, 0.35);
	transform: translateY(8px) scale(0.98);
	transition: transform 0.2s ease;
	font-family: inherit;
}

.cn-modal-overlay.cn-open .cn-modal {
	transform: translateY(0) scale(1);
}

.cn-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	background: #f2eefb;
	color: #4b1d8f;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cn-modal-close:hover {
	background: #e4daf7;
}

.cn-modal-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #201035;
}

.cn-modal-text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #453a5c;
}

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------- */

.cn-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 22px;
	border: none;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.cn-btn-primary {
	background: linear-gradient(135deg, #7b2ff7, #4b1d8f);
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(75, 29, 143, 0.35);
}

.cn-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(75, 29, 143, 0.45);
}

.cn-btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.cn-btn-secondary {
	background: #f2eefb;
	color: #4b1d8f;
	margin-top: 10px;
}

.cn-btn-secondary:hover {
	background: #e4daf7;
}

/* ---------------------------------------------------------------------
 * Attribute sections / search / chips
 * ------------------------------------------------------------------- */

.cn-sections {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-bottom: 20px;
}

.cn-attr-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cn-attr-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #7b2ff7;
}

.cn-search-wrap {
	position: relative;
}

.cn-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font-size: 14px;
	border: 1.5px solid #e3dbf3;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.15s ease;
}

.cn-search-input:focus {
	border-color: #7b2ff7;
}

.cn-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 5;
	max-height: 220px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #e3dbf3;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(30, 10, 60, 0.18);
	display: none;
}

.cn-dropdown.cn-open {
	display: block;
}

.cn-dropdown-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	border: none;
	background: transparent;
	font-size: 14px;
	color: #201035;
	cursor: pointer;
}

.cn-dropdown-item:hover {
	background: #f2eefb;
}

.cn-dropdown-item.cn-selected {
	color: #7b2ff7;
	font-weight: 600;
}

.cn-dropdown-empty {
	padding: 12px 14px;
	font-size: 13px;
	color: #8b7fa3;
}

.cn-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 2px;
}

.cn-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 14px;
	background: #f2eefb;
	color: #4b1d8f;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.cn-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: rgba(75, 29, 143, 0.12);
	color: #4b1d8f;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.cn-chip-remove:hover {
	background: rgba(75, 29, 143, 0.22);
}

/* ---------------------------------------------------------------------
 * Status message
 * ------------------------------------------------------------------- */

.cn-status-msg {
	min-height: 18px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
}

.cn-status-msg.cn-status-ok {
	color: #1f9d55;
}

.cn-status-msg.cn-status-error {
	color: #d64545;
}

/* ---------------------------------------------------------------------
 * My Account subscription list
 * ------------------------------------------------------------------- */

.cn-account-subscriptions {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 640px;
}

.cn-account-group h3 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #7b2ff7;
	margin-bottom: 10px;
}

.cn-account-empty {
	color: #6b6178;
	font-size: 14px;
}

.cn-account-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 480px) {
	.cn-modal {
		padding: 26px 18px 20px;
		border-radius: 14px;
	}

	/* På smalle skærme er der ikke plads til knap + dropdown side om side,
	 * så knappen lægges i stedet over dropdown'en i sit eget fulde-bredde-felt. */
	.cn-follow-category-wrap {
		float: none;
		display: block;
		margin: 0 0 12px;
	}

	.cn-follow-category-btn {
		width: 100%;
	}
}
