.modal .btn,
.default-modal.modal .btn {
	justify-content: left;
	text-decoration: none;
	padding: 10px;
	border-radius: 5px;
	background-color: #53505e;
	border: none;
	color: #cbc8d7;
	font-weight: bold;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	border-bottom: 1px solid rgba(0, 0, 0, 0.4);
	font-size: 0.7em;
	text-shadow: 1px 1px 1px rgb(0 0 0 / 30%);
	box-shadow: 0px 1px 3px rgb(0 0 0 / 20%);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	border-right: 1px solid rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.modal .btn:not(:disabled):hover,
.default-modal.modal .btn:not(:disabled):hover {
	border: 1px solid cyan;
	box-shadow: 0px 1px 10px rgb(0 255 255 / 50%), 0px 0px 3px rgb(0 255 255 / 70%);
	transform: scale(1.05);
	color: #333;
	text-shadow: none;
	background: cyan;
}

.modal,
.default-modal,
.default-modal *:not(.fa-solid):not(.fa) {
	font-family: "system-ui", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: unset;
}

.modal * {
	box-sizing: border-box;
}

.modal,
.default-modal.modal {
	z-index: 100;
}

.modal,
.default-modal.modal {
	background: rgb(0 0 0 / 0%);
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 1s ease;
	padding: 40px;
	animation: modal 1s 0s ease-in-out forwards;
}

.modal .popup,
.default-modal.modal .popup {
	animation: modal-popup 1s 0s cubic-bezier(.84, .37, .09, .99) forwards;
	width: 100%;
	max-width: 300px;
	background: rgb(24 24 27 / 98%);
	border-radius: 14px;
	box-shadow: 0px 4px 40px rgb(0 0 0 / 70%);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
	border: 1px solid rgb(83 80 96);
}

.modal-title,
.default-modal.modal .modal-title {
	margin: -1px;
	background: rgb(50 47 57);
	border-radius: 8px 8px 0 0;
	box-shadow: 0 4px 30px rgb(0 0 0 / 10%);
	border: 1px solid rgb(101 101 101);
	padding: 15px;
	display: flex;
	justify-content: space-between;
	height: 50px;
	max-height: 50px;
	align-items: center;
	text-align: center;
	justify-content: center;
	color: #ccc;
	font-weight: bold;
	border-bottom: 0;
}

.modal-content,
.default-modal .modal-content {
	padding: 15px;
	max-height: calc(100vh - 70px);
	overflow-y: auto;
}

.modal-message .popup,
.default-modal.modal-message .popup {
	max-width: 380px;
}

.popup .message,
.default-modal.modal-message .popup .message {
	color: white;
	text-align: center;
	margin-bottom: 15px;
	opacity: 0.85;
}

.modal .popup .btn-option:not(:last-child),
.default-modal.modal .popup .btn-option:not(:last-child) {
	margin-bottom: 5px;
}

.modal .popup .btn-option:last-child,
.default-modal.modal .popup .btn-option:last-child {
	margin-top: 5px;
}

.modal .btn-option,
.modal .btn-close,
.default-modal.modal .btn-option,
.default-modal.modal .btn-close {
	font-weight: normal;
	border-radius: 4px;
	display: flex;
	align-items: center;
	padding: 10px;
	background-color: #313338;
	color: white;
	box-shadow: 0px 0px 8px #00000057;
	min-height: 64px;
	cursor: pointer;
	font-size: 14px;
}

.modal .btn-option-highlight,
.modal .btn-close,
.default-modal.modal .btn-option-highlight,
.default-modal.modal .btn-close {
	background-color: #5d44a5;
	box-shadow: 0px 0px 8px #00000057;
	color: white;
	justify-content: center;
	min-height: 50px;
}

.modal.modal-confirm .btn,
.default-modal.modal.modal-confirm .btn {
	justify-content: center;
	min-height: 42px;
}


.modal .btn svg,
.default-modal.modal .btn svg {
	max-width: 40px;
	min-width: 40px;
}

.modal .btn>*:not(:last-child),
.default-modal.modal .btn>*:not(:last-child) {
	margin-right: 16px;
}

.modal .smaller,
.default-modal.modal .smaller {
	opacity: 0.65;
	font-size: 0.75em;
	width: 100%;
	text-align: right;
}

.modal.modal-options .modal-option-container,
.default-modal.modal.modal-options .modal-option-container {
	display: flex;
	flex-direction: column;
}

.modal-selection .popup,
.default-modal.modal-selection .popup {
	max-width: 500px;
	max-height: 100%;
	display: flex;
	flex-direction: column;
}

.modal-selection .modal-content,
.default-modal.modal-selection .modal-content {
	height: 400px;
	display: flex;
	flex-direction: column;
}

.modal-selection-container,
.default-modal.modal-selection .modal-selection-container {
	display: flex;
	flex-wrap: wrap;
}

.modal .modal-selection-item,
.default-modal.modal .modal-selection-item {
	width: calc(33.33% - 10px);
	margin: 5px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.2s ease;
	animation: itemAppear 1s 0.3s cubic-bezier(.84, .37, .09, .99) forwards;
	opacity: 0;
}

@media screen and (max-width: 800px) {

	.modal .modal-selection-item,
	.default-modal.modal .modal-selection-item {
		width: calc(50% - 10px);
	}
}

.modal .modal-selection-item:hover,
.default-modal.modal .modal-selection-item:hover {}

.modal .modal-selection-item:nth-child(1),
.default-modal.modal .modal-selection-item:nth-child(1) {
	/*animation: itemAppear 1s 2s cubic-bezier(.84, .37, .09, .99) forwards;*/
}

@keyframes itemAppear {
	0% {
		transform: scale(1);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}

}

.modal .modal-selection-item img,
.default-modal.modal .modal-selection-item img {
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 5px;
	border: 1px solid #ffffff00;
	border-radius: 5px;
	transition: all 0.3s ease;
	transform: scale(0.95);
	background: #00ffcf00;
}

.modal .modal-selection-item:hover img,
.default-modal.modal .modal-selection-item:hover img {
	border: 1px solid #ffffff38;
	border-radius: 5px;
	background: #ffffff29;
	transform: scale(1);
}

.modal .modal-selection-item.selected img {
	border: 1px solid #ffffff38;
	border-radius: 5px;
	background: #ffffff29;
}

.modal .modal-selection-item span,
.default-modal.modal .modal-selection-item span {
	font-size: 14px;
	opacity: 0.75;
	border-radius: 5px;
	padding: 2px 5px;
	transition: all 0.3s ease;
}

.modal .modal-selection-item:hover span,
.default-modal.modal .modal-selection-item:hover span {
	background: cyan;
	opacity: 1;
	color: #333 !important;
	text-shadow: none;
	box-shadow: 0px 1px 10px rgba(0, 255, 255, 0.5), 0px 0px 3px rgba(0, 255, 255, 0.7);
}

.transaction-modal .message,
.default-modal.transaction-modal .message {
	opacity: 0.65;
	text-align: center;
	font-size: 14px;
	margin-top: 5px;
}

.transaction-modal .popup,
.default-modal.transaction-modal .popup {
	max-width: 400px;
}

.kc-error-details {
	opacity: 0.65;
}

.hidden {
	display: none !important;
}

.overlay .popup,
.default-modal.overlay .popup {
	padding: 15px;
	max-width: 400px;
	background: rgb(24 24 27 / 52%);
	border: 1px solid rgb(113 107 139 / 19%);
}

.overlay .message,
.default-modal.overlay .message {
	margin-bottom: unset;
}

.modal.modal-options.modal-confirm .modal-option-container,
.default.modal.modal-options.modal-confirm .modal-option-container {
	flex-direction: row;
}

.modal.modal-options.modal-confirm .modal-option-container>*,
.default.modal.modal-options.modal-confirm .modal-option-container>* {
	width: 100%;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 5px;
	margin-right: 5px;
}

@keyframes modal {
	0% {
		background: rgb(0 0 0 / 0%);
		backdrop-filter: blur(0px);
		-webkit-backdrop-filter: blur(0px);
	}

	100% {
		background: rgb(0 0 0 / 30%);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
	}
}

@keyframes modal-popup {
	0% {
		opacity: 0;
		transform: scale(0);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}


.ripple-container {
	text-align: center;
}

.lds-ripple {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
	margin-left: auto;
	margin-right: auto;
}

.lds-ripple div {
	position: absolute;
	border: 4px solid #fff;
	opacity: 1;
	border-radius: 50%;
	animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
	animation-delay: -0.5s;
}

@keyframes lds-ripple {
	0% {
		top: 36px;
		left: 36px;
		width: 0;
		height: 0;
		opacity: 1;
	}

	100% {
		top: 0px;
		left: 0px;
		width: 72px;
		height: 72px;
		opacity: 0;
	}
}

.transaction-modal .btn-close {
	background: #4d4a53;
	color: #ffffff91;
}