@import "@radix-ui/colors/black-alpha.css";
@import "@radix-ui/colors/mint.css";

/* reset */
button {
	all: unset;
}

.ToastViewport {
	--viewport-padding: 25px;
	position: fixed;
	bottom: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	padding: var(--viewport-padding);
	gap: 10px;
	width: 390px;
	max-width: 100vw;
	margin: 0;
	list-style: none;
	z-index: 2147483647;
	outline: none;
}

.ToastRoot {
	background-color: var(--mint-5);
	border-radius: 6px;
	box-shadow:
		hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
		hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
	padding: 15px;
	display: grid;
	grid-template-areas: "title action" "description action";
	grid-template-columns: auto max-content;
	column-gap: 15px;
	align-items: center;
}
.ToastRoot[data-state="open"] {
	animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ToastRoot[data-state="closed"] {
	animation: hide 100ms ease-in;
}
.ToastRoot[data-swipe="move"] {
	transform: translateX(var(--radix-toast-swipe-move-x));
}
.ToastRoot[data-swipe="cancel"] {
	transform: translateX(0);
	transition: transform 200ms ease-out;
}
.ToastRoot[data-swipe="end"] {
	animation: swipeOut 100ms ease-out;
}

@keyframes hide {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes slideIn {
	from {
		transform: translateX(calc(100% + var(--viewport-padding)));
	}
	to {
		transform: translateX(0);
	}
}

@keyframes swipeOut {
	from {
		transform: translateX(var(--radix-toast-swipe-end-x));
	}
	to {
		transform: translateX(calc(100% + var(--viewport-padding)));
	}
}

.ToastTitle {
	grid-area: title;
	margin-bottom: 5px;
	font-weight: 500;
	color: var(--mint-12);
	font-size: 15px;
}

.ToastDescription {
	grid-area: description;
	margin: 0;
	color: var(--mint-5);
	font-size: 13px;
	line-height: 1.3;
}

.ToastAction {
	grid-area: action;
}

.Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-weight: 500;
	user-select: none;
}
.Button.small {
	font-size: 12px;
	padding: 0 10px;
	line-height: 25px;
	height: 25px;
}
.Button.large {
	font-size: 15px;
	padding: 0 15px;
	line-height: 35px;
	height: 35px;
}
.Button.mint {
	background-color: white;
	color: var(--mint-11);
	box-shadow: 0 2px 10px var(--black-a7);
}
.Button.mint:hover {
	background-color: var(--mint-3);
}
.Button.mint:focus {
	box-shadow: 0 0 0 2px black;
}
.Button.mint {
	background-color: var(--mint-2);
	color: var(--mint-11);
	box-shadow: inset 0 0 0 1px var(--mint-7);
}
.Button.mint:hover {
	box-shadow: inset 0 0 0 1px var(--mint-8);
}
.Button.mint:focus {
	box-shadow: 0 0 0 2px var(--mint-8);
}
