/**
 * WooCommerce Multi-Currency - Styles
 */

.woo-mc-widget {
  position: fixed;
  bottom: 80px; /* Above translation widget */
  right: 20px;
  z-index: 9998;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.woo-mc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.woo-mc-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.woo-mc-toggle.loading {
  opacity: 0.6;
  pointer-events: none;
}

.woo-mc-toggle.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 12px;
  margin-top: -8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.woo-mc-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

#woo-mc-current {
  min-width: 36px;
  text-align: center;
}

.woo-mc-dropdown {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.woo-mc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.woo-mc-item:hover {
  background: #f5f5f5;
}

.woo-mc-item.active {
  background: #e8f5e9;
  color: #2e7d32;
}

.woo-mc-code {
  font-size: 14px;
  font-weight: 600;
}

.woo-mc-symbol {
  font-size: 16px;
  color: #666;
}

.woo-mc-item.active .woo-mc-symbol {
  color: #2e7d32;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .woo-mc-widget {
      bottom: 70px;
      right: 10px;
  }
}