/* ==========================================================================
   Haddaf Currency Switcher — Frontend Styles (Single Button Mode)
   Version: 1.0.3
   ========================================================================== */

.hcs-floater {
	position: fixed;
	bottom: 20px;
	left: 20px; /* Pinned to the left side */
	right: auto;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	user-select: none;
	-webkit-user-select: none;
}

.hcs-single-button {
	background-color: #212121; /* Matches TranslatePress dark pill */
	border-radius: 30px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	padding: 10px 18px;
	cursor: pointer;
	color: #ffffff;
	text-decoration: none !important;
	gap: 8px;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hcs-single-button:hover {
	background-color: #333333;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hcs-single-button:active {
	transform: translateY(0);
}

.hcs-flag-img {
	width: 20px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hcs-code {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Loading Overlay */
.hcs-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(33, 33, 33, 0.85);
	border-radius: 30px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hcs-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: hcs-spin 0.6s linear infinite;
}

@keyframes hcs-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
	.hcs-floater {
		bottom: 10px;
		left: 10px;
	}
	.hcs-single-button {
		padding: 8px 14px;
		height: 38px;
	}
	.hcs-flag-img {
		width: 18px;
	}
	.hcs-code {
		font-size: 12px;
	}
}
