/**
 * AIA PRO — UI global: back to top, tab Trimite o Știre.
 *
 * @package AIA_Pro
 */

.aia-ui-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1.5px solid #e60000 !important;
	border-radius: 0 !important;
	background-color: #ffffff !important;
	color: #e60000 !important;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	accent-color: #e60000;
}

.aia-ui-back-to-top.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	background-color: #ffffff !important;
	border-color: #e60000 !important;
	color: #e60000 !important;
}

.aia-ui-back-to-top:hover,
.aia-ui-back-to-top:focus,
.aia-ui-back-to-top:focus-visible,
.aia-ui-back-to-top:active,
.aia-ui-back-to-top.is-scrolling,
.aia-ui-back-to-top.is-scrolling.show {
	background-color: #e60000 !important;
	border-color: #e60000 !important;
	border-width: 2px;
	border-radius: 0 !important;
	color: #ffffff !important;
	outline: none;
	box-shadow: 0 10px 28px rgba(230, 0, 0, 0.28);
}

.aia-ui-back-to-top svg {
	display: block;
}

.aia-ui-back-to-top svg path {
	stroke: #e60000;
	stroke-width: 1.5;
	transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.aia-ui-back-to-top:hover svg path,
.aia-ui-back-to-top:focus-visible svg path,
.aia-ui-back-to-top:active svg path,
.aia-ui-back-to-top.is-scrolling svg path {
	stroke: #ffffff;
	stroke-width: 2;
}

.aia-ui-submit-news {
	position: fixed;
	top: 50%;
	left: 0;
	z-index: 99989;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 1rem 0.55rem;
	background-color: #e60000;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	transform: translateY(-50%);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aia-ui-submit-news:hover,
.aia-ui-submit-news:focus-visible {
	background-color: #cc0000;
	color: #ffffff;
	text-decoration: none;
	outline: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.aia-ui-submit-news__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.aia-ui-submit-news__text {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.aia-ui-back-to-top {
		right: 14px;
		bottom: 90px;
		width: 44px;
		height: 44px;
	}

	.aia-ui-submit-news {
		top: auto;
		bottom: 88px;
		left: 0;
		flex-direction: row;
		gap: 0;
		padding: 0.75rem;
		transform: none;
		border-radius: 0;
	}

	.aia-ui-submit-news__text {
		display: none;
	}

	.aia-ui-submit-news__icon svg {
		width: 20px;
		height: 20px;
	}
}
