/* Integrations library — production section 0783d8b (filters + loop grid). */

body .opx-integrations-library__toolbar {
	width: 100%;
}

body .opx-integrations-library__search {
	flex: 1 1 auto;
	min-width: 0;
}

body .opx-integrations-library__search .wp-block-search__inside-wrapper {
	border-radius: 50px;
	border: 1px solid var(--wp--preset--color--border-soft);
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}

body .opx-integrations-library__search .wp-block-search__input {
	border: none;
	background: transparent;
	padding: 0.75rem 1.25rem;
	min-height: 48px;
	font-size: var(--wp--preset--font-size--text);
}

body .opx-integrations-library__search .wp-block-search__button {
	display: none;
}

body .opx-integrations-library__layout {
	width: 100%;
}

body .opx-integrations-library__sidebar {
	flex: 0 0 20%;
	max-width: 20%;
	min-width: 0;
}

body .opx-integrations-library__main {
	flex: 1 1 78%;
	min-width: 0;
}

body .opx-integrations-library__filters-list {
	display: flex;
	flex-direction: column;
	gap: 10.5px;
	padding-top: 10.5px;
}

body .opx-integrations-library__filter-item {
	display: flex;
	align-items: center;
	min-height: 24px;
	gap: 15px;
	cursor: pointer;
	margin: 0;
}

body .opx-integrations-library__filter-label {
	font-size: 18px;
	font-weight: 300;
	line-height: 18px;
	color: var(--wp--preset--color--ink);
	margin-bottom: -4px;
}

body .opx-integrations-library__filter-input {
	-webkit-appearance: none;
	appearance: none;
	width: 21px;
	height: 21px;
	margin: 3px 0 0;
	flex-shrink: 0;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: var(--wp--preset--color--surface) center / 16px 16px no-repeat;
	cursor: pointer;
}

body .opx-integrations-library__filter-input:checked {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

body .opx-integrations-library__filter-input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

body .opx-integrations-library__query .wp-block-post-template {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .opx-integrations-library__pagination--top {
	margin-bottom: 25px;
}

body .opx-integrations-library__pagination .page-numbers {
	color: #303030;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--text);
	font-weight: 300;
	line-height: 29px;
}

body .opx-integrations-library__pagination .page-numbers.current {
	color: var(--wp--preset--color--accent);
	font-weight: 300;
}

body .opx-integrations-library__pagination--bottom .wp-block-query-pagination-next {
	color: #413735;
	background: none;
	border: none;
	font-size: var(--wp--preset--font-size--text);
	cursor: pointer;
	padding: 0;
}

body .opx-integrations-library__pagination--bottom .wp-block-query-pagination-next:hover {
	color: var(--wp--preset--color--accent);
}

body .opx-integrations-library__card {
	background: var(--wp--preset--color--surface);
	border-radius: 15px;
	box-shadow: 10px 10px 23px -6px rgba(62, 55, 178, 0.33);
	padding: 25px 30px 16px;
	height: 100%;
	box-sizing: border-box;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 25px;
}

body .opx-integrations-library__card-media {
	flex: 0 0 auto;
	width: 80px;
	max-width: 80px;
	min-height: 80px;
	margin-top: 6px;
	box-sizing: border-box;
	padding: 6px;
	border: 1px solid #d7d3c9;
	border-radius: 15px;
	background: #f9f9f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

body .opx-integrations-library__card-logo {
	margin: 0;
}

body .opx-integrations-library__card-logo img {
	width: 53px;
	height: auto;
	max-width: 53px;
	display: block;
}

body .opx-integrations-library__card-body {
	flex: 0 0 auto;
	width: 78%;
	min-width: 0;
	gap: 8px;
}

body .opx-integrations-library__card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	color: #413735;
}

body .opx-integrations-library__filter-toggle .wp-block-button__link {
	color: #fff !important;
	white-space: nowrap;
}

body .opx-integrations-library__card-text {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 29px;
	color: #413735;
}

body .opx-integrations-library__card-text p {
	margin: 0;
}

@media (min-width: 768px) {
	body .opx-integrations-library__toolbar .opx-integrations-library__search {
		flex: 1 1 100%;
	}

	body .opx-integrations-library__card-title {
		font-size: var(--wp--preset--font-size--card-title);
		line-height: 35px;
	}

	body .opx-integrations-library__card-text {
		line-height: var(--wp--custom--line-height--text-16-300-3);
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	body .opx-integrations-library__sidebar {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

@media (max-width: 767px) {
	body .opx-integrations-library__toolbar {
		gap: var(--wp--preset--spacing--gap-s);
	}

	body .opx-integrations-library__toolbar .opx-integrations-library__search {
		flex: 1 1 auto;
		min-width: 0;
		max-width: calc(67% - 4px);
	}

	body .opx-integrations-library__filter-toggle-wrap {
		flex: 0 0 auto;
		max-width: 33%;
	}

	body .opx-integrations-library__layout {
		flex-direction: column;
	}

	body .opx-integrations-library__sidebar {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 100000;
		flex: none;
		max-width: none;
		background: var(--wp--preset--color--surface);
		padding: var(--wp--preset--spacing--gap-l);
		overflow: auto;
	}

	body .opx-integrations-library__sidebar.is-mobile-open {
		display: block;
	}

	body .opx-integrations-library__main {
		flex: 1 1 100%;
		max-width: 100%;
	}

	body .opx-integrations-library__query .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	body .opx-integrations-library__card {
		gap: 10px;
	}

	body .opx-integrations-library__card-body {
		width: 100%;
	}

	body .opx-integrations-library__card-logo img {
		width: 48px;
		max-width: 48px;
	}

	body .opx-integrations-library__card-media {
		border-radius: 8px;
		padding: 15px;
	}
}

body .opx-integrations-library__filter-close {
	display: none;
}

body .opx-integrations-library__empty {
	grid-column: 1 / -1;
	list-style: none;
	font-size: var(--wp--preset--font-size--text);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 767px) {
	body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-close {
		display: block;
		width: 100%;
		margin-bottom: var(--wp--preset--spacing--gap-m);
		padding: 12px 20px;
		border: 0;
		border-radius: 50px;
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--surface);
		font: inherit;
		cursor: pointer;
	}
}

/* Production filter list (JetSmartFilters checkboxes): rows 45px apart, 21px box (1px #ccc, 3px radius) 15px from an
   18px/300 label; hover turns the label orange; checked fills the box orange with a 12px white tick. */
html body .opx-integrations-library__filters-list { gap: 21px; padding-top: 0; }
html body .opx-integrations-library__filter-item { align-items: center; gap: 15px; min-height: 24px; }
html body .opx-integrations-library__filter-input {
	width: 21px;
	height: 21px;
	margin: 3px 0 0;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: var(--wp--preset--color--surface) center / 12px 12px no-repeat;
}
html body .opx-integrations-library__filter-input:checked {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' d='M26.109 8.844c0 .391-.156.781-.438 1.062l-13.438 13.438c-.281.281-.672.438-1.062.438s-.781-.156-1.062-.438l-7.781-7.781c-.281-.281-.438-.672-.438-1.062s.156-.781.438-1.062l2.125-2.125c.281-.281.672-.438 1.062-.438s.781.156 1.062.438l4.594 4.609 10.25-10.266c.281-.281.672-.438 1.062-.438s.781.156 1.062.438l2.125 2.125c.281.281.438.672.438 1.062z'/%3E%3C/svg%3E");
}
html body .opx-integrations-library__filter-label {
	font-size: 18px;
	font-weight: 300;
	line-height: 18px;
	color: var(--wp--preset--color--ink);
	margin-bottom: -4px;
	transition: color 0.3s;
}
html body .opx-integrations-library__filter-item:hover .opx-integrations-library__filter-label,
html body .opx-integrations-library__filter-input:checked + .opx-integrations-library__filter-label { color: var(--wp--preset--color--accent); }

/* Production search: 1px hairline pill, 8px 16px padding, body type (46px desktop, 44px tablet, 42px mobile). */
html body .opx-integrations-library__search .wp-block-search__inside-wrapper { padding: 0; border: 1px solid rgba(11, 8, 29, 0.09); border-radius: 50px; background: var(--wp--preset--color--surface); }
html body .opx-integrations-library__search .wp-block-search__input {
	min-height: 0;
	padding: 8px 16px;
	border: 0;
	font-size: 18px;
	line-height: 27.9px;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}
html body .opx-integrations-library__search .wp-block-search__input::placeholder { color: #757575; opacity: 1; }
@media (max-width: 1024px) { html body .opx-integrations-library__search .wp-block-search__input { font-size: 17.008px; line-height: 25.512px; } }
@media (max-width: 767px) {
	html body .opx-integrations-library__search .wp-block-search__input { font-size: 16px; line-height: 24px; }
	/* The component file loads before the global layout styles, so `.is-layout-flex { display: flex }` used to win and showed the list on phones. */
	html body .opx-integrations-library__sidebar.opx-integrations-library__sidebar:not(.is-mobile-open) { display: none; }
}
/* Production tablet sidebar is 31% of the row (286px at 1024, 214px at 768); labels wrap like production. */
@media (min-width: 768px) and (max-width: 1024px) {
	html body .opx-integrations-library__sidebar { flex: 0 0 31%; max-width: 31%; }
}

/* Filter popup (phones) — production Elementor popup: 80% black overlay, centred white panel 85% wide,
   30px 20px 40px padding, soft shadow, 28px "Filter" title, 15px × top-right, rows 42px apart. */
html body .opx-integrations-library__filter-panel { display: contents; }
html body .opx-integrations-library__filter-title,
html body .opx-integrations-library__filter-close { display: none; }
@media (max-width: 767px) {
	html body .opx-integrations-library__sidebar.opx-integrations-library__sidebar.is-mobile-open {
		position: fixed;
		inset: 0;
		z-index: 100000; /* above the sticky header, as production's overlay is */
		display: flex;
		align-items: center;
		justify-content: center;
		max-width: none;
		padding: 0;
		background: rgba(0, 0, 0, 0.8);
		overflow: auto;
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-panel {
		display: block;
		position: relative;
		box-sizing: border-box;
		width: 85%;
		max-height: calc(100% - 40px);
		margin: 20px 0;
		padding: 30px 20px 40px;
		overflow: auto;
		background: var(--wp--preset--color--surface);
		box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-title {
		display: block;
		margin: 0 0 20px;
		font-size: 28px;
		line-height: 36.4px;
		font-weight: 500;
		color: var(--wp--preset--color--ink);
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-close {
		display: flex;
		position: absolute;
		top: 20px;
		right: 20px;
		width: 15px;
		height: 15px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		color: var(--wp--preset--color--ink);
		cursor: pointer;
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filters-list { gap: 18px; }

	/* Toolbar: search pill + 90×42 "Filter" button, 10px apart. */
	html body .opx-integrations-library__toolbar.is-layout-flex { gap: 10px; align-items: center; }
	html body .opx-integrations-library__toolbar .opx-integrations-library__search { max-width: none; flex: 1 1 auto; }
	html body .opx-integrations-library__filter-toggle .wp-block-button__link {
		padding: 10px 20px;
		border: 1px solid var(--wp--preset--color--accent);
		border-radius: 16px;
		font-size: 20px;
		line-height: 20px;
		font-weight: 500;
	}
}

/* Pager — production inline boxes: 5px padding, 18px/29px, separated by spaces; no "Load More" anywhere.
   Phones show the numbers under the list (right-aligned) instead of above it. */
html body .opx-integrations-library__pagination .page-numbers { display: inline-block; padding: 5px; font-size: 18px; line-height: 29px; }
html body .opx-integrations-library__pagination--bottom { display: none !important; }
html body .opx-integrations-library__pagination--under { display: none; }
@media (max-width: 767px) {
	html body .opx-integrations-library__pagination--top { display: none; }
	html body .opx-integrations-library__pagination--under { display: flex; justify-content: flex-end; }
}
/* Pager sits 10px under the heading, cards 11px under the pager; right edge 6px / 7px in from the column (desktop / 1024). */
html body .opx-integrations-library__main.is-layout-flex { row-gap: 10px; }
html body .opx-integrations-library__pagination--top { margin-bottom: 11px; }
/* Phone toolbar: search 67% of the row, Filter button right after it. */
@media (max-width: 767px) {
	html body .opx-integrations-library__toolbar .opx-integrations-library__search { flex: 0 0 67%; max-width: 67%; }
	html body .opx-integrations-library__filter-toggle-wrap.is-layout-flex { flex: 1 1 auto; max-width: none; justify-content: flex-start; }
}

/* Production library grid: column ends 16px / 7px short of the row (desktop / 1024; the column already carries inline padding), 15px gaps, equal rows (the tallest card
   sets the height). Card: logo tile 31px from the top; title + text centred in the space under it (25px / 10px phone below
   the tile, 30px above the bottom edge). */
@media (min-width: 1025px) { html body .opx-integrations-library__main { margin-right: 6px; } }
@media (min-width: 769px) and (max-width: 1024px) { html body .opx-integrations-library__main { margin-right: 7px; } }
html body .opx-integrations-library__query .wp-block-post-template.is-layout-grid { gap: 15px; grid-auto-rows: 1fr; }
html body .opx-integrations-library__card.is-layout-flex { padding: 25px 30px 30px; }
html body .opx-integrations-library__card-media { margin-top: 6px; }
html body .opx-integrations-library__card-body.is-layout-flex { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 8px; }
/* Tablet text column rounds down to production's whole-pixel width (125px at 768), so long descriptions wrap the same. */
@media (min-width: 768px) and (max-width: 1024px) { html body .opx-integrations-library__card-body.is-layout-flex { width: calc(78% - 0.6px); } }
/* Phones: no pager above the grid; heading → first card 30px. */
@media (max-width: 767px) { html body .opx-integrations-library__main.is-layout-flex { row-gap: 30px; } }
/* Pager numbers 6px apart (production); phone pager sits 30px under the last card. */
html body .opx-integrations-library__pagination .wp-block-query-pagination-numbers { display: flex; align-items: center; gap: 6px; }
html body .opx-integrations-library__pagination--under { margin-top: 30px; }

/* Pagination: accent hover on the page numbers (matches Insights). */
html body .opx-integrations-library__pagination a.page-numbers {
	transition: color 0.2s ease;
}

html body .opx-integrations-library__pagination a.page-numbers:hover,
html body .opx-integrations-library__pagination a.page-numbers:focus-visible {
	color: var(--wp--preset--color--accent);
}

/* Distinct controls; inline icons require no asset requests. */
html body .opx-integrations-library__search .wp-block-search__inside-wrapper { position: relative; }
html body .opx-integrations-library__search .wp-block-search__inside-wrapper::before {
	content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23413735' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .opx-integrations-library__search .wp-block-search__input { padding-left: 44px; }
html body .opx-integrations-library__filter-toggle .wp-block-button__link { display: inline-flex; align-items: center; gap: 6px; }
html body .opx-integrations-library__filter-toggle .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .opx-integrations-library__filter-footer { display: none; }
html body .opx-integrations-library__chips:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
html body .opx-integrations-library__chips button {
	font: inherit; font-size: var(--wp--preset--font-size--text); color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--accent);
	border-radius: 50px; padding: 8px 12px; max-width: 100%; overflow-wrap: anywhere; cursor: pointer;
}
@media (max-width: 767px) {
	html body .opx-integrations-library__toolbar .opx-integrations-library__search { flex: 1 1 0; max-width: none; }
	html body .opx-integrations-library__filter-toggle-wrap.is-layout-flex { flex: 0 0 auto; }
	html body .opx-integrations-library__filter-toggle .wp-block-button__link { padding: 10px 12px; font-size: 16px; }
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-panel {
		display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0;
		max-height: calc(100dvh - 40px);
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filters-list {
		overflow-y: auto; min-height: 0; padding-bottom: 20px; overscroll-behavior: contain;
	}
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-title { flex-shrink: 0; }
	html body .opx-integrations-library__sidebar.is-mobile-open .opx-integrations-library__filter-footer {
		display: block; flex-shrink: 0; position: sticky; bottom: 0;
		padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: var(--wp--preset--color--surface);
	}
	html body .opx-integrations-library__filter-apply {
		width: 100%; padding: 12px 20px; border: 0; border-radius: 50px; font: inherit;
		background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface); cursor: pointer;
	}
}

/* Chips complement the phone popup; wider views already expose category checkboxes. */
@media (min-width: 768px) {
	html body .opx-integrations-library__chips:not([hidden]) { display: none; }
}
/* Match the outlined control to the theme; override existing saved button color utilities. */
html body .opx-integrations-library__filter-toggle .wp-block-button__link {
	color: var(--wp--preset--color--accent) !important;
	background-color: var(--wp--preset--color--surface) !important;
	gap: 6px;
	border-radius: 10px;
}
html body .opx-integrations-library__filter-toggle .wp-block-button__link::before {
	background: none;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 5h10m4 0h4M3 12h3m4 0h11M3 19h10m4 0h4'/%3E%3Ccircle cx='15' cy='5' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='15' cy='19' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .opx-integrations-library__filter-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; flex-shrink: 0;
	border-radius: 50%; background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface); font-size: 12px; line-height: 1;
}
