/**
 * To Top Button Component Styles
 * 
 * Floating scroll-to-top button for frontend results pages.
 * Uses brand colors from CSS variables for theming consistency.
 * 
 * @package PPF_Quotes_Pro_Client
 * @since 2.1.3
 */

/* ========================================
   TO TOP BUTTON - BASE STYLES
   ======================================== */

.ppf-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: none;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.ppf-to-top.ppf-visible {
	display: block;
	opacity: 1;
}

.ppf-to-top-button {
	background: var(--ppf-brand, #0073aa);
	color: #fff;
	border: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.ppf-to-top-button:hover {
	background: var(--ppf-accent-hover, #006092);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ppf-to-top-button:focus {
	outline: 3px solid rgba(0, 115, 170, 0.3);
	outline-offset: 2px;
}

.ppf-to-top-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* SVG Icon */
.ppf-to-top-button svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}

/* Screen Reader Text */
.ppf-to-top .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
	.ppf-to-top {
		right: 16px;
		bottom: 16px;
	}

	.ppf-to-top-button {
		width: 44px;
		height: 44px;
	}

	.ppf-to-top-button svg {
		width: 18px;
		height: 18px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.ppf-to-top {
		right: 12px;
		bottom: 12px;
	}

	.ppf-to-top-button {
		width: 40px;
		height: 40px;
		border-radius: 6px;
	}

	.ppf-to-top-button svg {
		width: 16px;
		height: 16px;
	}
}
