/**
 * Minimal matches UI + proposal drawer + toast CSS starter
 */

.swapr-matches-toolbar {
	display: flex;
	gap: 12px;
	align-items: end;
	margin: 16px 0;
	flex-wrap: wrap;
}

.swapr-field-inline,
.swapr-field-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.swapr-field-label {
	font-size: 13px;
	opacity: 0.75;
}

.swapr-input {
	background: #202634;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 10px 12px;
}

.swapr-match-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 14px;
}

.swapr-match-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 12px;
	border-radius: 16px;
	background: #202634;
}

.swapr-match-card-main {
	display: flex;
	gap: 12px;
	background: transparent;
	border: 0;
	color: #fff;
	text-align: left;
	cursor: pointer;
	padding: 0;
}

.swapr-match-card-image {
	width: 72px;
	height: 98px;
	object-fit: cover;
	border-radius: 10px;
	background: #2a3142;
}

.swapr-match-card-image.is-placeholder {
	display: block;
}

.swapr-match-card-title {
	font-weight: 600;
}

.swapr-match-card-meta,
.swapr-match-card-score,
.swapr-match-card-owner,
.swapr-match-reason-group {
	font-size: 13px;
	opacity: 0.8;
	margin-top: 4px;
}

.swapr-match-card-actions {
	display: flex;
	align-items: center;
}

.swapr-proposal-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 95vw;
	height: 100vh;
	background: #121722;
	border-left: 1px solid rgba(255,255,255,0.08);
	z-index: 65;
	box-shadow: -12px 0 30px rgba(0,0,0,0.28);
}

.swapr-proposal-drawer-inner {
	padding: 18px;
	height: 100%;
	overflow-y: auto;
}

.swapr-proposal-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.swapr-proposal-drawer-title {
	margin: 0;
	font-size: 18px;
}

.swapr-proposal-actions {
	margin-top: 14px;
	display: flex;
}

.swapr-toast-stack {
	position: fixed;
	right: 18px;
	bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 120;
}

.swapr-toast {
	min-width: 240px;
	max-width: 360px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #202634;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.08);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.swapr-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.swapr-toast-success {
	border-color: rgba(110,255,170,0.32);
}

.swapr-toast-warning {
	border-color: rgba(255,220,110,0.32);
}

.swapr-toast-error {
	border-color: rgba(255,110,110,0.32);
}

.swapr-toast-close {
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.swapr-match-card {
		grid-template-columns: 1fr;
	}
}
