ol,
ul {
	list-style: none;
}

.tw-dialog {
	padding: 0;
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin: auto;
}

.tw-dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
}

.tw-dialog[open] {
	animation: tw-slide-in 0.3s ease-out;
}

html:has(.tw-dialog[open]) {
	overflow: hidden !important;
}

@keyframes tw-slide-in {
	from {
		transform: translateY(-10%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.tw-close-button {
	width: 28px;
	height: 28px;

	background-color: #f3f3f3;
	border-radius: 50%;
	border: 1px solid #333;
}

.tw-close-button::before {
	content: "×";
	font-size: 1.25rem;
	font-weight: bold;
	color: #333;
}

.tw-close-button:focus {
	outline: 1px solid black;
}

/* Loading Overlay CSS */
#tomi_loadingOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999999;
	visibility: visible;
}

.tomi_spinner {
	border: 13px solid #f3f3f3;
	border-top: 13px solid var(--mainColor, #3f85b9);
	border-radius: 50%;
	width: 65px;
	height: 65px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

.woocommerce-breadcrumb {
	overflow-wrap: break-word;
}

.tw-language-button {
	background-color: #e7e7e7;
	color: #000;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 5px 10px;
	white-space: nowrap;
	font-size: 16px;

	&:hover {
		border: 2px solid #666;
	}

	&.active {
		border: 2px solid #666;
	}

	img {
		margin-right: 0.5rem;
	}


	/* cursor: pointer;

	display: flex;
	align-items: center;
	gap: 0.25rem;

	background-color: #6c757d;
	color: white;

	padding: 0.25rem 0.5rem;
	font-size: 16px;

	border-radius: 0.25rem;
	border: none; */
}

/* #region toaster */

.tw-toast {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: #333;
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	opacity: 0.9;
	animation: fadeout 10s forwards;
}

@keyframes fadeout {
	0% {
		opacity: 0.9;
	}

	80% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
		transform: translateY(20px);
	}
}

/* #endregion */

.translate-button {
	padding: 5px 10px;
	color: #fff;
	background-color: #3f85b9;
	border: 2px solid #3f85b9;
	border-radius: 10px;
	font-weight: 400;
	font-size: 1rem;
	margin-left: 10px;

	&:hover {
		border: 2px solid #666;
	}

	.tomi-font {
		margin-right: 0.5rem;
	}
}

.translate-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9998;
}

.translate-modal-content {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	top: 50%;
	left: 50%;
	position: fixed;
	transform: translate(-50%, -50%);

	.translate-modal-box {
		position: relative;
		background: white;
		padding: 30px;
		border-radius: 20px;
		text-align: center;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		width: max-content;
		max-width: 750px;
		height: max-content;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 1rem;
		margin-top: -5%;

		.title {
			font-size: 1.2rem;
			font-weight: 600;
			margin: 0;
			margin-bottom: 1rem;
		}

		.lang-list {
			margin: 0;
			display: flex;
			flex-direction: column;
			gap: 0.5rem;
			font-size: 14px;
			align-items: start;
			width: 100%;

			input {
				margin-right: 0.5rem;
			}
		}

		.close {
			width: 100%;
			padding: 5px;
			color: #fff;
			background-color: #3f85b9;
			border-color: #3f85b9;
			font-weight: 400;
			border: none;
			border-radius: .25rem;
			font-size: 1rem;

			&.cancel {
				background-color: #666;
				border-color: #666;
			}
		}
	}
}
