/**
 * VeloX Multi-Currency Frontend Styles
 */
.velox-currency-switcher-wrap {
	display: inline-block;
	position: relative;
	margin: 5px 0;
	font-family: inherit;
}

.velox-currency-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 30px 6px 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #1f2937;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.velox-currency-select:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Floating Switcher Widget */
.velox-floating-widget {
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.velox-floating-widget.velox-pos-bottom-right {
	bottom: 28px;
	right: 28px;
}

.velox-floating-widget.velox-pos-bottom-left {
	bottom: 28px;
	left: 28px;
}

.velox-floating-widget.velox-pos-top-right {
	top: 28px;
	right: 28px;
}

.velox-floating-widget.velox-pos-top-left {
	top: 28px;
	left: 28px;
}

.velox-floating-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0f172a;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.25);
	padding: 12px 22px;
	border-radius: 9999px;
	box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.velox-floating-trigger:hover {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.45);
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.5), 0 6px 12px -2px rgba(0, 0, 0, 0.3);
}

.velox-trigger-globe {
	color: #38bdf8;
	flex-shrink: 0;
}

.velox-trigger-symbol {
	color: #38bdf8;
	font-weight: 800;
	font-size: 16px;
	margin-left: 2px;
}

.velox-trigger-code {
	letter-spacing: 0.6px;
	font-size: 15px;
	font-weight: 700;
}

.velox-chevron {
	transition: transform 0.25s ease;
	opacity: 0.8;
	margin-left: 4px;
}

.velox-floating-widget.is-open .velox-chevron {
	transform: rotate(180deg);
}

/* Floating Dropdown */
.velox-floating-dropdown {
	display: none;
	position: absolute;
	bottom: calc(100% + 14px);
	right: 0;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 10px 20px -5px rgba(0, 0, 0, 0.15);
	min-width: 280px;
	overflow: hidden;
	animation: velox-slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 1000000;
}

.velox-pos-top-right .velox-floating-dropdown,
.velox-pos-top-left .velox-floating-dropdown {
	bottom: auto;
	top: calc(100% + 14px);
}

.velox-pos-bottom-left .velox-floating-dropdown,
.velox-pos-top-left .velox-floating-dropdown {
	right: auto;
	left: 0;
}

.velox-floating-widget.is-open .velox-floating-dropdown {
	display: block;
}

@keyframes velox-slide-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.velox-floating-header {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #64748b;
	padding: 14px 20px 10px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.velox-floating-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	max-height: 280px;
	overflow-y: auto;
}

.velox-floating-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	font-size: 14px;
	color: #1e293b;
	cursor: pointer;
	transition: background 0.15s ease;
	border-left: 4px solid transparent;
}

.velox-floating-item:hover {
	background: #f8fafc;
	color: #0f172a;
}

.velox-floating-item.is-active {
	background: #eff6ff;
	color: #1d4ed8;
	font-weight: 600;
	border-left-color: #2563eb;
}

.velox-item-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #f1f5f9;
	font-weight: 800;
	font-size: 16px;
	color: #334155;
	flex-shrink: 0;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.velox-floating-item.is-active .velox-item-symbol {
	background: #dbeafe;
	color: #1d4ed8;
}

.velox-item-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-grow: 1;
}

.velox-item-code {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.velox-floating-item.is-active .velox-item-code {
	color: #1d4ed8;
}

.velox-item-name {
	font-size: 12px;
	color: #64748b;
	line-height: 1.2;
}

.velox-floating-item.is-active .velox-item-name {
	color: #3b82f6;
}

.velox-item-check {
	color: #2563eb;
	margin-left: auto;
	display: none;
	flex-shrink: 0;
}

.velox-floating-item.is-active .velox-item-check {
	display: inline-block;
}

.velox-floating-item.is-switching .velox-item-check {
	display: none !important;
}

.velox-floating-item.is-switching::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: velox-spin 0.6s linear infinite;
	margin-left: auto;
	flex-shrink: 0;
}

.velox-trigger-spinner {
	display: none;
	flex-shrink: 0;
}

.velox-floating-widget.is-loading .velox-chevron {
	display: none !important;
}

.velox-floating-widget.is-loading .velox-trigger-spinner {
	display: inline-block !important;
}

.velox-spin {
	animation: velox-spin 0.8s linear infinite !important;
	transform-origin: center center;
}

@keyframes velox-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Subtle dimming of prices during update */
body.velox-currency-updating .price,
body.velox-currency-updating .amount,
body.velox-currency-updating .wc-block-formatted-money-amount {
	opacity: 0.45;
	transition: opacity 0.15s ease;
}

/* Sleek top progress indicator bar */
.velox-top-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	background: linear-gradient(90deg, #3b82f6, #6366f1, #06b6d4, #3b82f6);
	background-size: 200% 100%;
	animation: velox-loader-slide 0.8s linear infinite;
	z-index: 99999999;
}

@keyframes velox-loader-slide {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.velox-header-curr-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Header Top Bar */
.velox-top-header-bar {
	background: #0f172a;
	color: #e2e8f0;
	font-size: 12px;
	padding: 6px 16px;
	border-bottom: 1px solid #1e293b;
}

.velox-top-header-bar .velox-container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
}

.velox-header-currencies {
	display: flex;
	gap: 6px;
}

.velox-header-curr-btn {
	background: transparent;
	color: #94a3b8;
	border: 1px solid #334155;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.velox-header-curr-btn:hover {
	color: #ffffff;
	border-color: #64748b;
}

.velox-header-curr-btn.is-active {
	background: #3b82f6;
	color: #ffffff;
	border-color: #3b82f6;
}

/* Checkout Disclosure Notice */
.velox-disclosure-notice {
	border-left: 4px solid #4f46e5 !important;
	background-color: #f5f3ff !important;
	color: #4338ca !important;
	padding: 10px 14px !important;
	border-radius: 4px;
	font-weight: 500;
}
