/**
 * 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-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: 0;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	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-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-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: 640px) {
	.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;
	}
}
