/**
 * Auto Multi Currency Switcher - Frontend Stylesheet
 */

/* ==========================================================================
   1. Floating Currency Switcher Widget
   ========================================================================== */
.amcs-floating-wrap {
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
}

/* Positions */
.amcs-pos-bottom-right { bottom: 24px; right: 24px; }
.amcs-pos-bottom-left  { bottom: 24px; left: 24px; }
.amcs-pos-top-right    { top: 24px; right: 24px; }
.amcs-pos-top-left     { top: 24px; left: 24px; }

/* Trigger Button */
.amcs-floating-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 30px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #ffffff;
	color: #0f172a;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
}

.amcs-floating-trigger:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.amcs-flag-box {
	width: 20px;
	height: 15px;
	border-radius: 3px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.amcs-widget-flag {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Themes */
.amcs-theme-glass .amcs-floating-trigger {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.amcs-theme-dark .amcs-floating-trigger {
	background: #0f172a;
	color: #f8fafc;
	border-color: #334155;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.amcs-theme-vibrant .amcs-floating-trigger {
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	color: #ffffff;
	border: none;
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Flag Shapes */
.amcs-floating-wrap[data-shape="circle"] .amcs-flag-box {
	border-radius: 50%;
	width: 18px;
	height: 18px;
}

.amcs-floating-wrap[data-shape="square"] .amcs-flag-box {
	border-radius: 0;
}

/* Dropdown Menu */
.amcs-floating-dropdown {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	width: 260px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	border: 1px solid #e2e8f0;
	overflow: hidden;
	animation: amcs-menu-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
}

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

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

@keyframes amcs-menu-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.amcs-dropdown-header {
	padding: 12px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	color: #334155;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.amcs-close-btn {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #94a3b8;
	line-height: 1;
}

.amcs-dropdown-items {
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
}

.amcs-curr-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.15s ease;
}

.amcs-curr-option:hover {
	background: #f1f5f9;
	color: #6366f1;
}

.amcs-curr-option.is-selected {
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
}

.amcs-item-flag img {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	display: block;
}

.amcs-item-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.amcs-item-code {
	font-size: 13px;
}

.amcs-item-name {
	font-size: 11px;
	color: #64748b;
}

.amcs-check-icon {
	color: #2563eb;
	margin-left: auto;
}

/* ==========================================================================
   2. Product Page Switcher
   ========================================================================== */
.amcs-product-switcher-wrap {
	margin: 16px 0;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.amcs-product-switcher-label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.amcs-currency-dropdown-select {
	padding: 6px 12px;
	font-size: 13px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0f172a;
	outline: none;
	cursor: pointer;
}

.amcs-product-pills-list {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.amcs-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}

.amcs-pill-btn:hover {
	border-color: #6366f1;
	color: #6366f1;
}

.amcs-pill-btn.is-active {
	background: #6366f1;
	color: #ffffff;
	border-color: #6366f1;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.amcs-flag-icon {
	width: 16px;
	height: 12px;
	border-radius: 2px;
}

/* ==========================================================================
   3. Shortcode Switchers
   ========================================================================== */
.amcs-shortcode-switcher {
	display: inline-block;
	margin: 8px 0;
}

.amcs-pills-container {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.amcs-pill-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}

.amcs-pill-item:hover {
	border-color: #6366f1;
	color: #6366f1;
}

.amcs-pill-item.is-active {
	background: #6366f1;
	color: #ffffff;
	border-color: #6366f1;
}

.amcs-inline-select {
	padding: 6px 12px;
	font-size: 13px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0f172a;
}

/* ==========================================================================
   4. Checkout Currency Alert Box
   ========================================================================== */
.amcs-checkout-currency-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	color: #166534;
	font-size: 13px;
	line-height: 1.5;
}

.amcs-checkout-alert-icon {
	color: #16a34a;
	flex-shrink: 0;
	margin-top: 2px;
}

.amcs-converted-estimate {
	font-weight: 700;
	color: #15803d;
}
