/**
 * 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-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;
}

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

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