/* Site-wide search: quick dropdown + full page */

.ckc-header-search,
.ckc-mobile-search {
	position: relative;
	flex-shrink: 0;
}

/* Desktop header: compact inline icon to the left of handle / login line */
.ckc-header-search--inline {
	display: inline-block;
	vertical-align: middle;
	margin-right: 16px;
}
.ckc-header-search--inline .ckc-search-btn {
	min-width: 0;
	min-height: 0;
	padding: 2px 4px 2px 2px;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ckc-header-search--inline .ckc-search-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.ckc-header-search--inline .ckc-search-btn-label {
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
}
.ckc-mobile-search .ckc-search-btn-label {
	display: none;
}

.ckc-search-btn {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: inherit;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	min-width: 44px;
	min-height: 44px;
}
.ckc-search-btn:hover {
	opacity: 0.75;
}
.ckc-search-btn:focus-visible {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
}

.ckc-m2-topbar .ckc-search-btn {
	color: #fff;
	padding: 6px;
}

.ckc-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: 600px;
	max-width: calc(100vw - 32px);
	max-height: 500px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 2000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ckc-search-dropdown.hidden {
	display: none;
}

.ckc-m2-topbar .ckc-mobile-search .ckc-search-dropdown {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	height: 100vh;
	max-height: 100vh;
	border-radius: 0;
	border: none;
	padding-top: env(safe-area-inset-top, 0);
}

@media (max-width: 768px) {
	.ckc-header-search .ckc-search-dropdown {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
		border: none;
	}
}

.ckc-search-input-wrapper {
	display: flex;
	align-items: center;
	padding: 16px;
	border-bottom: 1px solid #eee;
	gap: 8px;
	flex-shrink: 0;
}
.ckc-search-icon-input {
	flex-shrink: 0;
	color: #999;
}
.ckc-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 16px;
	padding: 4px;
	font-family: inherit;
}
.ckc-search-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}
.ckc-search-close:hover {
	background-color: #f0f0f0;
}

.ckc-search-tabs {
	display: flex;
	gap: 4px;
	padding: 8px 16px;
	border-bottom: 1px solid #eee;
	overflow-x: auto;
	flex-shrink: 0;
}
.ckc-search-tab {
	padding: 6px 12px;
	border: none;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	color: #666;
	border-bottom: 2px solid transparent;
	font-size: 14px;
	font-family: inherit;
}
.ckc-search-tab.active {
	color: #0066cc;
	border-bottom-color: #0066cc;
	font-weight: 500;
}
.ckc-search-tab:hover:not(.active) {
	color: #333;
}

.ckc-search-results-wrapper {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}
.ckc-search-results {
	padding: 8px 16px;
	display: none;
}
.ckc-search-results.active {
	display: block;
}
.ckc-search-result {
	padding: 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
	text-decoration: none;
	color: inherit;
	display: block;
	margin-bottom: 4px;
}
.ckc-search-result:hover {
	background-color: #f5f5f5;
}
.ckc-search-result-title {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}
.ckc-search-result-subtitle {
	font-size: 13px;
	color: #444;
	margin-bottom: 4px;
	line-height: 1.35;
}
.ckc-search-result-meta {
	font-size: 13px;
	color: #666;
}
.ckc-search-result-group {
	margin-bottom: 16px;
}
.ckc-search-result-group-title,
h3.ckc-search-result-group-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #999;
	margin: 0 0 8px;
	letter-spacing: 0.5px;
}

.ckc-search-empty {
	padding: 32px 16px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.ckc-search-footer {
	padding: 12px 16px;
	border-top: 1px solid #eee;
	text-align: center;
	flex-shrink: 0;
}
.ckc-search-see-all {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}
.ckc-search-see-all:hover {
	text-decoration: underline;
}

/* Full search page */
.ckc-search-page {
	max-width: 900px;
}
.ckc-search-page-header {
	margin-bottom: 24px;
}
.ckc-search-form {
	margin-bottom: 12px;
}
.ckc-search-input-large-wrapper {
	display: flex;
	gap: 8px;
	max-width: 700px;
}
.ckc-search-input-large {
	flex: 1;
	padding: 10px 14px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
}
.ckc-search-input-large:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.ckc-search-submit {
	padding: 10px 20px;
	background: #314177;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.ckc-search-submit:hover {
	background: #253260;
}
.ckc-search-query-display {
	font-size: 14px;
	color: #666;
}
.ckc-search-tabs-full {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 2px solid #eee;
	margin-bottom: 20px;
}
.ckc-search-tab-full {
	padding: 10px 16px;
	text-decoration: none;
	color: #666;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	font-weight: 500;
}
.ckc-search-tab-full.active {
	color: #0066cc;
	border-bottom-color: #0066cc;
}
.ckc-search-tab-full:hover:not(.active) {
	color: #333;
}
.ckc-search-results-full {
	min-height: 200px;
}
.ckc-search-empty-full {
	padding: 48px 24px;
	text-align: center;
	color: #999;
}
.ckc-search-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
	align-items: center;
	flex-wrap: wrap;
}
.ckc-search-page-link {
	padding: 6px 12px;
	text-decoration: none;
	color: #0066cc;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.ckc-search-page-link:hover {
	background: #f5f5f5;
}
.ckc-search-page-current {
	padding: 6px 12px;
	background: #314177;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
