.magtyre-archive-search {
	width: 100%;
	font-family: inherit;
}

/* -------------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------------- */

.magtyre-as-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 12px;
}

.magtyre-as-tab {
	padding: 18px 24px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border: 2px solid #007FFF;
	background: transparent;
	color: #007FFF;
	transition: background 0.15s, color 0.15s;
	line-height: 1;
}

.magtyre-as-tab:first-child {
	border-radius: 8px 0 0 8px;
}

.magtyre-as-tab:last-child {
	border-radius: 0 8px 8px 0;
	border-left: none;
}

.magtyre-as-tab:only-child {
	border-radius: 8px;
	border-left: 2px solid #007FFF;
}

.magtyre-as-tab.is-active {
	background: #007FFF;
	color: #fff;
}

.magtyre-as-tab:hover:not(.is-active) {
	background: #eff6ff;
}

/* -------------------------------------------------------------------------
   Panels
   ------------------------------------------------------------------------- */

.magtyre-as-panel {
	display: none;
}

.magtyre-as-panel.is-active {
	display: block;
}

/* -------------------------------------------------------------------------
   Form row
   ------------------------------------------------------------------------- */

.magtyre-as-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Individual field
   ------------------------------------------------------------------------- */

.magtyre-as-field {
	flex: 1;
	min-width: 160px;
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	height: 48px;
	padding: 0 14px;
	position: relative;
	transition: background 0.15s;
}

.magtyre-as-field:focus-within {
	border-color: #007FFF;
}

.magtyre-as-field--disabled {
	/* opacity: 0.5; */
	background: #EEEEEE;
}

/* Loading spinner */
.magtyre-as-field--loading::after {
	content: '';
	display: block;
	position: absolute;
	right: 12px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid #ccc;
	border-top-color: #007FFF;
	border-radius: 50%;
	animation: magtyre-as-spin 0.6s linear infinite;
}

@keyframes magtyre-as-spin {
	to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------
   Select
   ------------------------------------------------------------------------- */

.magtyre-as-select {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none;
	background: transparent;
	font-size: 14px;
	color: #333;
	outline: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	/* Chevron arrow */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23000000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	padding-right: 20px;
}

.magtyre-as-field--disabled .magtyre-as-select {
	color: #9ca3af;
	cursor: default;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   Submit button
   ------------------------------------------------------------------------- */

.magtyre-as-btn {
	flex-shrink: 0;
	padding: 0 28px;
	height: 48px;
	background: #007FFF;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}

.magtyre-as-btn:hover,
.magtyre-as-btn:focus-visible {
	background: #1d4ed8;
	outline: none;
}

/* -------------------------------------------------------------------------
   Responsive — stack on small screens
   ------------------------------------------------------------------------- */

@media (max-width: 640px) {
	/* .magtyre-as-form {
		flex-direction: column;
		align-items: stretch;
	} */

	/* .magtyre-as-field {
		min-width: 0;
	} */

	.magtyre-as-btn {
		width: 100%;
	}
}
