/**
 * IONYX Core frontend styles.
 */

.ionyx-search,
.ionyx-form {
	display: grid;
	gap: 0.875rem;
}

.ionyx-search {
	grid-template-columns: minmax(0, 1fr) auto;
}

.ionyx-form-grid,
.ionyx-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ionyx-phone-field {
	border: 0;
	display: grid;
	gap: 0.375rem;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.ionyx-phone-field legend {
	font-weight: 700;
}

.ionyx-phone-field label {
	display: grid;
	gap: 0.375rem;
	min-width: 0;
}

.ionyx-phone-field__inputs {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 1fr);
	gap: 0.5rem;
}

.ionyx-phone-field__inputs input,
.ionyx-phone-field__inputs select,
.ionyx-phone-field__manual input {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
}

.ionyx-phone-field__manual[hidden] {
	display: none;
}

.ionyx-phone-field__manual {
	max-width: 11rem;
}

@media (max-width: 600px) {
	.ionyx-phone-field__inputs {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ionyx-card {
	border: 1px solid #d9e2e1;
	border-radius: 6px;
	padding: 1rem;
}

.ionyx-brand-card ul,
.ionyx-faq {
	display: grid;
	gap: 0.75rem;
}

.ionyx-brand-card ul {
	margin: 0.75rem 0;
	padding-left: 1.15rem;
}

.ionyx-faq-item {
	background: #ffffff;
	border: 1px solid #d9e2e1;
	border-radius: 8px;
	padding: 1rem;
}

.ionyx-faq-item summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	list-style: none;
}

.ionyx-faq-item summary::-webkit-details-marker {
	display: none;
}

.ionyx-faq-question {
	color: #17242b;
	font-weight: 700;
	line-height: 1.35;
}

.ionyx-faq-item summary::after {
	align-items: center;
	background: #eef5f8;
	border-radius: 999px;
	color: #0078a3;
	content: "+";
	display: inline-flex;
	flex: 0 0 1.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	height: 1.75rem;
	justify-content: center;
	line-height: 1;
	width: 1.75rem;
}

.ionyx-faq-item[open] summary::after {
	content: "-";
}

.ionyx-faq-item summary:focus-visible {
	outline: 3px solid rgba(0, 120, 163, 0.35);
	outline-offset: 4px;
}

.ionyx-faq-answer {
	margin-top: 0.85rem;
}

.ionyx-faq-answer p {
	margin: 0;
}

.ionyx-table-wrap {
	overflow-x: auto;
}

.ionyx-table {
	border-collapse: collapse;
	width: 100%;
}

.ionyx-table th,
.ionyx-table td {
	border-bottom: 1px solid #d9e2e1;
	padding: 0.75rem;
	text-align: left;
	vertical-align: top;
}

.ionyx-table th {
	background: #f4fbfa;
	color: #123130;
	font-weight: 700;
}

.ionyx-table-description {
	color: #596779;
	display: block;
	font-size: 0.85em;
	line-height: 1.45;
	margin-top: 0.35rem;
}

.ionyx-data-notice {
	background: #fff8df;
	border-left: 4px solid #ffb81c;
	color: #27364a;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
}

.ionyx-availability-badge {
	background: #e8f7ef;
	border-radius: 999px;
	color: #14552c;
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	white-space: nowrap;
}

.ionyx-quote-button,
.ionyx-form button,
.ionyx-search button {
	background: #0b6f6a;
	border: 1px solid #0b6f6a;
	border-radius: 8px;
	background-clip: padding-box;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.7rem 1rem;
	text-decoration: none;
}

.ionyx-link-button {
	background: transparent;
	border: 0;
	color: #0b6f6a;
	cursor: pointer;
	font-weight: 700;
	padding: 0;
	text-decoration: underline;
}

.ionyx-link {
	display: inline-block;
	margin-right: 0.75rem;
}

.ionyx-form input,
.ionyx-form select,
.ionyx-form textarea,
.ionyx-search input {
	border: 1px solid #b7c9c7;
	border-radius: 4px;
	padding: 0.7rem;
	width: 100%;
}

.ionyx-honeypot {
	left: -9999px;
	position: absolute;
}

.ionyx-form .ionyx-recaptcha-disclosure {
	color: #526170;
	font-size: 0.75rem;
	line-height: 1.45;
	margin: 0;
}

.ionyx-recaptcha-disclosure a {
	color: #075e88;
	text-decoration: underline;
}

/* The form carries Google's required visible attribution, clear of floating CTAs. */
body:has([data-ionyx-recaptcha-site-key]) .grecaptcha-badge {
	visibility: hidden;
}

.ionyx-status {
	border-left: 4px solid #0b6f6a;
	background: #f4fbfa;
	color: #123130;
	margin: 1rem 0;
	padding: 0.875rem 1rem;
}

.ionyx-quote-cart {
	display: grid;
	gap: 1rem;
}

.ionyx-quote-count-badge strong {
	background: #0b6f6a;
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	justify-content: center;
	margin-left: 0.35rem;
	min-width: 1.75rem;
	padding: 0.15rem 0.55rem;
}

.ionyx-quote-line {
	border: 1px solid #d9e2e1;
	border-radius: 6px;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.35fr) minmax(180px, 1fr) auto;
	margin-bottom: 0.75rem;
	padding: 0.875rem;
}

.ionyx-quote-line-main {
	min-width: 0;
}

.ionyx-quote-line label {
	display: grid;
	gap: 0.25rem;
}

.ionyx-quote-line input,
.ionyx-quote-line textarea {
	border: 1px solid #b7c9c7;
	border-radius: 4px;
	padding: 0.5rem;
	width: 100%;
}

.ionyx-form-message {
	border-radius: 4px;
	font-weight: 700;
	margin-top: 0.75rem;
	min-height: 1.25rem;
	padding: 0.75rem;
}

.ionyx-form-message:empty {
	display: none;
}

.ionyx-form-message[data-status="success"] {
	background: #e8f7ef;
	color: #14552c;
}

.ionyx-form-message[data-status="error"] {
	background: #fdecec;
	color: #8a1f1f;
}

.ionyx-form-message[data-status="info"] {
	background: #eef5f4;
	color: #123130;
}

.ionyx-filter-actions,
.ionyx-catalog-navigation,
.ionyx-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ionyx-filter-actions {
	margin-top: 0.5rem;
}

.ionyx-filter-actions a {
	color: #005f7d;
	font-weight: 700;
}

.ionyx-catalog-navigation {
	justify-content: space-between;
	margin: 0 0 0.75rem;
}

.ionyx-table-wrap + .ionyx-catalog-navigation {
	margin: 0.75rem 0 0;
}

.ionyx-result-count {
	color: #46536a;
	margin: 0;
}

.ionyx-quote-access {
	align-items: center;
	background: #062741;
	border-radius: 6px;
	color: #ffffff;
	display: inline-flex;
	font-weight: 700;
	gap: 0.25rem;
	min-height: 42px;
	padding: 0.65rem 1rem;
	text-decoration: none;
}

.ionyx-quote-access:hover,
.ionyx-quote-access:focus-visible {
	background: #0078a3;
	color: #ffffff;
}

.ionyx-catalog-message {
	flex-basis: 100%;
	font-weight: 700;
	min-height: 1.25rem;
}

.ionyx-catalog-message:empty {
	display: none;
}

.ionyx-catalog-message[data-status="success"] {
	color: #14552c;
}

.ionyx-pagination {
	justify-content: center;
	margin: 1rem 0;
}

.ionyx-pagination a {
	border: 1px solid #b7c9c7;
	border-radius: 4px;
	color: #005f7d;
	font-weight: 700;
	padding: 0.45rem 0.75rem;
	text-decoration: none;
}

.ionyx-pagination-pages {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.ionyx-pagination-pages a,
.ionyx-pagination-current {
	align-items: center;
	border: 1px solid #b7c9c7;
	border-radius: 4px;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 38px;
	min-width: 38px;
	padding: 0.35rem 0.55rem;
}

.ionyx-pagination-current {
	background: #062741;
	border-color: #062741;
	color: #ffffff;
}

.ionyx-pagination-ellipsis {
	align-items: center;
	color: #596779;
	display: inline-flex;
	justify-content: center;
	min-width: 1.25rem;
}

.ionyx-detail-trigger {
	background: transparent;
	border: 0;
	color: #005f7d;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 0.85rem;
	font-weight: 700;
	margin-top: 0.2rem;
	padding: 0;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ionyx-detail-trigger:hover,
.ionyx-detail-trigger:focus-visible {
	color: #0078a3;
}

.ionyx-detail-dialog {
	background: #ffffff;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 26, 49, 0.28);
	color: #17242b;
	max-height: min(84vh, 760px);
	max-width: 760px;
	overflow: auto;
	padding: 0;
	width: min(calc(100% - 2rem), 760px);
}

.ionyx-detail-dialog::backdrop {
	background: rgba(0, 26, 49, 0.72);
}

.ionyx-detail-dialog-inner {
	padding: clamp(1.35rem, 4vw, 2.5rem);
	position: relative;
}

.ionyx-detail-dialog-close {
	align-items: center;
	background: #eef5f8;
	border: 0;
	border-radius: 999px;
	color: #062741;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.6rem;
	height: 42px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 42px;
}

.ionyx-detail-eyebrow {
	color: #0078a3;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 3.5rem 0.45rem 0;
	text-transform: uppercase;
}

.ionyx-detail-dialog h3 {
	color: #062741;
	font-size: clamp(1.45rem, 4vw, 2.15rem);
	line-height: 1.2;
	margin: 0 3rem 1rem 0;
}

.ionyx-detail-description {
	color: #46536a;
	font-size: 1rem;
	line-height: 1.65;
}

.ionyx-detail-facts {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.25rem 0;
}

.ionyx-detail-facts div {
	background: #f4f6fa;
	border-radius: 8px;
	padding: 0.8rem;
}

.ionyx-detail-facts dt {
	color: #596779;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.ionyx-detail-facts dd {
	font-weight: 700;
	margin: 0;
}

.ionyx-detail-features {
	color: #46536a;
	line-height: 1.55;
	padding-left: 1.25rem;
}

.ionyx-detail-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.ionyx-detail-dismiss {
	background: transparent;
	border: 1px solid #b7c9c7;
	border-radius: 4px;
	color: #062741;
	cursor: pointer;
	font-weight: 700;
	padding: 0.7rem 1rem;
}

body.ionyx-dialog-open {
	overflow: hidden;
}

.ionyx-catalog-results {
	scroll-margin-top: var(--ionyx-catalog-anchor-offset, 7rem);
}

.ionyx-quote-button[aria-pressed="true"] {
	background: #14552c;
}

.ionyx-quote-toast {
	background: #062741;
	border-radius: 6px;
	bottom: 1.25rem;
	box-shadow: 0 10px 30px rgba(0, 26, 49, 0.22);
	color: #ffffff;
	font-weight: 700;
	left: 50%;
	max-width: calc(100vw - 2rem);
	padding: 0.8rem 1rem;
	position: fixed;
	transform: translateX(-50%);
	z-index: 99999;
}

@media (max-width: 980px) {
	.ionyx-search {
		grid-template-columns: 1fr;
	}

	.ionyx-quote-line {
		grid-template-columns: 1fr;
	}

	.ionyx-catalog-navigation {
		align-items: stretch;
		flex-direction: column;
	}

	.ionyx-quote-access {
		justify-content: center;
	}

	.ionyx-pagination {
		justify-content: center;
	}

	.ionyx-pagination-status,
	.ionyx-pagination-pages {
		flex-basis: 100%;
		text-align: center;
	}

	.ionyx-table-wrap {
		background: transparent;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}

	.ionyx-table-wrap .ionyx-table {
		border: 0;
		border-collapse: separate;
		display: block;
		min-width: 0;
		width: 100%;
	}

	.ionyx-table thead {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.ionyx-table tbody {
		display: grid;
		gap: 0.75rem;
	}

	.ionyx-table tbody tr {
		background: #ffffff;
		border: 1px solid #d9e2e1;
		border-radius: 10px;
		box-shadow: none;
		display: block;
		overflow: hidden;
	}

	.ionyx-table tbody td {
		align-items: start;
		box-sizing: border-box;
		display: grid;
		gap: 0.4rem;
		grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr);
		padding: 0.45rem 0.85rem;
		width: 100%;
	}

	.ionyx-table tbody td::before {
		color: #596779;
		content: attr(data-label);
		font-size: 0.72rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.ionyx-table tbody td:first-child {
		background: #f4f6fa;
		display: block;
		padding: 0.8rem 0.85rem;
	}

	.ionyx-table tbody td:first-child::before {
		display: none;
	}

	.ionyx-product-table tbody td.ionyx-card-empty {
		display: none;
	}

	.ionyx-product-table tbody tr {
		background: transparent;
		border: 0;
		border-bottom: 1px solid #d9e2e1;
		border-radius: 0;
	}

	.ionyx-product-table tbody td:first-child {
		background: transparent;
	}

	.ionyx-product-table tbody td {
		border-bottom: 0;
	}

	.ionyx-product-table tbody td:first-child strong,
	.ionyx-product-table tbody td:first-child > a {
		display: block;
		font-size: 1rem;
		line-height: 1.3;
	}

	.ionyx-product-table tbody td:first-child .ionyx-detail-trigger {
		margin-top: 0.35rem;
	}

	.ionyx-product-table tbody td:last-child {
		display: block;
		padding: 0.55rem 0.85rem 0.8rem;
	}

	.ionyx-product-table tbody td:last-child::before {
		display: none;
	}

	.ionyx-product-table tbody td .ionyx-quote-button {
		font-size: 0.85rem;
		white-space: nowrap;
	}

	.ionyx-table tbody td:last-child {
		border-bottom: 0;
	}

	.ionyx-table tbody td.ionyx-table-empty {
		display: block;
		padding: 1rem;
	}

	.ionyx-table tbody td.ionyx-table-empty::before {
		display: none;
	}

	.ionyx-table td .ionyx-quote-button {
		width: 100%;
	}

	.ionyx-availability-badge {
		white-space: normal;
	}

	.ionyx-detail-facts {
		grid-template-columns: 1fr;
	}

	.ionyx-detail-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ionyx-detail-actions .ionyx-quote-button,
	.ionyx-detail-dismiss {
		width: 100%;
	}
}

/* Brand CPT archive and single templates. Divi Theme Builder may override these later. */
.ionyx-brand-archive,
.ionyx-single-brand {
	background: #f6f8fa;
	color: #17242b;
}

.ionyx-brand-archive-inner,
.ionyx-single-brand .ionyx-single-entry {
	margin: 0 auto;
	max-width: 1240px;
	width: min(92%, 1240px);
}

.ionyx-brand-archive-hero {
	background: #062741;
	color: #ffffff;
	padding: clamp(4rem, 8vw, 7rem) 0;
}

.ionyx-brand-archive-hero h1,
.ionyx-brand-profile-hero h1 {
	color: #ffffff;
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	line-height: 1.04;
	margin: 0 0 1.25rem;
}

.ionyx-brand-profile-hero .ionyx-eyebrow {
	color: #ffb81c;
}

.ionyx-brand-archive-hero p:last-child {
	font-size: 1.125rem;
	line-height: 1.7;
	max-width: 780px;
}

.ionyx-eyebrow {
	color: #ffb81c;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.ionyx-brand-archive-list {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.ionyx-brand-archive-list h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 2rem;
}

.ionyx-brand-directory-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ionyx-brand-directory-card {
	background: #ffffff;
	border: 1px solid #d9e3e8;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.ionyx-brand-directory-logo {
	align-items: center;
	display: flex;
	height: 84px;
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.ionyx-brand-directory-logo img {
	height: auto;
	max-height: 72px;
	max-width: 210px;
	object-fit: contain;
	object-position: left center;
	width: auto;
}

.ionyx-brand-directory-card h3 {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

.ionyx-brand-directory-card h3 a {
	color: #062741;
	text-decoration: none;
}

.ionyx-brand-directory-card p {
	line-height: 1.65;
	margin: 0 0 1.5rem;
}

.ionyx-brand-directory-card .ionyx-secondary-button {
	margin-top: auto;
}

.ionyx-single-brand {
	padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

.ionyx-breadcrumb {
	display: flex;
	gap: 0.55rem;
	margin-bottom: 2rem;
}

.ionyx-brand-profile-hero {
	align-items: center;
	background: #062741;
	border-radius: 8px;
	color: #ffffff;
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
	padding: clamp(2rem, 6vw, 5rem);
}

.ionyx-brand-profile-lead {
	font-size: 1.125rem;
	line-height: 1.65;
	margin: 0;
	max-width: 720px;
}

.ionyx-brand-profile-logo {
	align-items: center;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	margin: 0;
	min-height: 220px;
	padding: 2rem;
}

.ionyx-brand-profile-logo img {
	height: auto;
	max-height: 150px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.ionyx-brand-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.ionyx-primary-button,
.ionyx-secondary-button {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 6px;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 0.75rem 1.2rem;
	text-align: center;
	text-decoration: none;
}

.ionyx-primary-button {
	background: #ffb81c;
	color: #062741;
}

.ionyx-secondary-button {
	background: #062741;
	color: #ffffff;
}

.ionyx-brand-profile-hero .ionyx-secondary-button {
	border-color: #ffffff;
}

.ionyx-primary-button:hover,
.ionyx-primary-button:focus-visible,
.ionyx-secondary-button:hover,
.ionyx-secondary-button:focus-visible {
	filter: brightness(1.08);
	text-decoration: none;
}

.ionyx-brand-profile-content {
	background: #ffffff;
	border: 1px solid #d9e3e8;
	border-radius: 8px;
	line-height: 1.7;
	margin-top: 1.5rem;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.ionyx-brand-profile-content h2 {
	color: #062741;
	font-size: clamp(1.45rem, 3vw, 2rem);
	margin: 2.25rem 0 1rem;
}

.ionyx-brand-profile-content h2:first-child {
	margin-top: 0;
}

.ionyx-brand-profile-content ul {
	padding-left: 1.25rem;
}

.ionyx-brand-unavailable {
	background: #f6f8fa;
	border-left: 4px solid #ffb81c;
	border-radius: 6px;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.ionyx-brand-unavailable h2 {
	margin-top: 0;
}

.ionyx-brand-unavailable p:last-child {
	margin-bottom: 0;
}

.ionyx-brand-profile-content a:not([href]) {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 980px) {
	.ionyx-brand-directory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ionyx-brand-profile-hero {
		grid-template-columns: 1fr;
	}

	.ionyx-brand-profile-logo {
		min-height: 160px;
	}
}

@media (max-width: 640px) {
	.ionyx-brand-directory-grid {
		grid-template-columns: 1fr;
	}

	.ionyx-brand-profile-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ionyx-primary-button,
	.ionyx-secondary-button {
		width: 100%;
	}
}
